[latex3-commits] [git/LaTeX3-latex3-pdfresources] testxmp: update test (1f5c3e2)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Sep 19 16:50:37 CEST 2022


Repository : https://github.com/latex3/pdfresources
On branch  : testxmp
Link       : https://github.com/latex3/pdfresources/commit/1f5c3e2f8b681472e438b4c3a4d5e833271a516d

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

commit 1f5c3e2f8b681472e438b4c3a4d5e833271a516d
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Sep 19 16:50:37 2022 +0200

    update test


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

1f5c3e2f8b681472e438b4c3a4d5e833271a516d
 testfiles/metadata-ansi.pvt                        |  10 ++
 testfiles/metadata-new-no-hyperref.pvt             |  15 +++
 ...references.tpf => metadata-new-no-hyperref.tpf} | 147 +++++++++++----------
 3 files changed, 102 insertions(+), 70 deletions(-)

diff --git a/testfiles/metadata-ansi.pvt b/testfiles/metadata-ansi.pvt
new file mode 100644
index 0000000..dec521e
--- /dev/null
+++ b/testfiles/metadata-ansi.pvt
@@ -0,0 +1,10 @@
+% !Mode:: "TeX:ACP:Main"
+\DocumentMetadata{uncompress,pdfstandard=a-2b}
+\input{regression-test}
+\documentclass{article}
+\usepackage[latin1]{inputenc}
+\usepackage{hyperref}
+\hypersetup{pdfauthor=Mäuschen, pdftitle=Grüße an den Käse}
+\begin{document}
+bbbccc
+\end{document}
diff --git a/testfiles/metadata-new-no-hyperref.pvt b/testfiles/metadata-new-no-hyperref.pvt
new file mode 100644
index 0000000..e1a8ff8
--- /dev/null
+++ b/testfiles/metadata-new-no-hyperref.pvt
@@ -0,0 +1,15 @@
+\DocumentMetadata{uncompress,pdfstandard=a-2b}
+\input{regression-test}
+\documentclass{article}
+\AddToDocumentProperties[hyperref]{pdfauthor}{Ulrike Fischer}
+\AddToDocumentProperties[hyperref]{pdftitle}{κάτι στα ελληνικά}
+\ExplSyntaxOn
+\pdf_string_from_unicode:nnN {utf16/hex}{κάτι~στα~ελληνικά}\l_tmpa_tl
+\pdfmanagement_add:nnx{Info}{Title}{\l_tmpa_tl}
+\pdf_string_from_unicode:nnN {utf16/hex}{Ulrike~Fischer}\l_tmpa_tl
+\pdfmanagement_add:nnx{Info}{Author}{\l_tmpa_tl}
+\ExplSyntaxOff
+\begin{document}
+abc
+abc
+\end{document} 
\ No newline at end of file
diff --git a/testfiles/viewerpreferences.tpf b/testfiles/metadata-new-no-hyperref.tpf
similarity index 88%
copy from testfiles/viewerpreferences.tpf
copy to testfiles/metadata-new-no-hyperref.tpf
index fdf4082..ad95b16 100644
--- a/testfiles/viewerpreferences.tpf
+++ b/testfiles/metadata-new-no-hyperref.tpf
@@ -1,15 +1,25 @@
-%PDF-1.7
+%PDF-1.5
 %ÐÔÅØ
+5 0 obj
+<<
+/N 3
+/Length 3268      
+>>
+[BINARY STREAM]
+endobj
 6 0 obj
+<< /Type /OutputIntent /S /GTS_PDFA1 /DestOutputProfile 5 0 R /OutputConditionIdentifier (IEC\040sRGB) /Info (IEC\04061966-2.1\040Default\040RGB\040colour\040space\040-\040sRGB) /RegistryName (http://www.iec.ch)  >>
+endobj
+7 0 obj
 <<
 /Type /Metadata /Subtype /XML
-/Length 13997     
+/Length 14448     
 >>
 stream
 <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
 <x:xmpmeta xmlns:x="adobe:ns:meta/">
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
-  <rdf:Description rdf:about="" xml:lang="de-DE"
+  <rdf:Description rdf:about=""
     xmlns:pdf="http://ns.adobe.com/pdf/1.3/"
     xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
@@ -247,30 +257,51 @@ stream
     </rdf:Bag>
    </pdfaExtension:schemas>
    <pdf:Producer>pdftex-1.4.24</pdf:Producer>
-   <pdf:PDFVersion>1.7</pdf:PDFVersion>
+   <pdf:PDFVersion>1.5</pdf:PDFVersion>
+   <pdfaid:part>2</pdfaid:part>
+   <pdfaid:conformance>B</pdfaid:conformance>
+   <pdfaid:year>2011</pdfaid:year>
+   <dc:creator>
+    <rdf:Seq>
+     <rdf:li xml:lang="en-US">Ulrike Fischer</rdf:li>
+    </rdf:Seq>
+   </dc:creator>
+   <dc:title>
+    <rdf:Alt>
+     <rdf:li xml:lang="en-US">κάτι στα ελληνικά</rdf:li>
+    </rdf:Alt>
+   </dc:title>
    <dc:type>
     <rdf:Bag>
-     <rdf:li xml:lang="de-DE">Text</rdf:li>
+     <rdf:li xml:lang="en-US">Text</rdf:li>
     </rdf:Bag>
    </dc:type>
+   <dc:publisher>
+    <rdf:Bag>
+    </rdf:Bag>
+   </dc:publisher>
+   <dc:description>
+    <rdf:Alt>
+    </rdf:Alt>
+   </dc:description>
    <dc:language>
     <rdf:Bag>
-     <rdf:li xml:lang="de-DE">de-DE</rdf:li>
+     <rdf:li xml:lang="en-US">en-US</rdf:li>
     </rdf:Bag>
    </dc:language>
    <dc:date>
     <rdf:Seq>
-     <rdf:li xml:lang="de-DE">2001-01-01T20:59:59-00:00</rdf:li>
+     <rdf:li xml:lang="en-US">2022-09-09T08:18:53Z</rdf:li>
     </rdf:Seq>
    </dc:date>
    <dc:format>application/pdf</dc:format>
-   <dc:source>viewerpreferences.tex</dc:source>
-   <xmp:CreatorTool>LaTeX with hyperref</xmp:CreatorTool>
-   <xmp:CreateDate>2001-01-01T20:59:59-00:00</xmp:CreateDate>
-   <xmp:ModifyDate>2001-01-01T20:59:59-00:00</xmp:ModifyDate>
-   <xmp:MetadataDate>2001-01-01T20:59:59-00:00</xmp:MetadataDate>
-   <xmpMM:DocumentID>uuid:ad43cec1-3b99-4a78-89d0-d39bf74cd78f</xmpMM:DocumentID>
-   <xmpMM:InstanceID>uuid:0a57c455-157a-4141-8c19-6237d832fc80</xmpMM:InstanceID>
+   <dc:source>metadata-new-no-hyperref.tex</dc:source>
+   <xmp:CreatorTool>LaTeX</xmp:CreatorTool>
+   <xmp:CreateDate>2022-09-09T08:18:53Z</xmp:CreateDate>
+   <xmp:ModifyDate>2022-09-09T08:18:53Z</xmp:ModifyDate>
+   <xmp:MetadataDate>2022-09-09T08:18:53Z</xmp:MetadataDate>
+   <xmpMM:DocumentID>uuid:eeebe700-562a-4bea-8793-c14dfbee7fd2</xmpMM:DocumentID>
+   <xmpMM:InstanceID>uuid:294fce1b-ea40-40e5-84dc-5b1e0f4b01b1</xmpMM:InstanceID>
    <prism:complianceProfile>three</prism:complianceProfile>
    <prism:pageCount>1</prism:pageCount>
    <Iptc4xmpCore:CreatorContactInfo rdf:parseType="Resource">
@@ -281,37 +312,27 @@ stream
 <?xpacket end="w"?>
 endstream
 endobj
-8 0 obj
+10 0 obj
 <<
-/Length 95        
+/Length 109       
 >>
 stream
 /opacity1 gs
 BT
-/F20 9.9626 Tf 148.712 707.125 Td [(ab)-28(c)]TJ 154.421 -567.87 Td [(1)]TJ
+/F20 9.9626 Tf 148.712 707.125 Td [(ab)-28(c)-333(ab)-28(c)]TJ 154.421 -567.87 Td [(1)]TJ
 ET
 endstream
 endobj
-5 0 obj
+9 0 obj
 <<
 /Type /Page
-/Contents 8 0 R
-/Resources 7 0 R
+/Contents 10 0 R
+/Resources 8 0 R
 /MediaBox [0 0 595.276 841.89]
 /Parent 12 0 R
 >>
 endobj
-9 0 obj
-<<
-/D [5 0 R /XYZ 132.768 754.95 null]
->>
-endobj
-10 0 obj
-<<
-/D [5 0 R /XYZ 133.768 717.088 null]
->>
-endobj
-7 0 obj
+8 0 obj
 <<
 /ExtGState 1 0 R 
 /Font << /F20 11 0 R >>
@@ -322,7 +343,7 @@ endobj
 << /opacity1 <</ca 1/CA 1>>  >>
 endobj
 13 0 obj
-<< /HideToolbar true /NonFullScreenPageMode /UseNone /NumCopies 4  >>
+[ 6 0 R ]
 endobj
 14 0 obj
 [500 500 500 500 500 500 500 500 500 277.8 277.8 277.8 777.8 472.2 472.2 777.8 750 708.3 722.2 763.9 680.6 652.8 784.7 750 361.1 513.9 777.8 625 916.7 750 777.8 680.6 777.8 736.1 555.6 722.2 750 750 1027.8 750 750 611.1 277.8 500 277.8 500 277.8 277.8 500 555.6 444.4]
@@ -490,63 +511,49 @@ endobj
 <<
 /Type /Pages
 /Count 1
-/Kids [5 0 R]
+/Kids [9 0 R]
 >>
 endobj
 18 0 obj
 <<
-/Names [(Doc-Start) 10 0 R (page.1) 9 0 R]
-/Limits [(Doc-Start) (page.1)]
->>
-endobj
-19 0 obj
-<<
-/Dests 18 0 R
->>
-endobj
-20 0 obj
-<<
 /Type /Catalog
 /Pages 12 0 R
-/Names 19 0 R
-/ViewerPreferences 13 0 R/Lang (de-DE)/PageMode /UseOutlines/OpenAction [5 0 R /Fit]/PageLayout /SinglePage/PageLabels <</Nums[0<</S/D>>]>>/Metadata 6 0 R
+/OutputIntents 13 0 R/Lang (en-US)/Metadata 7 0 R
 >>
 endobj
-21 0 obj
+19 0 obj
 <<
-/Producer (pdfTeX)/Creator <FEFF004C006100540065005800200077006900740068002000680079007000650072007200650066>/CreationDate (D:20010101205959-00'00')/ModDate (D:20010101205959-00'00')
+/Creator (TeX)/Producer (pdfTeX)/CreationDate (D:20220909081853Z)/ModDate (D:20220909081853Z)/Title <FEFF0055006C00720069006B006500200046006900730063006800650072>
 /Trapped /False
 >>
 endobj
 xref
-0 22
+0 20
 0000000002 65535 f 
-0000014568 00000 n 
+0000018481 00000 n 
 0000000003 00000 f 
 0000000004 00000 f 
 0000000000 00000 f 
-0000014253 00000 n 
 0000000015 00000 n 
-0000014481 00000 n 
-0000014100 00000 n 
-0000014365 00000 n 
-0000014422 00000 n 
-0000026300 00000 n 
-0000026457 00000 n 
-0000014615 00000 n 
-0000014701 00000 n 
-0000014986 00000 n 
-0000024292 00000 n 
-0000024517 00000 n 
-0000026515 00000 n 
-0000026611 00000 n 
-0000026647 00000 n 
-0000026867 00000 n 
+0000003346 00000 n 
+0000003577 00000 n 
+0000018394 00000 n 
+0000018281 00000 n 
+0000018113 00000 n 
+0000030153 00000 n 
+0000030310 00000 n 
+0000018528 00000 n 
+0000018554 00000 n 
+0000018839 00000 n 
+0000028145 00000 n 
+0000028370 00000 n 
+0000030368 00000 n 
+0000030469 00000 n 
 trailer
-<< /Size 22
-/Root 20 0 R
-/Info 21 0 R
+<< /Size 20
+/Root 18 0 R
+/Info 19 0 R
 /ID [<9BD18DF3359C1216B83ADB4AA401CC9A> <9BD18DF3359C1216B83ADB4AA401CC9A>] >>
 startxref
-27088
+30670
 %%EOF





More information about the latex3-commits mailing list.