-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF header signature not found (Error happen when conversion toc.json to Pdf) #4999
Comments
@superyyrrzz is there any progress on this? Would be nice to have at least a working example |
Which version of wkhtmltox are you using? I tested it with wkhtmltox v0.12.5-1.msvc2015-win64 and it worked without issues. Try passing Thank you. |
I have received this error when I pass in an html file with invalid references to the wkhtmltopdf For example,
If the html contains a relative file path like |
#4488 seems related. |
@icnocop I was using the version available from chocolatey.org, which was at the time of testing 0.12.5. |
Sorry, I couldn't reproduce. Make sure your current directory is in the same folder as docfx.json. Steps I took:
|
I'm unable to spend any more time on this as per my employer, please close the issue. |
I've run into this issue as well. It only happens on a Windows runner on GitHub Actions; it works fine locally. All versions are the same between the runner and my local machine (DocFX 2.56.2, wkhtmltopdf 0.12.6). |
@alexrp can you provide a repository that can reproduce the issue? Thank you. |
@icnocop over here: https://github.com/flare-lang/flare-lang.github.io Note that I removed PDF generation from CI in https://github.com/flare-lang/flare-lang.github.io/commit/1d905f487328f578062b08c41f7da15c16f9f085. You'll need to revert that commit to reproduce. Here's an example of a run where the problem occurred: https://github.com/flare-lang/flare-lang.github.io/runs/1080331536?check_suite_focus=true#step:7:45 |
Thank you, @alexrp. I was able to reproduce the issue using your repo. I was able to "work-around" the issue by specifying
Example commit: icnocop/flare-lang.github.io@d34621a Example build: https://github.com/icnocop/flare-lang.github.io/runs/1372135172 For reference, see: #4488 |
Hello @icnocop!! I just started using this for documentation for my library and so far it is great, but ran into this issue. The versions that I used when I ran into the issue is below:
I did indeed get it working by adding
Just for clarity and to hopefully help with the issue, below is the error I got in windows terminal.
Cheers!! |
Hi @CalvinWilkinson.
I'm not exactly sure if this is an issue in docfx, wkhtmltopdf, or iTextSharp for example.
The tutorial seems to work without issues for some users, so I'm not exactly sure the tutorial is the actual issue.
It could be a Windows only and/or a GitHub action only thing; sorry, I'm not exactly sure what the underlying issue is. I'm interested to know if the same error occurs when wkhtmltopdf is replaced with another compatible exe and For example, I'm using https://github.com/icnocop/HtmlToPdf instead of wkhtmltopdf and it meets my requirements. If HtmlToPdf works instead of wkhtmltopdf, then the issue seems to be in wkhtmltopdf or iTextSharp. Thank you. |
Ok. Sounds good. Thanks for your response!! |
I have the same issue. Everything is OK locally, but have the problem within Azure Pipelines. |
I have the issue locally and in GitHub actions. |
Addressed in v2.73.0 with a new PDF engine. |
Operation System: Windos 10
DocFX Version Used: 2.43.2
Template used:
default
Steps to Reproduce:
Expected Behavior:
No error
Actual Behavior:
Error
I've tried to add PDF generation wo one of my own docFX repos, but the build failed with the error above. After that I downloaded the artifacts mentioned above, yet no avail: The build still fails, even with the standard documentation.
The text was updated successfully, but these errors were encountered: