bauhausjs / phantom-html2pdf

Node module to generate PDFs from HTML via PhantomJS
MIT License
112 stars 47 forks source link

Can't select text in PDF #10

Closed haydenbleasel closed 9 years ago

haydenbleasel commented 9 years ago

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' } )

terehov commented 9 years ago

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.

haydenbleasel commented 9 years ago

@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.

terehov commented 9 years ago

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

medikoo commented 9 years ago

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