You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "William Fausser (Created) (JIRA)" <ji...@apache.org> on 2011/11/08 17:07:51 UTC

[jira] [Created] (PDFBOX-1162) Exception error in "preflight"

Exception error in "preflight"                   
-------------------------------------------------

                 Key: PDFBOX-1162
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
             Project: PDFBox
          Issue Type: Bug
            Reporter: William Fausser




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1162) Exception error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Fausser updated PDFBOX-1162:
------------------------------------

    Description: 
I get the following  exception error when validating attached PDF/A:
Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
+
^
        at java.util.regex.Pattern.error(Pattern.java:1713)
        at java.util.regex.Pattern.sequence(Pattern.java:1878)
        at java.util.regex.Pattern.expr(Pattern.java:1752)
        at java.util.regex.Pattern.compile(Pattern.java:1460)
        at java.util.regex.Pattern.<init>(Pattern.java:1133)
        at java.util.regex.Pattern.compile(Pattern.java:823)
        at java.lang.String.split(String.java:2293)
        at java.lang.String.split(String.java:2335)
        at net.padaf.preflight.font.FontMetaDataValidation.analyseFontName(FontMetaDataValidation.java:74)
        at net.padaf.preflight.font.AbstractFontValidator.checkFontFileMetaData(AbstractFontValidator.java:193)
        at net.padaf.preflight.font.TrueTypeFontValidator.checkFontFileElement(TrueTypeFontValidator.java:204)
        at net.padaf.preflight.font.TrueTypeFontValidator.checkFontDescriptor(TrueTypeFontValidator.java:96)
        at net.padaf.preflight.font.SimpleFontValidator.validate(SimpleFontValidator.java:264)
        at net.padaf.preflight.helpers.FontValidationHelper.validateFont(FontValidationHelper.java:107)
        at net.padaf.preflight.helpers.FontValidationHelper.innerValidate(FontValidationHelper.java:90)
        at net.padaf.preflight.helpers.AbstractValidationHelper.validate(AbstractValidationHelper.java:87)
        at net.padaf.preflight.AbstractValidator.runValidation(AbstractValidator.java:134)
        at net.padaf.preflight.PdfA1bValidator.validate(PdfA1bValidator.java:90)
        at net.padaf.preflight.Validator_A1b.main(Validator_A1b.java:47)


  was:
I get the following  exception error:
Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
+
^
        at java.util.regex.Pattern.error(Pattern.java:1713)
        at java.util.regex.Pattern.sequence(Pattern.java:1878)
        at java.util.regex.Pattern.expr(Pattern.java:1752)
        at java.util.regex.Pattern.compile(Pattern.java:1460)
        at java.util.regex.Pattern.<init>(Pattern.java:1133)
        at java.util.regex.Pattern.compile(Pattern.java:823)
        at java.lang.String.split(String.java:2293)
        at java.lang.String.split(String.java:2335)
        at net.padaf.preflight.font.FontMetaDataValidation.analyseFontName(FontMetaDataValidation.java:74)
        at net.padaf.preflight.font.AbstractFontValidator.checkFontFileMetaData(AbstractFontValidator.java:193)
        at net.padaf.preflight.font.TrueTypeFontValidator.checkFontFileElement(TrueTypeFontValidator.java:204)
        at net.padaf.preflight.font.TrueTypeFontValidator.checkFontDescriptor(TrueTypeFontValidator.java:96)
        at net.padaf.preflight.font.SimpleFontValidator.validate(SimpleFontValidator.java:264)
        at net.padaf.preflight.helpers.FontValidationHelper.validateFont(FontValidationHelper.java:107)
        at net.padaf.preflight.helpers.FontValidationHelper.innerValidate(FontValidationHelper.java:90)
        at net.padaf.preflight.helpers.AbstractValidationHelper.validate(AbstractValidationHelper.java:87)
        at net.padaf.preflight.AbstractValidator.runValidation(AbstractValidator.java:134)
        at net.padaf.preflight.PdfA1bValidator.validate(PdfA1bValidator.java:90)
        at net.padaf.preflight.Validator_A1b.main(Validator_A1b.java:47)


    
> Exception error in "preflight"  .....when validating the attached PDF/A                 
> ----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> I get the following  exception error when validating attached PDF/A:
> Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
> +
> ^
>         at java.util.regex.Pattern.error(Pattern.java:1713)
>         at java.util.regex.Pattern.sequence(Pattern.java:1878)
>         at java.util.regex.Pattern.expr(Pattern.java:1752)
>         at java.util.regex.Pattern.compile(Pattern.java:1460)
>         at java.util.regex.Pattern.<init>(Pattern.java:1133)
>         at java.util.regex.Pattern.compile(Pattern.java:823)
>         at java.lang.String.split(String.java:2293)
>         at java.lang.String.split(String.java:2335)
>         at net.padaf.preflight.font.FontMetaDataValidation.analyseFontName(FontMetaDataValidation.java:74)
>         at net.padaf.preflight.font.AbstractFontValidator.checkFontFileMetaData(AbstractFontValidator.java:193)
>         at net.padaf.preflight.font.TrueTypeFontValidator.checkFontFileElement(TrueTypeFontValidator.java:204)
>         at net.padaf.preflight.font.TrueTypeFontValidator.checkFontDescriptor(TrueTypeFontValidator.java:96)
>         at net.padaf.preflight.font.SimpleFontValidator.validate(SimpleFontValidator.java:264)
>         at net.padaf.preflight.helpers.FontValidationHelper.validateFont(FontValidationHelper.java:107)
>         at net.padaf.preflight.helpers.FontValidationHelper.innerValidate(FontValidationHelper.java:90)
>         at net.padaf.preflight.helpers.AbstractValidationHelper.validate(AbstractValidationHelper.java:87)
>         at net.padaf.preflight.AbstractValidator.runValidation(AbstractValidator.java:134)
>         at net.padaf.preflight.PdfA1bValidator.validate(PdfA1bValidator.java:90)
>         at net.padaf.preflight.Validator_A1b.main(Validator_A1b.java:47)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1162) Exception error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Fausser updated PDFBOX-1162:
------------------------------------

    Attachment: The_Legal_ Case_for_ PDFA.pdf
    
> Exception error in "preflight"  .....when validating the attached PDF/A                 
> ----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> I get the following  exception error:
> Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
> +
> ^
>         at java.util.regex.Pattern.error(Pattern.java:1713)
>         at java.util.regex.Pattern.sequence(Pattern.java:1878)
>         at java.util.regex.Pattern.expr(Pattern.java:1752)
>         at java.util.regex.Pattern.compile(Pattern.java:1460)
>         at java.util.regex.Pattern.<init>(Pattern.java:1133)
>         at java.util.regex.Pattern.compile(Pattern.java:823)
>         at java.lang.String.split(String.java:2293)
>         at java.lang.String.split(String.java:2335)
>         at net.padaf.preflight.font.FontMetaDataValidation.analyseFontName(FontMetaDataValidation.java:74)
>         at net.padaf.preflight.font.AbstractFontValidator.checkFontFileMetaData(AbstractFontValidator.java:193)
>         at net.padaf.preflight.font.TrueTypeFontValidator.checkFontFileElement(TrueTypeFontValidator.java:204)
>         at net.padaf.preflight.font.TrueTypeFontValidator.checkFontDescriptor(TrueTypeFontValidator.java:96)
>         at net.padaf.preflight.font.SimpleFontValidator.validate(SimpleFontValidator.java:264)
>         at net.padaf.preflight.helpers.FontValidationHelper.validateFont(FontValidationHelper.java:107)
>         at net.padaf.preflight.helpers.FontValidationHelper.innerValidate(FontValidationHelper.java:90)
>         at net.padaf.preflight.helpers.AbstractValidationHelper.validate(AbstractValidationHelper.java:87)
>         at net.padaf.preflight.AbstractValidator.runValidation(AbstractValidator.java:134)
>         at net.padaf.preflight.PdfA1bValidator.validate(PdfA1bValidator.java:90)
>         at net.padaf.preflight.Validator_A1b.main(Validator_A1b.java:47)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "Eric Leleu (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Leleu resolved PDFBOX-1162.
--------------------------------

    Resolution: Fixed
    
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf, ex7pdfA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147781#comment-13147781 ] 

William Fausser commented on PDFBOX-1162:
-----------------------------------------

I'm wondering if there is a tolerance or within a range that the widths can be and still be acceptable.

I don't have a copy of the spec.   I found this on google:
Given that advance widths in the embedded font are never supposed to be used
during PDF rendering it is not clear why PDF/A standard puts this
restriction in the first place. Furthermore PDF/A-1 does not define if the
match is exact or approximate, and if it is approximate, what is the error
tolerance . Unfortunately there are many similar holes in PDF/A standard(s).
                
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1162) Exception error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Fausser updated PDFBOX-1162:
------------------------------------

          Component/s: Preflight
        Fix Version/s: 1.7.0
          Description: 
I get the following  exception error:
Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
+
^
        at java.util.regex.Pattern.error(Pattern.java:1713)
        at java.util.regex.Pattern.sequence(Pattern.java:1878)
        at java.util.regex.Pattern.expr(Pattern.java:1752)
        at java.util.regex.Pattern.compile(Pattern.java:1460)
        at java.util.regex.Pattern.<init>(Pattern.java:1133)
        at java.util.regex.Pattern.compile(Pattern.java:823)
        at java.lang.String.split(String.java:2293)
        at java.lang.String.split(String.java:2335)
        at net.padaf.preflight.font.FontMetaDataValidation.analyseFontName(FontMetaDataValidation.java:74)
        at net.padaf.preflight.font.AbstractFontValidator.checkFontFileMetaData(AbstractFontValidator.java:193)
        at net.padaf.preflight.font.TrueTypeFontValidator.checkFontFileElement(TrueTypeFontValidator.java:204)
        at net.padaf.preflight.font.TrueTypeFontValidator.checkFontDescriptor(TrueTypeFontValidator.java:96)
        at net.padaf.preflight.font.SimpleFontValidator.validate(SimpleFontValidator.java:264)
        at net.padaf.preflight.helpers.FontValidationHelper.validateFont(FontValidationHelper.java:107)
        at net.padaf.preflight.helpers.FontValidationHelper.innerValidate(FontValidationHelper.java:90)
        at net.padaf.preflight.helpers.AbstractValidationHelper.validate(AbstractValidationHelper.java:87)
        at net.padaf.preflight.AbstractValidator.runValidation(AbstractValidator.java:134)
        at net.padaf.preflight.PdfA1bValidator.validate(PdfA1bValidator.java:90)
        at net.padaf.preflight.Validator_A1b.main(Validator_A1b.java:47)

    Affects Version/s: 1.7.0
              Summary: Exception error in "preflight"  .....when validating the attached PDF/A                   (was: Exception error in "preflight"                   )
    
> Exception error in "preflight"  .....when validating the attached PDF/A                 
> ----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> I get the following  exception error:
> Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
> +
> ^
>         at java.util.regex.Pattern.error(Pattern.java:1713)
>         at java.util.regex.Pattern.sequence(Pattern.java:1878)
>         at java.util.regex.Pattern.expr(Pattern.java:1752)
>         at java.util.regex.Pattern.compile(Pattern.java:1460)
>         at java.util.regex.Pattern.<init>(Pattern.java:1133)
>         at java.util.regex.Pattern.compile(Pattern.java:823)
>         at java.lang.String.split(String.java:2293)
>         at java.lang.String.split(String.java:2335)
>         at net.padaf.preflight.font.FontMetaDataValidation.analyseFontName(FontMetaDataValidation.java:74)
>         at net.padaf.preflight.font.AbstractFontValidator.checkFontFileMetaData(AbstractFontValidator.java:193)
>         at net.padaf.preflight.font.TrueTypeFontValidator.checkFontFileElement(TrueTypeFontValidator.java:204)
>         at net.padaf.preflight.font.TrueTypeFontValidator.checkFontDescriptor(TrueTypeFontValidator.java:96)
>         at net.padaf.preflight.font.SimpleFontValidator.validate(SimpleFontValidator.java:264)
>         at net.padaf.preflight.helpers.FontValidationHelper.validateFont(FontValidationHelper.java:107)
>         at net.padaf.preflight.helpers.FontValidationHelper.innerValidate(FontValidationHelper.java:90)
>         at net.padaf.preflight.helpers.AbstractValidationHelper.validate(AbstractValidationHelper.java:87)
>         at net.padaf.preflight.AbstractValidator.runValidation(AbstractValidator.java:134)
>         at net.padaf.preflight.PdfA1bValidator.validate(PdfA1bValidator.java:90)
>         at net.padaf.preflight.Validator_A1b.main(Validator_A1b.java:47)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "Eric Leleu (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Leleu reassigned PDFBOX-1162:
----------------------------------

    Assignee: Eric Leleu
    
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Fausser updated PDFBOX-1162:
------------------------------------

    Attachment: ex7pdfA.pdf
    
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf, ex7pdfA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "Lars Torunski (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13150026#comment-13150026 ] 

Lars Torunski commented on PDFBOX-1162:
---------------------------------------

I have to check my university math numeric lessons first, but shouldn't

final float EPSILON = 1/1000f;

...

if (Math.abs(widthProvidedByPdfDictionary - widthInFontProgram) > EPSILON) {

be used to check it. One division, one addition, one math operation and one comparision can be avoided for each method invocation.
                
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "Guillaume Bailleul (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147958#comment-13147958 ] 

Guillaume Bailleul commented on PDFBOX-1162:
--------------------------------------------

It could interesting to look at PDF/A-2 specification.
Maybe there are more precise specification on the "tolerance" issue, it could help to know what to do. 
                
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1162) Exception error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Fausser updated PDFBOX-1162:
------------------------------------

    Description: 
Font Issue problem when validating the attached PDF/A.   

3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

  was:
Font Issue problem when validating the attached PDF/A.   

3.1.6 | Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

    
> Exception error in "preflight"  .....when validating the attached PDF/A                 
> ----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149403#comment-13149403 ] 

William Fausser commented on PDFBOX-1162:
-----------------------------------------

Your welcome
                
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Fausser reopened PDFBOX-1162:
-------------------------------------


I'm still getting this type of error even with the previous changes compiled into a new
jar. the error I'm getting:
home/fausser/PDFA/ex7pdfA.pdf is not valid, error(s) :
3.1.6 : Invalid Font definition, Width of the character "83" in the font program "CDLNJF+Arial"is inconsistent with the width in the PDF dictionary.

Adobe preflight  says it is a compliant PDF/A

attached is ex7pdfA.pdf
                
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "Eric Leleu (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Leleu resolved PDFBOX-1162.
--------------------------------

    Resolution: Fixed

Fixed in the last revision.
Now a delta of 1/1000 is used to check if the width is valid
                
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "Eric Leleu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161585#comment-13161585 ] 

Eric Leleu commented on PDFBOX-1162:
------------------------------------

This bug is fixed in the  revision "1209448".
Now Prefligth uses the PDFont.getFontWidth method to read the width of a character in the PDF Dictionary.
 
                
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf, ex7pdfA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "Eric Leleu (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149370#comment-13149370 ] 

Eric Leleu edited comment on PDFBOX-1162 at 11/13/11 9:27 PM:
--------------------------------------------------------------

Fixed in the last revision.
Now a delta of 1/1000 is used to check if the width is valid.

Thanks William for your help.
                
      was (Author: leleueri):
    Fixed in the last revision.
Now a delta of 1/1000 is used to check if the width is valid
                  
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148478#comment-13148478 ] 

William Fausser commented on PDFBOX-1162:
-----------------------------------------

So, if the tolerance is in 1/1000 (.001), can't we take .001 of 229 and add to the amount that is rounded to not throw the exception.

example .001(229) = .229; 
.29+ 229.49219= 229.7282119; 
that amount when rounded will give 230 and there will be no exception.
                
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Fausser updated PDFBOX-1162:
------------------------------------

    Summary: Font error in "preflight"  .....when validating the attached PDF/A                   (was: Exception error in "preflight"  .....when validating the attached PDF/A                 )
    
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147962#comment-13147962 ] 

William Fausser commented on PDFBOX-1162:
-----------------------------------------

Funny that you ask....I was asking Leonard Rosenthol through an associate at work for the specs.  They are below:
For PDF/A-1, the standard reads:
 6.3.6 Font metrics
For every font embedded in a conforming file, the glyph width information stored in the  Widths entry of the
font dictionary and in the embedded font program shall be consistent.

Consistent isn't the world's best word for a standard, so in PDF/A-2 we did a bit better
6.2.11.5 Font metrics 
For every font embedded in a conforming file and used for rendering, the glyph width information in the font dictionary and in the embedded font program shall be consistent. For this international standard, consistent is defined to be a difference of no more than 1/1000 unit. 

                
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PDFBOX-1162) Font error in "preflight" .....when validating the attached PDF/A

Posted by "Eric Leleu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146609#comment-13146609 ] 

Eric Leleu commented on PDFBOX-1162:
------------------------------------

The error seems to come from the character "l" in the Font "ABCDEE+Calibri". 
According to the Font definition in the PDF File, the width value of this character is 230.
But the width value extracted from the Font program is 229 (more precisely 229.49219)

I need to read some specification to determine the origin of the bug.

                
> Font error in "preflight"  .....when validating the attached PDF/A                 
> -----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 : Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1162) Exception error in "preflight" .....when validating the attached PDF/A

Posted by "William Fausser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Fausser updated PDFBOX-1162:
------------------------------------

    Description: 
Font Issue problem when validating the attached PDF/A.   

3.1.6 | Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

  was:
I get the following  exception error when validating attached PDF/A:
Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
+
^
        at java.util.regex.Pattern.error(Pattern.java:1713)
        at java.util.regex.Pattern.sequence(Pattern.java:1878)
        at java.util.regex.Pattern.expr(Pattern.java:1752)
        at java.util.regex.Pattern.compile(Pattern.java:1460)
        at java.util.regex.Pattern.<init>(Pattern.java:1133)
        at java.util.regex.Pattern.compile(Pattern.java:823)
        at java.lang.String.split(String.java:2293)
        at java.lang.String.split(String.java:2335)
        at net.padaf.preflight.font.FontMetaDataValidation.analyseFontName(FontMetaDataValidation.java:74)
        at net.padaf.preflight.font.AbstractFontValidator.checkFontFileMetaData(AbstractFontValidator.java:193)
        at net.padaf.preflight.font.TrueTypeFontValidator.checkFontFileElement(TrueTypeFontValidator.java:204)
        at net.padaf.preflight.font.TrueTypeFontValidator.checkFontDescriptor(TrueTypeFontValidator.java:96)
        at net.padaf.preflight.font.SimpleFontValidator.validate(SimpleFontValidator.java:264)
        at net.padaf.preflight.helpers.FontValidationHelper.validateFont(FontValidationHelper.java:107)
        at net.padaf.preflight.helpers.FontValidationHelper.innerValidate(FontValidationHelper.java:90)
        at net.padaf.preflight.helpers.AbstractValidationHelper.validate(AbstractValidationHelper.java:87)
        at net.padaf.preflight.AbstractValidator.runValidation(AbstractValidator.java:134)
        at net.padaf.preflight.PdfA1bValidator.validate(PdfA1bValidator.java:90)
        at net.padaf.preflight.Validator_A1b.main(Validator_A1b.java:47)


    
> Exception error in "preflight"  .....when validating the attached PDF/A                 
> ----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: The_Legal_ Case_for_ PDFA.pdf
>
>
> Font Issue problem when validating the attached PDF/A.   
> 3.1.6 | Invalid Font definition, Width of the character "367" in the font program "ABCDEE+Calibri"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira