[latex3-commits] [latex3/pdfresources] schema-commands: add testfiles (91e6b43)

github at latex-project.org github at latex-project.org
Fri Sep 13 13:23:36 CEST 2024


Repository : https://github.com/latex3/pdfresources
On branch  : schema-commands
Link       : https://github.com/latex3/pdfresources/commit/91e6b436dad00a2f332f00a4ffac5431646c9c2e

>---------------------------------------------------------------

commit 91e6b436dad00a2f332f00a4ffac5431646c9c2e
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Sep 13 13:23:36 2024 +0200

    add testfiles


>---------------------------------------------------------------

91e6b436dad00a2f332f00a4ffac5431646c9c2e
 testfiles-pdftex/xmp-new-schema.lvt |  71 ++++++++++
 testfiles-pdftex/xmp-new-schema.tlg | 273 ++++++++++++++++++++++++++++++++++++
 2 files changed, 344 insertions(+)

diff --git a/testfiles-pdftex/xmp-new-schema.lvt b/testfiles-pdftex/xmp-new-schema.lvt
new file mode 100644
index 0000000..5f2fcd7
--- /dev/null
+++ b/testfiles-pdftex/xmp-new-schema.lvt
@@ -0,0 +1,71 @@
+\ExplSyntaxOn
+\debug_on:n { check-declarations }
+\sys_gset_rand_seed:n{1000}
+\ExplSyntaxOff
+
+\DocumentMetadata{%
+	%pdfstandard=A-4f,
+	pdfversion=2.0,
+	lang=en,
+    debug={xmp-export}
+}
+\input{regression-test}
+\documentclass{article}
+
+\begin{document}
+blub
+\START
+\SHOWFILE{xmp-new-schema.xmpi}
+\ExplSyntaxOn
+
+
+\pdfmeta_xmp_xmlns_new:nn {fx}{
+urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0\c_hash_str
+}
+
+\pdfmeta_xmp_xmlns_new:nn {fx}{
+urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0\c_hash_str
+}
+
+\pdfmeta_xmp_schema_new:nnn
+  {Factur-X~PDFA~Extension~Schema}
+  {fx}
+  {urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0\c_hash_str}
+
+%test duplicate
+\pdfmeta_xmp_schema_new:nnn
+  {duplicate}
+  {fx}
+  {urn:factur-x:duplicate}
+
+\pdfmeta_xmp_property_new:nnnnn
+  {fx}
+  {DocumentFileName}
+  {Text}
+  {external}
+  {name~of~the~embedded~XML~invoice~file}
+
+\pdfmeta_xmp_property_new:nnnnn
+  {fx}
+  {DocumentFileName}
+  {Text}
+  {external}
+  {duplicate}
+  
+
+\pdfmeta_xmp_property_new:nnnnn
+  {fx}
+  {DocumentType}
+  {Text}
+  {external}
+  {INVOICE}
+
+\pdfmeta_xmp_property_new:nnnnn
+  {fxunknown}
+  {DocumentFileName}
+  {Text}
+  {external}
+  {name~of~the~embedded~XML~invoice~file}
+\ExplSyntaxOff
+
+\end{document}
\ No newline at end of file
diff --git a/testfiles-pdftex/xmp-new-schema.tlg b/testfiles-pdftex/xmp-new-schema.tlg
new file mode 100644
index 0000000..752a100
--- /dev/null
+++ b/testfiles-pdftex/xmp-new-schema.tlg
@@ -0,0 +1,273 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+-------- xmp-new-schema.xmpi (start) ---------
+(xmp-new-schema.xmpi)
+^^M
+<?xpacket begin="^^ef^^bb^^bf" id="W5M0MpCehiHzreSzNTczkc9d"?>^^M
+<x:xmpmeta xmlns:x="adobe:ns:meta/">^^M
+ <rdf:RDF xmlns:rdf="http://www.w3.org/....-..-..-rdf-syntax-ns#">^^M
+  <rdf:Description rdf:about=""^^M
+    xmlns:pdf="http://ns.adobe.com/pdf/1.3/"^^M
+    xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/"^^M
+    xmlns:dc="http://purl.org/dc/elements/1.1/"^^M
+    xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"^^M
+    xmlns:xmp="http://ns.adobe.com/xap/1.0/"^^M
+    xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"^^M
+    xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"^^M
+    xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/"^^M
+    xmlns:pdfuaid="http://www.aiim.org/pdfua/ns/id/"^^M
+    xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/"^^M
+    xmlns:pdfxid="http://www.npes.org/pdfx/ns/id/"^^M
+    xmlns:prism="http://prismstandard.org/namespaces/basic/3.0/"^^M
+    xmlns:stFnt="http://ns.adobe.com/xap/1.0/sType/Font#"^^M
+    xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"^^M
+    xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"^^M
+    xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#"^^M
+    xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#"^^M
+    xmlns:pdfaType="http://www.aiim.org/pdfa/ns/type#"^^M
+    xmlns:pdfaField="http://www.aiim.org/pdfa/ns/field#"^^M
+    xmlns:fx="urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#">^^M
+   <pdfaExtension:schemas>^^M
+    <rdf:Bag>^^M
+     <rdf:li rdf:parseType="Resource">^^M
+      <pdfaSchema:schema>XMP Media Management Schema</pdfaSchema:schema>^^M
+      <pdfaSchema:prefix>xmpMM</pdfaSchema:prefix>^^M
+      <pdfaSchema:namespaceURI>http://ns.adobe.com/xap/1.0/mm/</pdfaSchema:namespaceURI>^^M
+      <pdfaSchema:property>^^M
+       <rdf:Seq>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>OriginalDocumentID</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>URI</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>internal</pdfaProperty:category>^^M
+         <pdfaProperty:description>The common identifier for all versions and renditions of a document.</pdfaProperty:description>^^M
+        </rdf:li>^^M
+       </rdf:Seq>^^M
+      </pdfaSchema:property>^^M
+     </rdf:li>^^M
+     <rdf:li rdf:parseType="Resource">^^M
+      <pdfaSchema:schema>PDF/A Identification Schema</pdfaSchema:schema>^^M
+      <pdfaSchema:prefix>pdfaid</pdfaSchema:prefix>^^M
+      <pdfaSchema:namespaceURI>http://www.aiim.org/pdfa/ns/id/</pdfaSchema:namespaceURI>^^M
+      <pdfaSchema:property>^^M
+       <rdf:Seq>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>year</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Integer</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>internal</pdfaProperty:category>^^M
+         <pdfaProperty:description>Year of standard</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>rev</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Integer</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>internal</pdfaProperty:category>^^M
+         <pdfaProperty:description>Revision year of standard</pdfaProperty:description>^^M
+        </rdf:li>^^M
+       </rdf:Seq>^^M
+      </pdfaSchema:property>^^M
+     </rdf:li>^^M
+     <rdf:li rdf:parseType="Resource">^^M
+      <pdfaSchema:schema>PDF/UA Universal Accessibility Schema</pdfaSchema:schema>^^M
+      <pdfaSchema:prefix>pdfuaid</pdfaSchema:prefix>^^M
+      <pdfaSchema:namespaceURI>http://www.aiim.org/pdfua/ns/id/</pdfaSchema:namespaceURI>^^M
+      <pdfaSchema:property>^^M
+       <rdf:Seq>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>part</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Integer</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>internal</pdfaProperty:category>^^M
+         <pdfaProperty:description>Part of ISO 14289 standard</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>rev</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Integer</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>internal</pdfaProperty:category>^^M
+         <pdfaProperty:description>Revision of ISO 14289 standard</pdfaProperty:description>^^M
+        </rdf:li>^^M
+       </rdf:Seq>^^M
+      </pdfaSchema:property>^^M
+     </rdf:li>^^M
+     <rdf:li rdf:parseType="Resource">^^M
+      <pdfaSchema:schema>PDF/X ID Schema</pdfaSchema:schema>^^M
+      <pdfaSchema:prefix>pdfxid</pdfaSchema:prefix>^^M
+      <pdfaSchema:namespaceURI>http://www.npes.org/pdfx/ns/id/</pdfaSchema:namespaceURI>^^M
+      <pdfaSchema:property>^^M
+       <rdf:Seq>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>GTS_PDFXVersion</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>internal</pdfaProperty:category>^^M
+         <pdfaProperty:description>ID of PDF/X standard</pdfaProperty:description>^^M
+        </rdf:li>^^M
+       </rdf:Seq>^^M
+      </pdfaSchema:property>^^M
+     </rdf:li>^^M
+     <rdf:li rdf:parseType="Resource">^^M
+      <pdfaSchema:schema>PRISM Basic Metadata</pdfaSchema:schema>^^M
+      <pdfaSchema:prefix>prism</pdfaSchema:prefix>^^M
+      <pdfaSchema:namespaceURI>http://prismstandard.org/namespaces/basic/3.0/</pdfaSchema:namespaceURI>^^M
+      <pdfaSchema:property>^^M
+       <rdf:Seq>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>complianceProfile</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>internal</pdfaProperty:category>^^M
+         <pdfaProperty:description>PRISM specification compliance profile to which this document adheres</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>publicationName</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>Publication name</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>aggregationType</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>Publication type</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>bookEdition</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>Edition of the book in which the document was published</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>volume</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>Publication volume number</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>number</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>Publication issue number within a volume</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>pageRange</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>Page range for the document within the print version of its publication</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>issn</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>ISSN for the printed publication in which the document was published</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>eIssn</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>ISSN for the electronic publication in which the document was published</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>isbn</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>ISBN for the publication in which the document was published</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>doi</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>Digital Object Identifier for the document</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>url</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>URL</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>URL at which the document can be found</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>byteCount</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Integer</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>internal</pdfaProperty:category>^^M
+         <pdfaProperty:description>Approximate file size in octets</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>pageCount</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Integer</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>internal</pdfaProperty:category>^^M
+         <pdfaProperty:description>Number of pages in the print version of the document</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>subtitle</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>Document's subtitle</pdfaProperty:description>^^M
+        </rdf:li>^^M
+       </rdf:Seq>^^M
+      </pdfaSchema:property>^^M
+     </rdf:li>^^M
+     <rdf:li rdf:parseType="Resource">^^M
+      <pdfaSchema:schema>Factur-X PDFA Extension Schema</pdfaSchema:schema>^^M
+      <pdfaSchema:prefix>fx</pdfaSchema:prefix>^^M
+      <pdfaSchema:namespaceURI>urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#</pdfaSchema:namespaceURI>^^M
+      <pdfaSchema:property>^^M
+       <rdf:Seq>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>DocumentFileName</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>name of the embedded XML invoice file</pdfaProperty:description>^^M
+        </rdf:li>^^M
+        <rdf:li rdf:parseType="Resource">^^M
+         <pdfaProperty:name>DocumentType</pdfaProperty:name>^^M
+         <pdfaProperty:valueType>Text</pdfaProperty:valueType>^^M
+         <pdfaProperty:category>external</pdfaProperty:category>^^M
+         <pdfaProperty:description>INVOICE</pdfaProperty:description>^^M
+        </rdf:li>^^M
+       </rdf:Seq>^^M
+      </pdfaSchema:property>^^M
+     </rdf:li>^^M
+    </rdf:Bag>^^M
+   </pdfaExtension:schemas>^^M
+   <pdf:Producer>pdftex-NN.NN.NN</pdf:Producer>^^M
+   <pdf:PDFVersion>2.0</pdf:PDFVersion>^^M
+   <dc:type>^^M
+    <rdf:Bag>^^M
+     <rdf:li>Text</rdf:li>^^M
+    </rdf:Bag>^^M
+   </dc:type>^^M
+   <dc:language>^^M
+    <rdf:Bag>^^M
+     <rdf:li>en</rdf:li>^^M
+    </rdf:Bag>^^M
+   </dc:language>^^M
+   <dc:date>^^M
+    <rdf:Seq>^^M
+     <rdf:li>....-..-..T09:00:00Z</rdf:li>^^M
+    </rdf:Seq>^^M
+   </dc:date>^^M
+   <dc:format>application/pdf</dc:format>^^M
+   <dc:source>xmp-new-schema.tex</dc:source>^^M
+   <xmp:CreatorTool>LaTeX</xmp:CreatorTool>^^M
+   <xmp:CreateDate>....-..-..T09:00:00Z</xmp:CreateDate>^^M
+   <xmp:ModifyDate>....-..-..T09:00:00Z</xmp:ModifyDate>^^M
+   <xmp:MetadataDate>....-..-..T09:00:00Z</xmp:MetadataDate>^^M
+   <xmpMM:DocumentID>uuid:06860283-d7cb-4b00-81c7-d4eac7b96d4f</xmpMM:DocumentID>^^M
+   <xmpMM:InstanceID>uuid:0a57c455-157a-4141-8c19-6237d832fc80</xmpMM:InstanceID>^^M
+   <prism:complianceProfile>three</prism:complianceProfile>^^M
+   <prism:pageCount>1</prism:pageCount>^^M
+  </rdf:Description>^^M
+ </rdf:RDF>^^M
+</x:xmpmeta>^^M
+^^M
+^^M
+^^M
+^^M
+^^M
+^^M
+^^M
+^^M
+^^M
+^^M
+<?xpacket end="w"?>^^M
+-------- xmp-new-schema.xmpi (end) -----------
+Package pdfmeta Warning: The XMP xmlns namespace `fx` is already declared
+Package pdfmeta Warning: The XMP schema `fx` is already declared
+Package pdfmeta Warning: The XMP schema `fxunknown` is undefined
+\g_tmpa_iow=\write...
+[1
+] (xmp-new-schema.aux)





More information about the latex3-commits mailing list.