Bug 697402 - PDF rendered as blank in PDF with unusual font width array
Summary: PDF rendered as blank in PDF with unusual font width array
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 9.20
Hardware: PC Windows 7
: P4 normal
Assignee: Ken Sharp
QA Contact: Bug traffic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-01 09:09 UTC by Tilman Hausherr
Modified: 2016-12-05 10:31 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
1 page test case (65.30 KB, application/pdf)
2016-12-01 14:20 UTC, Tilman Hausherr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tilman Hausherr 2016-12-01 09:09:06 UTC
What I did:
gswin64 filename

File is at
https://digitalcourage.de/sites/default/files/users/161/digitalcourage-verfassungsbeschwerde-vds.pdf
1 page version is at
https://issues.apache.org/jira/secure/attachment/12841102/PDFBOX-3609.pdf

What I expected:
rendering of the fist page

What I got:
blank page

Possible cause:
object reference instead of direct value in font width array. In the small file, see here:

Root/Pages/Kids/[0]/Resources/Font/f-1-1/DescendantFonts/[0]/W/[1]

Happens in two other products, see
https://github.com/mozilla/pdf.js/issues/7855
https://issues.apache.org/jira/browse/PDFBOX-3609
Comment 1 Ken Sharp 2016-12-01 14:01:46 UTC
(In reply to Tilman Hausherr from comment #0)
> What I did:
> gswin64 filename
> 
> File is at
> https://digitalcourage.de/sites/default/files/users/161/digitalcourage-
> verfassungsbeschwerde-vds.pdf
> 1 page version is at
> https://issues.apache.org/jira/secure/attachment/12841102/PDFBOX-3609.pdf

Please attach specimen files here, links often go stale before anyone has a chance to investigate.
Comment 2 Tilman Hausherr 2016-12-01 14:20:34 UTC
Created attachment 13185 [details]
1 page test case
Comment 3 Ken Sharp 2016-12-05 10:31:25 UTC
Commit c875bf7490447579e850fa4722874848c3be4657 fixes this.