New issue
Advanced search Search tips

Issue 775791 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

HTML page with no text printed to PDF embeds 12 KB of fonts.

Project Member Reported by thestig@chromium.org, Oct 18 2017

Issue description

Chrome Version: 63.0.3236.7
OS: Linux

What steps will reproduce the problem?
(1) Print preview the test page from https://bugs.chromium.org/p/chromium/issues/detail?id=767343#c8
(2) Choose Save As PDF.

What is the expected result?

Resulting saved PDF should not have a 12 KB Times New Roman font inside, since there's no text in the source document.
 
See attached bad.pdf vs mozilla.pdf (less than 1 KB) from FF 56.
bad.pdf
14.5 KB Download
mozilla.pdf
973 bytes Download
Owner: halcanary@google.com
Status: Fixed (was: Untriaged)
Fixed by https://skia.googlesource.com/skia/+/29ebe7a80d7b8fa0b72d1d1fb5d8ace57a95b961 - The output is now only 964 bytes.

Sign in to add a comment