bauhausjs / phantom-html2pdf

Node module to generate PDFs from HTML via PhantomJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't select text in PDF

haydenbleasel opened this issue · comments

Hey,

Your library works pretty well but I can't select the text inside the PDF, even after changing: page.render(args.pdfPath) to page.render(args.pdfPath, { format: 'pdf', quality: '100' } )

We've seen this behaviour on Macs only. As soon as you deploy your application on a server, which is usually a Linux or Windows machine (e.g. in a cloud) it should render a proper text inside your pdf.

@terehov Yep definitely works amazingly, although I have another issue which I'll open if it doesn't exist already (links don't work). Could potentially be the HTML file though. Should add a caveat in the README about the OSX compatibility though.

@haydenbleasel Great, thank you for your feedback. And yes, indeed, I am going to add this information to the readme.

It'll be great to know, whether there is any fix for OSX for that