Skip to content

Commit

Permalink
add testfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Sep 13, 2024
1 parent d97a5ba commit 91e6b43
Show file tree
Hide file tree
Showing 2 changed files with 344 additions and 0 deletions.
71 changes: 71 additions & 0 deletions testfiles-pdftex/xmp-new-schema.lvt
Original file line number Diff line number Diff line change
@@ -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}
273 changes: 273 additions & 0 deletions testfiles-pdftex/xmp-new-schema.tlg
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 91e6b43

Please sign in to comment.