Author: gbailleul
Date: Sun Oct 28 09:01:34 2012
New Revision: 1402958
URL: http://svn.apache.org/viewvc?rev=1402958&view=rev
Log:
PDFBOX-1388:
adding deserialization tests
Added:
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/resources/validxmp/metadata.rdf
Modified:
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/java/org/apache/padaf/xmpbox/TestXMPWithDefinedSchemas.java
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/resources/validxmp/override_ns.rdf
Modified:
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/java/org/apache/padaf/xmpbox/TestXMPWithDefinedSchemas.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/java/org/apache/padaf/xmpbox/TestXMPWithDefinedSchemas.java?rev=1402958&r1=1402957&r2=1402958&view=diff
==============================================================================
---
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/java/org/apache/padaf/xmpbox/TestXMPWithDefinedSchemas.java
(original)
+++
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/java/org/apache/padaf/xmpbox/TestXMPWithDefinedSchemas.java
Sun Oct 28 09:01:34 2012
@@ -45,6 +45,7 @@ public class TestXMPWithDefinedSchemas {
data.add(new Object [] {"/validxmp/ghost2.xmp"});
data.add(new Object [] {"/validxmp/history2.rdf"});
data.add(new Object [] {"/validxmp/Notepad++_A1b.xmp"});
+ data.add(new Object [] {"/validxmp/metadata.rdf"});
return data;
}
Added:
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/resources/validxmp/metadata.rdf
URL:
http://svn.apache.org/viewvc/pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/resources/validxmp/metadata.rdf?rev=1402958&view=auto
==============================================================================
---
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/resources/validxmp/metadata.rdf
(added)
+++
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/resources/validxmp/metadata.rdf
Sun Oct 28 09:01:34 2012
@@ -0,0 +1,138 @@
+<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
+<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.0-jc003
DEBUG-12.345678, Tue Feb 28 14:57:12 GMT+00:00 2012">
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about=""
+ xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
+ <pdf:Producer>ADEP Document Services - DocConverter
10.0.0</pdf:Producer>
+ <pdf:Keywords>"_MuhimbiKeywords_ ; _MuhimbiKeywords_ ";
_MuhimbiKeywords_ ; _MuhimbiKeywords_ </pdf:Keywords>
+ </rdf:Description>
+ <rdf:Description rdf:about=""
+ xmlns:xmp="http://ns.adobe.com/xap/1.0/">
+ <xmp:ModifyDate>2012-03-06T06:30:15Z</xmp:ModifyDate>
+ <xmp:CreateDate>2012-03-06T06:30:15Z</xmp:CreateDate>
+ <xmp:CreatorTool>_MuhimbiCreator_</xmp:CreatorTool>
+ <xmp:MetadataDate>2012-03-06T06:30:15Z</xmp:MetadataDate>
+ </rdf:Description>
+ <rdf:Description rdf:about=""
+ xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
+ xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#">
+
<xmpMM:DocumentID>uuid:dc9dc762-fb1e-11e0-0000-80af8e58d932011-10-17T14:24:38+01:00</xmpMM:DocumentID>
+ <xmpMM:History>
+ <rdf:Seq>
+ <rdf:li>
+ <rdf:Description>
+ <stEvt:action>converted</stEvt:action>
+ <stEvt:parameters>Conversion to PDF/A was
executed.</stEvt:parameters>
+ <stEvt:softwareAgent>ADEP Document Services -
DocConverter 10.0.0</stEvt:softwareAgent>
+ <stEvt:when>2012-03-06T06:30:15Z</stEvt:when>
+ </rdf:Description>
+ </rdf:li>
+ </rdf:Seq>
+ </xmpMM:History>
+
<xmpMM:InstanceID>uuid:80aa9b06-33eb-2e23-7934-0eca006422df</xmpMM:InstanceID>
+ </rdf:Description>
+ <rdf:Description rdf:about=""
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <dc:format>application/pdf</dc:format>
+ <dc:title>
+ <rdf:Alt>
+ <rdf:li xml:lang="x-default">_MuhimbiTitle_ </rdf:li>
+ </rdf:Alt>
+ </dc:title>
+ <dc:creator>
+ <rdf:Seq>
+ <rdf:li>_MuhimbiAuthor_ </rdf:li>
+ </rdf:Seq>
+ </dc:creator>
+ <dc:subject>
+ <rdf:Bag>
+ <rdf:li>_MuhimbiKeywords_ ; _MuhimbiKeywords_ </rdf:li>
+ <rdf:li>_MuhimbiKeywords_ </rdf:li>
+ <rdf:li>_MuhimbiKeywords_ </rdf:li>
+ </rdf:Bag>
+ </dc:subject>
+ </rdf:Description>
+ <rdf:Description rdf:about=""
+ xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/">
+ <pdfaid:part>1</pdfaid:part>
+ <pdfaid:conformance>B</pdfaid:conformance>
+ <pdfaid:amd>2005</pdfaid:amd>
+ </rdf:Description>
+ <rdf:Description rdf:about=""
+ xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"
+ xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#"
+ xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#">
+ <pdfaExtension:schemas>
+ <rdf:Bag>
+ <rdf:li>
+ <rdf:Description>
+ <pdfaSchema:schema>The XMP Media Management Schema is
primarily for use by digital asset management (DAM) systems.</pdfaSchema:schema>
+
<pdfaSchema:namespaceURI>http://ns.adobe.com/xap/1.0/mm/</pdfaSchema:namespaceURI>
+ <pdfaSchema:prefix>xmpMM</pdfaSchema:prefix>
+ <pdfaSchema:property>
+ <rdf:Seq>
+ <rdf:li>
+ <rdf:Description>
+
<pdfaProperty:name>InstanceID</pdfaProperty:name>
+
<pdfaProperty:valueType>URI</pdfaProperty:valueType>
+
<pdfaProperty:category>internal</pdfaProperty:category>
+ <pdfaProperty:description>UUID based
identifier for specific incarnation of a document</pdfaProperty:description>
+ </rdf:Description>
+ </rdf:li>
+ </rdf:Seq>
+ </pdfaSchema:property>
+ </rdf:Description>
+ </rdf:li>
+ <rdf:li>
+ <rdf:Description>
+
<pdfaSchema:namespaceURI>http://ns.adobe.com/pdfx/1.3/</pdfaSchema:namespaceURI>
+ <pdfaSchema:prefix>pdfx</pdfaSchema:prefix>
+ <pdfaSchema:property>
+ <rdf:Seq>
+ <rdf:li>
+ <rdf:Description>
+
<pdfaProperty:name>GTS_PDFXConformance</pdfaProperty:name>
+
<pdfaProperty:valueType>Text</pdfaProperty:valueType>
+
<pdfaProperty:category>internal</pdfaProperty:category>
+ <pdfaProperty:description>Conformance level
of PDF/X standard</pdfaProperty:description>
+ </rdf:Description>
+ </rdf:li>
+ <rdf:li>
+ <rdf:Description>
+
<pdfaProperty:name>GTS_PDFXVersion</pdfaProperty:name>
+
<pdfaProperty:valueType>Text</pdfaProperty:valueType>
+
<pdfaProperty:category>internal</pdfaProperty:category>
+ <pdfaProperty:description>ID of PDF/X
standard</pdfaProperty:description>
+ </rdf:Description>
+ </rdf:li>
+ </rdf:Seq>
+ </pdfaSchema:property>
+ </rdf:Description>
+ </rdf:li>
+ </rdf:Bag>
+ </pdfaExtension:schemas>
+ </rdf:Description>
+ </rdf:RDF>
+</x:xmpmeta>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<?xpacket end="w"?>
\ No newline at end of file
Modified:
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/resources/validxmp/override_ns.rdf
URL:
http://svn.apache.org/viewvc/pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/resources/validxmp/override_ns.rdf?rev=1402958&r1=1402957&r2=1402958&view=diff
==============================================================================
---
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/resources/validxmp/override_ns.rdf
(original)
+++
pdfbox/branches/xmpbox-refactoring/xmpbox/src/test/resources/validxmp/override_ns.rdf
Sun Oct 28 09:01:34 2012
@@ -21,13 +21,11 @@
<rdf:li xml:lang="x-default">TechNote 0001: PDF/A-1 and
Namespaces</rdf:li>
</rdf:Alt>
</dc:title>
- <!--
<dc:creator>
<rdf:Seq>
<rdf:li>PDF/A Competence Center</rdf:li>
</rdf:Seq>
</dc:creator>
- -->
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/">