[
https://issues.apache.org/jira/browse/PDFBOX-1864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14221992#comment-14221992
]
Tilman Hausherr commented on PDFBOX-1864:
-----------------------------------------
[~johanvanderknijff] this solves your issue (hopefully). The cause was that
preflight is too "efficient", i.e. at some places, it doesn't do checks A and B
if A fails. I have removed several such cases.
The output is now:
{code}
The fileembedded_fonts.pdf is not valid, error(s) :
1.4.10 : Trailer Syntax error, File contains data after the last %%EOF sequence
at offset 0
5.2.3 : Forbidden field in an annotation definition, Annotation uses a Color
profile which isn't the same than the profile contained by the OutputIntent
2.4.1 : Invalid Color space, The operator "rg" can't be used with CMYK Profile
2.4.1 : Invalid Color space, The operator "rg" can't be used with CMYK Profile
3.1.1 : Invalid Font definition, Helvetica: some required fields are missing
from the Font dictionary: firstChar, lastChar, widths.
3.1.2 : Invalid Font definition, Helvetica: some mandatory fields are missing
from the FontDescriptor: StemV.
3.1.3 : Invalid Font definition, Helvetica: FontFile entry is missing from
FontDescriptor
2.4.2 : Invalid Color space, The operator "k" can't be used with RGB Profile
3.1.11 : Invalid Font definition, The CIDSet entry is missing for the Composite
Subset
3.1.11 : Invalid Font definition, The CIDSet entry is missing for the Composite
Subset
3.1.9 : Invalid Font definition
3.1.11 : Invalid Font definition, The CIDSet entry is missing for the Composite
Subset
3.1.11 : Invalid Font definition, The CIDSet entry is missing for the Composite
Subset
3.1.11 : Invalid Font definition, The CIDSet entry is missing for the Composite
Subset
3.1.11 : Invalid Font definition, The CIDSet entry is missing for the Composite
Subset
3.1.11 : Invalid Font definition, The CIDSet entry is missing for the Composite
Subset
3.1.9 : Invalid Font definition
3.1.11 : Invalid Font definition, The CIDSet entry is missing for the Composite
Subset
3.1.9 : Invalid Font definition
3.1.11 : Invalid Font definition, The CIDSet entry is missing for the Composite
Subset
7.1 : Error on MetaData, Expecting namespace 'adobe:ns:meta/' and found
'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
{code}
[[email protected]] my changes will result in more output than before, so you
might want to run preflight again for all your files.
> Non-embedded fonts not detected (or are they?)
> ----------------------------------------------
>
> Key: PDFBOX-1864
> URL: https://issues.apache.org/jira/browse/PDFBOX-1864
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 2.0.0
> Environment: Win 7
> Reporter: Johan van der Knijff
> Labels: font
> Fix For: 2.0.0
>
>
> The following 2 PDFs use some fonts that are not embedded (at least that's
> what Acrobat Preflight is telling me):
> http://acroeng.adobe.com/Test_Files/fonts//embedded_fonts.pdf
> http://acroeng.adobe.com/Test_Files/fonts//text_images_pdf1.2.pdf
> Running both files through Preflight I do see some font-related errors, but I
> don't see any occurrence of error 3.1.3, which is the specific error that I
> would expect here. Or perhaps this isn't this the unique error code for
> detecting non-embedded fonts?
> Related side note: in "PreflightConstants.java" the description of 3.1.3
> reads:
> bq. Error on the "Font File x" in the Font Descriptor
> Which suggests it may be more generic than non-embedded fonts alone. But
> maybe this is not the case? (For myself I've only seen this error with an
> associated message like "Invalid Font definition, FontFile entry is missing
> from FontDescriptor for TimesNewRomanPSMT".)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)