-
-
Notifications
You must be signed in to change notification settings - Fork 92
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 Output is blank #36
Comments
No it should work, you need to clone the project, run
Are you on Windows ? What command are you running ?
This project is still experimental but yes it's a good idea to add an "Install" section. We are still discussing what should be included in this project and how we should package it (#20). That's the main reason why this project is not yet released on npmjs. Otherwise the installation would be straight forward using If you want to submit a pull request to add this section, that would be great 👍 |
ping @rrmayer 😉 |
OK -> so for the first question, I'm running this on a Ubuntu 18.x LTS box. I also use this for development on Angular, so it has the latest versions (or relatively latest) of node and npm. I did run
Command details:
At this point, I check the pdf located in And my apologies for the delay, apparently no notifications are being sent to me (or they are getting lost in the 100+ emails I get every day) |
The project requires Node.js 8.11+ and npm 5+ but I think it should work with your versions.
I think I have an idea. Did you run the command in a restricted network ? Could you please try to update the
No worries 😉 |
So that was it - I commented out the import in the CSS and changed the font family to Ubuntu, and the letter rendered. I'm not aware of any reason that URL wouldn't go through, except maybe it's not a good source for the stylesheet? |
@rrmayer Are you behind a corporate network ? Maybe for some reason For reference we are using the following configuration in Puppeteer:
|
I did reproduce this issue on a low-end laptop. |
The PR #113 both waits longer (no network connection should be active) and also provides a hook to ensure that the rendering completed the page (the standard template implements this, custom templates might pick it up later). Here's a snippet from template.js that sets a ready flag for the converter to wait for the PDF to be created. window.AsciidoctorPDF = window.AsciidoctorPDF || {}
window.AsciidoctorPDF.status = 'rendering'
class PagedReadyHandler extends Paged.Handler {
afterRendered(pages) {
window.AsciidoctorPDF.status = 'ready'
}
} I'd consider this issue solved (but other templates needs to follow to indicate when their rendering is complete). |
Using the examples, I tried running a couple out of curiosity. The PDF is produced, but only the images render. There is no text. Is there something I'm needing to do or install beyond what asciidoc normally requires?
Also, it might not be a bad idea to put some additional information in the Readme about getting started (e.g. install npm, etc. - I can provide something if it would be worthwhile).
Sample file is located here
The text was updated successfully, but these errors were encountered: