Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
mattab opened this Issue · 5 comments

3 participants

Matthieu Aubry Peter Boehlke Anthon Pang
Matthieu Aubry
Owner

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

Peter Boehlke
Collaborator

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:

Peter Boehlke
Collaborator

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

Matthieu Aubry
Owner

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

Anthon Pang
Collaborator

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

+1

Matthieu Aubry
Owner

fixed in [3864]

Matthieu Aubry mattab added this to the Piwik 1.2 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.