Bug 697402

Summary: PDF rendered as blank in PDF with unusual font width array
Product: Ghostscript Reporter: Tilman Hausherr <tilman>
Component: PDF InterpreterAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED FIXED QA Contact: Bug traffic <tech>
Severity: normal    
Priority: P4    
Version: 9.20   
Hardware: PC   
OS: Windows 7   
Customer: Word Size: ---
Attachments: 1 page test case

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.