Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

PDF is rendered as bitmap on ubuntu 16.04 #53

Open
kidroca opened this issue Nov 2, 2017 · 2 comments
Open

PDF is rendered as bitmap on ubuntu 16.04 #53

kidroca opened this issue Nov 2, 2017 · 2 comments

Comments

@kidroca
Copy link

kidroca commented Nov 2, 2017

Problem

The service creates a nice PDF file with selectable texts and clickable links on my development machine
but running it on a virtual machine creates a 4x larger file and text and links cannot be clicked or highlighted


It may be related to node version. I'll try out to run it with the same version as production
Is there a setting that should be enabled so that the page is rendered the same

Environments

Development
  • Windows 10 x64
  • node 6.11.3
Production
  • Ubuntu Server 16.04 x64
  • node v8.9.0
@kidroca
Copy link
Author

kidroca commented Nov 2, 2017

Actually it's related to this ariya/phantomjs#10373 (comment)
Having the fonts locally and removing imports from external url fixed the issue

@dustin-H
Copy link
Member

dustin-H commented Nov 2, 2017

Yes, I think it is a font issue.

Here is another solution at the end I think:

ariya/phantomjs#13997 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants