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

PDF font text appear white in PDFs when read in google PDF reader #2018

Closed
mattab opened this issue Jan 15, 2011 · 5 comments
Closed

PDF font text appear white in PDFs when read in google PDF reader #2018

mattab opened this issue Jan 15, 2011 · 5 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Jan 15, 2011

Maybe just a problem with font color not set to a standard value?

@peterbo
Copy link
Contributor

peterbo commented Jan 17, 2011

The root cause of the problem is that we do not completely embed the fonts in the PDF-reports. For Adobe reader (etc). it seems to be enough to embed subgroups of a font, but for a bunch of mobile pdf viewers and google pdf viewer, the font has to be completely embedded in the pdf.

Disadvantage of the full embedding is the increase of the filesize (e.g. dejavusans ~ +300kB). But it seems to be the only way to make sure that the PDF is shown correctly on all devices.

Google PDF Viewer example:

  • not (completely) embedded: [http://docs.google.com/viewer?url=inflect.de%2Fnot-embedded.pdf]
  • completely embedded: [http://docs.google.com/viewer?url=inflect.de%2Fembedded.pdf]

@peterbo
Copy link
Contributor

peterbo commented Jan 17, 2011

Attachment: Embeds a given font completely (not only subgroups) - if the [fontName].z / [fontName].ctg.z is provided in the tcpdf/fonts directory.
PDFRenderer-font-embedding.diff

@mattab
Copy link
Member Author

mattab commented Jan 17, 2011

OK I think approx 400k is acceptable for a PDF report, and worth it rather than the PDF being not viewable on google, iphone etc.

+1

@robocoder
Copy link
Contributor

Utilities like pdftotext also require the complete font to be embedded, so this practice isn't uncommon.

+1

@mattab
Copy link
Member Author

mattab commented Feb 10, 2011

fixed in [3864]

@mattab mattab added this to the Piwik 1.2 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants