[ 
https://issues.apache.org/jira/browse/FOP-2910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17032331#comment-17032331
 ] 

Roberto Benedetti commented on FOP-2910:
----------------------------------------

I tried with the "Source Sans Pro" otf font that can be found in test resources 
of the project. The configuration and fo is in [^otf.zip].

The PDF is valid thanks to what it seems a trick: the font name (/FontName) is 
that of a fully embedded font (i.e. without the random sequence as a prefix) 
but obviously it is not. Even Acrobat Reader thinks it's fully embedded.

The veraPDF test is:

{{fontFile_size == 0 || fontName.search(/[A-Z]\{6}\+/) != 0 || CIDSet_size == 0 
|| cidSetListsAllGlyphs == true}}

which shows the condition on the font name prefix.

> Create valid PDF/A part 2 or 3 with font subset
> -----------------------------------------------
>
>                 Key: FOP-2910
>                 URL: https://issues.apache.org/jira/browse/FOP-2910
>             Project: FOP
>          Issue Type: Improvement
>          Components: renderer/pdf
>    Affects Versions: 2.4
>         Environment: OS: Windows 10
> Java: 1.8
>            Reporter: Roberto Benedetti
>            Priority: Major
>         Attachments: otf.zip, samples.zip
>
>
> When creating PDF/A-2a or PDF/A-3a with font embedding mode "subset" the 
> resulting PDF in not valid according to veraPDF which reports:
>  ??Specification: ISO 19005-3:2012, Clause: 6.2.11.4, Test number: 4. If the 
> FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, 
> then it shall identify all CIDs which are present in the font program, 
> regardless of whether a CID in the font is referenced or used by the PDF or 
> not.??
> Embedding the complete font seems to solve the validation error but resulting 
> files are very large.
> When exporting files as PDF/A from Microsoft Word the PDF is valid and it 
> only contains a subset of the font.
> The only difference I noticed is that Word does not create a CIDSet.
> File [^samples.zip] contains two PDF/A-3a created by Word and the files used 
> to create the same PDFs with FOP.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to