question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Unable to generate the PDF

See original GitHub issue

I’ve just installed asciidoctor-pdf.js on Linux. When I compile a adoc file I get the error message

Unable to generate the PDF - Error: ReferenceError: URL is not defined

Here is the version information of my installation

Asciidoctor PDF 1.0.0-alpha.7 using Asciidoctor.js 2.1.1 (Asciidoctor 2.0.10) [https://asciidoctor.org]
Runtime Environment (node v8.17.0 on linux)
CLI version 3.2.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tobiasdcommented, Mar 6, 2020

See above I had some really old version installed, I use literally one other tool based on node on my system, that I now remember had problems updating some time ago. After updating the APT sources to node 12 PDF generation is now working.

Asciidoctor PDF 1.0.0-alpha.7 using Asciidoctor.js 2.1.1 (Asciidoctor 2.0.10) [https://asciidoctor.org]
Runtime Environment (node v12.16.1 on linux)
CLI version 3.2.0

Thank you very much for your help! And luckily the other tool fixed their problems with updating node as well phew

1reaction
Mogzttercommented, Mar 6, 2020

What version of Node.js are you using? I’m using URL, it might only be available in Node > 10, I was not aware of that. Could you try updating to the latest LTS?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Diagnose and Resolve the 'System failed to generate ...
System failed to generate the PDF document errors can occur from various navigation paths in the Purchasing responsibility: From Reports>Run ...
Read more >
Unable to generate pdf - TeX - LaTeX Stack Exchange
⇒ Try closing the program and re-opening it. You have selected something on the pdf file and now TeXnicCenter is unable to write...
Read more >
PDF Generator error: "Pdf creation error" - Kofax
Certain files are failing PDF Generator with the following error: ... Core Error: 35 : Failed to generate PDF for document ...
Read more >
There was an error generating the PDF file. - WordPress.org
There was an error generating the PDF file. ... I just renewed a license for this plugin and can't access my account on...
Read more >
Failed to generate PDF with DOMPDF [#2865185] | Drupal.org
Error generating document: Failed to generate PDF with DOMPDF ... This issue is not in the module scope. The reason is using file_get_contents() ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found