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.

Unable to create pdf

See original GitHub issue

I am using Docker base image mhart/alpine-node. PDF creation fails with below exception

Error: spawn ./node_modules/phantomjs-prebuilt/bin/phantomjs ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
inthegaragecommented, Sep 10, 2021

@Prasundas99 i found multiple issue whan i install phantomjs manually.

* Text is not  rendering

* Table size increased a lot

It is working as expected in my windows 10 OS.

That is almost certainly FONT_CONFIG path and the related libraries. Take a look at this post, which hopefully covers the topic for you: https://github.com/marcbachmann/node-html-pdf/issues/547

0reactions
xxdannilinxxcommented, Sep 15, 2021

The pdf generator packages are deprecated and don’t work on aws lambdas, just this new package I found.

https://www.npmjs.com/package/html-pdf-lambda

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to create PDFs from within Acrobat
docx files, select 1 (or more), right-click and select Conver to PDF. It appears to begin to work, with a little progress window...
Read more >
Can't create PDF - Microsoft Community
Possibly you have a pdf of the same name opened in Adobe Acrobat. That would cause that error. If that is not the...
Read more >
FIX Error: QuickBooks Could Not Save Your Form as a PDF File
Methods to Resolve the QuickBooks Unable to Create PDF Error · Method 1: Reinstalling Microsoft XPS · Method 2: Download and run QuickBooks...
Read more >
Unable to view PDF in Chrome when you click on 'Create PDF ...
Click on PDF Documents and uncheck Open PDF files in the default PDF viewer application. For Google Chrome Version 60 and above. First,...
Read more >
Troubleshooting for PDF Create - Kofax Product Documentation
Some files could be rejected by PDF Create because they do not have an associated program for printing. You should associate the file...
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