Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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

@mattab
Owner

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

@peterbo
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:

@peterbo
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

@mattab
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

@robocoder

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

+1

@mattab
Owner

fixed in [3864]

@mattab 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.