[ 
https://issues.apache.org/jira/browse/PDFBOX-2418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ralf Hauser updated PDFBOX-2418:
--------------------------------
    Attachment: rdf0015_20141027_102907.txt

However, it appears to follow the same logic that the 
   xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/";
is relatively deep down in the hierarchy


 <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/";>
          <xmp:ModifyDate>2009-03-31T12:13:33+02:00</xmp:ModifyDate>
          <xmp:MetadataDate>2008-01-21T21:37:06+01:00</xmp:MetadataDate>
          <xmp:Advisory>
            <rdf:Bag>
              <rdf:li>http://purl.org/dc/elements/1.1/ //dc:rights</rdf:li>
              <rdf:li>http://ns.adobe.com/xap/1.0/ //xmp:Advisory</rdf:li>
              <rdf:li>http://ns.adobe.com/pdf/1.3/ //pdf:Keywords</rdf:li>
            </rdf:Bag>
          </xmp:Advisory>
          <xmp:BaseURL>http://www.BaseURL.com</xmp:BaseURL>
          <xmp:CreateDate>2009-03-31T12:13:33+02:00</xmp:CreateDate>
          <xmp:CreatorTool>Test xmp:CreatorTool 1.0</xmp:CreatorTool>
          <xmp:Nickname>Test xmp:Nickname</xmp:Nickname>
          <xmp:Thumbnails>
            <rdf:Alt>
              <rdf:li>
                <rdf:Description 
xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/";>
                  <xapGImg:format>JPEG</xapGImg:format>
                  <xapGImg:width>22</xapGImg:width>
                  <xapGImg:height>9</xapGImg:height>
...

The full xPacket is attached as rdf0015_20141027_102907.txt

File fXmp = new File(filePath);
             PreflightParser parserPrefli = new PreflightParser(
                     ByteArrayDataSource.getInstance(fXmp, "application/pdf"));
             parserPrefli.parse(Format.PDF_A1B);
             PreflightDocument document = parserPrefli.getPreflightDocument();
             byte[] tmp = 
MetadataValidationProcess.getXpacket(document.getDocument());
       //dump tmp to file

> xmp regression? 7.3 : Error on MetaData, Schema is not set in this document : 
> http://ns.adobe.com/xap/1.0/g/img/
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2418
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2418
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 2.0.0
>         Environment: deb7 java7
>            Reporter: Ralf Hauser
>             Fix For: 2.0.0
>
>         Attachments: good0015.pdf, rdf0015_20141027_102907.txt
>
>
> 7.3 : Error on MetaData, Schema is not set in this document : 
> http://ns.adobe.com/xap/1.0/g/img/



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

Reply via email to