github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/pdf20/utf8stringAndAnnotation.pdf (about) 1 %PDF-2.0 2 %âãÏÓ 3 1 0 obj 4 << 5 /Type /Catalog 6 /Pages 4 0 R 7 /Metadata 6 0 R 8 >> 9 endobj 10 11 % This annotation includes a Contents string that is represented 12 % in UTF-8 (Thai: "Highlighted text" per Google translate). 13 % Note that the appearance dictionary and normal appearance are 14 % required by PDF 2.0 15 % Also note that the QuadPoints entry is specified in ISO 32000-2 16 % as a counterclockwise enumeration of vertices (also as in 32000-1); 17 % however, Adobe Reader/Acrobat and many other readers expect these 18 % to be specified as two separate lines - one connecting X1,Y1 to X2,Y2 19 % and then the second as connecting X3,Y3 and X4,Y4. 20 % The QuadPoints array here conforms to 32000-2 and therefore acts strange 21 % in readers that do not conform to the standard. 22 % Use the XXAcroOrderQuadPoints array for QuadPoints if you want 23 % implementation compatibility rather than specification conformance. 24 25 2 0 obj 26 << 27 /Type /Annot 28 /Subtype /Highlight 29 /Rect [100 200 400 236] 30 /QuadPoints [ 100 200 400 200 400 236 100 236 ] 31 %/XXAcroOrderQuadPoints [ 100 200 400 200 100 236 400 236 ] 32 /Contents (ไฮไลต์ข้อความ) 33 /AP << 34 /N 3 0 R 35 >> 36 >> 37 endobj 38 39 3 0 obj 40 << 41 /Type /XObject 42 /Subtype /Form 43 /BBox [100 200 400 236] 44 /Resources << >> 45 /Length 80 46 >> 47 stream 48 % Draw a yellow rectangle with no border 49 1.0 1.0 0.0 rg 50 100 200 300 36 re 51 h f 52 endstream 53 endobj 54 55 4 0 obj 56 << 57 /Type /Pages 58 /Kids [5 0 R] 59 /Count 1 60 >> 61 endobj 62 63 % Note that this page has no content stream 64 5 0 obj 65 << 66 /Type /Page 67 /Parent 4 0 R 68 /MediaBox [0 0 612 396] 69 /Annots [2 0 R] 70 /Resources << >> 71 >> 72 endobj 73 74 6 0 obj 75 << 76 /Length 2429 77 /Type /Metadata 78 /Subtype /XML 79 >> 80 stream 81 <x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Insert XMP tool name here.'> 82 <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'> 83 <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/"> 84 <pdf:Producer>Datalogics - example producer program name here</pdf:Producer> 85 <pdf:Copyright>Copyright 2017 PDF Association</pdf:Copyright> 86 <pdf:Keywords>PDF 2.0 sample example</pdf:Keywords> 87 </rdf:Description> 88 <rdf:Description rdf:about="" xmlns:xap="http://ns.adobe.com/xap/1.0/"> 89 <xap:CreateDate>2017-05-24T10:30:11Z</xap:CreateDate> 90 <xap:MetadataDate>2017-07-11T07:55:11Z</xap:MetadataDate> 91 <xap:ModifyDate>2017-07-11T07:55:11Z</xap:ModifyDate> 92 <xap:CreatorTool>Datalogics - example creator tool name here</xap:CreatorTool> 93 </rdf:Description> 94 <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"> 95 <dc:format>application/pdf</dc:format> 96 <dc:title> 97 <rdf:Alt> 98 <rdf:li xml:lang="x-default">A simple PDF 2.0 example file</rdf:li> 99 </rdf:Alt> 100 </dc:title> 101 <dc:creator> 102 <rdf:Seq> 103 <rdf:li>Datalogics Incorporated</rdf:li> 104 </rdf:Seq> 105 </dc:creator> 106 <dc:description> 107 <rdf:Alt> 108 <rdf:li xml:lang="x-default">PDF 2.0 file that demonstrates using a UTF-8 encoded string (new in PDF 2.0) for the Contents entry of an annotation.</rdf:li> 109 </rdf:Alt> 110 </dc:description> 111 <dc:rights> 112 <rdf:Alt> 113 <rdf:li xml:lang="x-default">Copyright 2017 PDF Association. Licensed to the public under Creative Commons Attribution-ShareAlike 4.0 International license.</rdf:li> 114 </rdf:Alt> 115 </dc:rights> 116 </rdf:Description> 117 <rdf:Description rdf:about="" xmlns:xapRights="http://ns.adobe.com/xap/1.0/rights/"> 118 <xapRights:Marked>True</xapRights:Marked> 119 </rdf:Description> 120 <rdf:Description rdf:about="" xmlns:cc="http://creativecommons.org/ns#"> 121 <cc:license rdf:resource="https://creativecommons.org/licenses/sa/4.0/" /> 122 </rdf:Description> 123 <rdf:Description rdf:about="" xmlns:xapMM="http://ns.adobe.com/xap/1.0/mm/"> 124 <xapMM:DocumentID>uuid:a1c3218d-7b1c-4ffa-3241-9942211bbcbf</xapMM:DocumentID> 125 <xapMM:InstanceID>uuid:98f97707-edd0-46aa-9238-6bb4d3431f48</xapMM:InstanceID> 126 </rdf:Description> 127 </rdf:RDF> 128 </x:xmpmeta> 129 endstream 130 endobj 131 132 xref 133 0 7 134 0000000007 65535 f 135 0000000021 00000 n 136 0000000916 00000 n 137 0000001210 00000 n 138 0000001435 00000 n 139 0000001552 00000 n 140 0000001677 00000 n 141 trailer 142 << 143 /Size 7 144 /Root 1 0 R 145 /ID [ <c619f332a54e7acd1c0f3166f4cfa751><c619f332a54e7acd1c0f3166f4cfa751> ] 146 >> 147 startxref 148 4206 149 %%EOF