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

Embedded font crashes printer #218

Closed
dbushong opened this issue Apr 1, 2014 · 2 comments
Closed

Embedded font crashes printer #218

dbushong opened this issue Apr 1, 2014 · 2 comments

Comments

@dbushong
Copy link

dbushong commented Apr 1, 2014

Embedding any of the OpenSans family of fonts (available from http://www.google.com/fonts#UsePlace:use/Collection:Open+Sans ) in a PDF works fine in Mac Preview and Ghostscript, but fails for some users of Firefox PDF preview, and more importantly causes a large number of printers to crash unrecoverably (require power-cycle). Example printer: Xerox Phaser 3635MFP

Here's repro code against pdfkit 0.5.2:

var PDFDoc = require('pdfkit')
  , doc    = new PDFDoc()
  , fs     = require('fs');

doc.pipe(fs.createWriteStream('pdfkit.pdf'));
doc.font('OpenSans-Regular.ttf')
   .text('Blah blah blah')
   .end();

For reference, the exact same font file and equivalent output PDF works fine using prawn, a ruby PDF generator.

@linaGirl
Copy link

I and others had similar problems, there is a workaround for this problem which worked for me, see #69 (comment)

@devongovett
Copy link
Member

The font engine has changed significantly in v0.8.0. Please try again with that version and report back how it goes.

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

3 participants