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

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

3 participants

@mattab
Piwik Open Source Analytics member

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

@peterbo

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:

@peterbo

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
Piwik Open Source Analytics member

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

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

+1

@mattab
Piwik Open Source Analytics member

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