[
https://issues.apache.org/jira/browse/PDFBOX-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13898711#comment-13898711
]
Pat Hickey commented on PDFBOX-1895:
------------------------------------
What method returned the preflight errors you show above?
I tried this w/o any complaint on the same file. pdfbox-1.8.3
{code}
public static void preflightCheck( String filename ) throws IOException
{
PreflightParser p = new PreflightParser( filename );
p.parse();
PreflightDocument d = p.getPreflightDocument();
ValidationResult r = d.getResult();
List< ValidationError > errors = r.getErrorsList();
for ( ValidationError error : errors ) {
System.err.println( "error: " + error.getErrorCode() +
" : " + error.getDetails() );
}
}
{code}
> Font definitions must precede font references
> ---------------------------------------------
>
> Key: PDFBOX-1895
> URL: https://issues.apache.org/jira/browse/PDFBOX-1895
> Project: PDFBox
> Issue Type: Bug
> Components: Writing
> Affects Versions: 1.8.3, 1.8.4
> Reporter: Pat Hickey
>
> When re-writing a document with font descriptions, Adobe Reader is unable to
> display the fonts in the document. Reader can display the fonts in the
> original document. The difference is that in the original document, the font
> descriptions are in lower object numbers than the font references; in the
> output document, the font descriptions are in higher object numbers than the
> font references. Is there a quick way to re-order them?
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)