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

John Hewson edited comment on PDFBOX-2608 at 1/19/15 8:34 PM:
--------------------------------------------------------------

The idea is that the fontIsDamaged flag only gets set when the font is 
unreadable. PDF/A doesn't specify rules for validating font files embedded with 
PDFs - the details are logged as a warning:
{code}
catch (IOException e)
{
    LOG.warn("Could not read embedded TTF for font " + getBaseFont(), e);
    fontIsDamaged = true;
}
{code}

 Looks like you're seeing a bug in the TTF parser though, which is obviously 
something we want to fix.


was (Author: jahewson):
The idea is that the fontIsDamaged flag only gets set when the font is 
unreadable. PDF/A doesn't specify specific rules for validating font files 
embedded with PDFs - the details are logged as a warning:
{code}
catch (IOException e)
{
    LOG.warn("Could not read embedded TTF for font " + getBaseFont(), e);
    fontIsDamaged = true;
}
{code}

 Looks like you're seeing a bug in the TTF parser though, which is obviously 
something we want to fix.

> false negative on pdf/A validation
> ----------------------------------
>
>                 Key: PDFBOX-2608
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2608
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 2.0.0
>         Environment: deb7 java8
>            Reporter: Ralf Hauser
>         Attachments: pdf_a-tst1.pdf
>
>
> 1.4.10 : Trailer Syntax error, File contains data after the last %%EOF 
> sequence at offset 0
> 3.2.2 : Font damaged, TJSEEP+Arial-ItalicMT: The FontFile can't be read



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to