Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting doc size causes printing errors #521

Closed
Taintedmedialtd opened this issue Jul 18, 2016 · 1 comment
Closed

Setting doc size causes printing errors #521

Taintedmedialtd opened this issue Jul 18, 2016 · 1 comment

Comments

@Taintedmedialtd
Copy link

First off, great module.

I'm using it to generate PDF's from a database and it's working brilliantly until I try to change the page size to 'A4' from the default. The PDF still gets generated and appears to be OK until it comes to printing and I get a PostScript error:
ERROR: invalidfont
OFFENDING COMMAND: xshow

Switching from:
var doc = new PDF;

to
var doc = new PDF({ size: 'A4' });
causes the problem.

Any suggestions as to what I'm doing wrong?

@Taintedmedialtd
Copy link
Author

Found this closed issue: #69

That fixed the problem. Convert the font to SVG and back to TTF and everything is fine.

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

No branches or pull requests

0 participants