github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/pdf20/pageLevelOutputIntent.pdf (about) 1 %PDF-2.0 2 ÿØÿá 3 4 % Objects in a PDF do not need to be written in consecutive order. 5 % This file puts ICC color profiles referenced by rendering intents referenced 6 % in this document at the end - after the document metadata that has a higher object number. 7 % New in PDF 2.0 is the ability to specify a page-level output intent that can override 8 % the output intent for the document in the catalog. 9 % The same content stream is used both with page 1 and page 2 to make it easier 10 % to see any differences introduced via a rendering/viewing process that uses the 11 % output intent to select or simulate a target output device/condition. 12 13 % The ICC profiles used for the output intents in this example are RGB 14 % and therefore not typical of a press or print workflow. They are used 15 % in the interest of demonstrating with real ICC profiles that are compact 16 % in size. 17 18 1 0 obj 19 << 20 /Type /Catalog 21 /Pages 2 0 R 22 /Metadata 11 0 R 23 /OutputIntents [ 24 << /Type /OutputIntent 25 /S /GTS_PDFX 26 /DestOutputProfile 9 0 R 27 /Info (Adobe RGB \(1998\)) 28 /OutputConditionIdentifier (Adobe RGB \(1998\)) 29 /RegistryName (http://www.color.org) 30 >> 31 ] 32 >> 33 endobj 34 35 % NOTE: the two pages here both reference the same content stream. 36 % This is completely legal but not very common. 37 2 0 obj 38 << 39 /Type /Pages 40 /Kids [3 0 R 4 0 R] 41 /Count 2 42 >> 43 endobj 44 45 % This page (page #1) specifies a page-level output intent that uses an ISO Glossy 46 % output intent instead of the ISO newspaper output intent that the document 47 % specifies. PDF 2.0 added the ability to specify page-level output intent. 48 3 0 obj 49 << 50 /Type /Page 51 /Parent 2 0 R 52 /MediaBox [0 0 612 396] 53 /Contents [6 0 R] 54 /Resources << 55 /XObject << /Im1 5 0 R >> 56 /Font << /F1 7 0 R >> 57 >> 58 /OutputIntents [ 59 << /Type /OutputIntent 60 /S /GTS_PDFX 61 /DestOutputProfile 10 0 R 62 /Info (European Color Initiative RGB) 63 /OutputConditionIdentifier (eciRGB) 64 /RegistryName (http://www.color.org) 65 >> 66 ] 67 >> 68 endobj 69 70 4 0 obj 71 << 72 /Type /Page 73 /Parent 2 0 R 74 /MediaBox [0 0 612 396] 75 /Contents [6 0 R] 76 /Resources << 77 /XObject << 78 /Im1 5 0 R 79 >> 80 /Font << /F1 7 0 R >> 81 >> 82 >> 83 endobj 84 85 % This image is a simple RGB color ramp and is intended to demonstrate 86 % how image samples in R,G,B are represented in an uncompressed image form. 87 % The output intent will change how this DeviceRGB is rendered in some 88 % viewer workflows, if they assume that DeviceRGB should be considered 89 % as if it is intended to be characterized by the output intent. 90 % This can be done to prevent same-family colorspace conversions; 91 % the benefits of this are very useful in some CMYK workflows. 92 5 0 obj 93 << 94 /Type /XObject 95 /Subtype /Image 96 /Width 12 97 /Height 12 98 /ColorSpace /DeviceRGB 99 /BitsPerComponent 8 100 /Length 432 101 >> 102 stream 103 - D [ r f f -f Df [f rf f f f f f f - D [ r λ - D [ r f f- fD f[ fr f f f f f f f ffff-ffDff[ffrffffffffffffff ff-fDf[frffffλfff ff-fDf[frfffffff - D [ r ff-fDf[frfffffff -D[rλ绻 -D[r 104 endstream 105 endobj 106 107 6 0 obj 108 << /Length 268 >> 109 stream 110 q 111 q 112 100 0 0 100 72 72 cm 113 /Im1 Do 114 Q 115 /F1 12 Tf 116 12 TL 117 0 0 0 RG 118 BT 119 1 0 0 1 72 216 Tm 120 (This image is placed at an effective resolution of 16.7dpi) Tj 121 T* 122 (Image and text may appear slightly different between pages) Tj 123 ET 124 Q 125 endstream 126 endobj 127 128 7 0 obj 129 << 130 /Type /Font 131 /Subtype /Type1 132 /Name /F1 133 /BaseFont /Helvetica 134 /FirstChar 33 135 /LastChar 126 136 /Widths [ 278 355 556 556 889 667 222 333 333 389 584 278 333 278 278 556 137 556 556 556 556 556 556 556 556 556 278 278 584 584 584 556 1015 138 667 667 722 722 667 611 778 722 278 500 667 556 833 722 778 667 139 778 722 667 611 722 667 944 667 667 611 278 278 278 469 556 222 140 556 556 500 556 556 278 556 556 222 222 500 222 833 556 556 556 141 556 333 500 278 556 500 722 500 500 500 334 260 334 584 ] 142 /FontDescriptor 8 0 R 143 >> 144 endobj 145 146 8 0 obj 147 << 148 /Type /FontDescriptor 149 /FontName /Helvetica 150 /Flags 4 151 /FontBBox [ -166 -225 1000 931 ] 152 /ItalicAngle 0 153 /Ascent 850 154 /Descent -207 155 /CapHeight 718 156 /YHeight 523 157 /StemV 88 158 /StemH 45 159 /MaxWidth 944 160 /AvgWidth 500 161 /MissingWidth 278 162 >> 163 endobj 164 165 % Objects 9 and 10 are after this metadata stream - objects do not need 166 % to be declared in order. The xref table is used to locate objects, 167 % it does not require entries to be consecutive in order in the file. 168 169 11 0 obj 170 << 171 /Length 2460 172 /Type /Metadata 173 /Subtype /XML 174 >> 175 stream 176 <x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Insert XMP tool name here.'> 177 <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'> 178 <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/"> 179 <pdf:Producer>Datalogics - example producer program name here</pdf:Producer> 180 <pdf:Copyright>Copyright 2017 PDF Association</pdf:Copyright> 181 <pdf:Keywords>PDF 2.0 sample example</pdf:Keywords> 182 </rdf:Description> 183 <rdf:Description rdf:about="" xmlns:xap="http://ns.adobe.com/xap/1.0/"> 184 <xap:CreateDate>2017-05-24T10:30:11Z</xap:CreateDate> 185 <xap:MetadataDate>2017-07-11T07:55:11Z</xap:MetadataDate> 186 <xap:ModifyDate>2017-07-11T07:55:11Z</xap:ModifyDate> 187 <xap:CreatorTool>Datalogics - example creator tool name here</xap:CreatorTool> 188 </rdf:Description> 189 <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"> 190 <dc:format>application/pdf</dc:format> 191 <dc:title> 192 <rdf:Alt> 193 <rdf:li xml:lang="x-default">A simple PDF 2.0 example file</rdf:li> 194 </rdf:Alt> 195 </dc:title> 196 <dc:creator> 197 <rdf:Seq> 198 <rdf:li>Datalogics Incorporated</rdf:li> 199 </rdf:Seq> 200 </dc:creator> 201 <dc:description> 202 <rdf:Alt> 203 <rdf:li xml:lang="x-default">Simple PDF 2.0 file that demonstrates the use of page-level output intent specifiers. See comments at head of file; for demonstration purposes only.</rdf:li> 204 </rdf:Alt> 205 </dc:description> 206 <dc:rights> 207 <rdf:Alt> 208 <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> 209 </rdf:Alt> 210 </dc:rights> 211 </rdf:Description> 212 <rdf:Description rdf:about="" xmlns:xapRights="http://ns.adobe.com/xap/1.0/rights/"> 213 <xapRights:Marked>True</xapRights:Marked> 214 </rdf:Description> 215 <rdf:Description rdf:about="" xmlns:cc="http://creativecommons.org/ns#"> 216 <cc:license rdf:resource="https://creativecommons.org/licenses/sa/4.0/" /> 217 </rdf:Description> 218 <rdf:Description rdf:about="" xmlns:xapMM="http://ns.adobe.com/xap/1.0/mm/"> 219 <xapMM:DocumentID>uuid:221cc926-7d2c-4310-3041-9200581dcfbf</xapMM:DocumentID> 220 <xapMM:InstanceID>uuid:809b3def-edd0-466a-a238-6bb051131218</xapMM:InstanceID> 221 </rdf:Description> 222 </rdf:RDF> 223 </x:xmpmeta> 224 endstream 225 endobj 226 227 % ICC profile for the Adobe RGB 1998 228 9 0 obj 229 << 230 /Length 560 231 /N 3 232 >> 233 stream 234 0ADBE mntrRGB XYZ 3 ;acspAPPL none -ADBE 235 cprt 2desc 0 kwtpt bkpt rTRC gTRC bTRC rXYZ gXYZ bXYZ text Copyright 2000 Adobe Systems Incorporated desc Adobe RGB (1998) XYZ Q XYZ curv 3 curv 3 curv 3 XYZ O XYZ 4 , XYZ &1 / 236 endstream 237 endobj 238 % ICC profile for the ECI RGB v2 (in ICC v2 format) 239 10 0 obj 240 << 241 /Length 1992 242 /N 3 243 >> 244 stream 245 ADBE@ mntrRGB XYZ 246 )acsp -bICCm4EmQm cprt desc | xwtpt rTRC gTRC bTRC rXYZ gXYZ bXYZ text Copyright (C) 2007 by Color Solutions, All Rights Reserved. License details can be found on: http://www.eci.org/eci/en/eciRGB.php desc 247 eciRGB v2 248 e c i R G B v 2 249 eciRGB v2 XYZ -curv 250 * 4 >