Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all articles
Browse latest Browse all 46145

XObject - Alternates files for printing

$
0
0
Hi all,

A second question with the same example as my preceding question solved now. I recall the example working well on Windows XP Professionnel SP 2 or Mac 10.3.9.

%PDF-1.7

1 0 obj [/PDF] endobj

4 0 obj << /Length 36>>

stream

q 100 0 0 100 100 400 cm /Im3 Do Q

endstream endobj

5 0 obj <</Type /Page /Parent 2 0 R /MediaBox [0 0 595 842] /Contents [4 0 R ] /Resources <</ProcSet 1 0 R /Font <<>> /XObject <</Im3 3 0 R >> >> >> endobj

3 0 obj <</Type /XObject /Subtype /Image /Width 39 /Height 41 /ColorSpace /DeviceRGB /BitsPerComponent 8 /Filter /DCTDecode /Length 1087>>

stream

% binary data

endstream endobj

2 0 obj <</Type /Pages /Kids [5 0 R ] /Count 1>> endobj

6 0 obj <</Type /Catalog /Pages 2 0 R >> endobj

xref

0 7

0000000000 65535 f

0000000010 00000 n

0000001536 00000 n

0000000278 00000 n

0000000033 00000 n

0000000120 00000 n

0000001593 00000 n

trailer

<</Size 7 /Root 6 0 R >> startxref 1642

%%EOF

b I add an alternate file for printing defined in PDF 1.7 page 348 (example). So I add two objects. Now I get an error 109.

Here it is the second one.

%PDF-1.7
1 0 obj [/PDF] endobj
4 0 obj [<</Image 5 0 R /DefaultForPrinting true >> ] endobj
6 0 obj << /Length 36>>
stream
q 100 0 0 100 100 400 cm /Im3 Do Q
endstream endobj
7 0 obj <</Type /Page /Parent 2 0 R /MediaBox [0 0 595 842] /Contents [6 0 R ] /Resources <</ProcSet 1 0 R /Font <<>> /XObject <</Im3 3 0 R >> >> >> endobj
3 0 obj <</Type /XObject /Subtype /Image /Width 39 /Height 41 /ColorSpace /DeviceRGB /BitsPerComponent 8 /Alternates 4 0 R /Filter /DCTDecode /Length 1087>>
stream

% binary data for the base image

endstream endobj
5 0 obj <</Type /XObject /Subtype /Image /Width 50 /Height 64 /ColorSpace /DeviceRGB /BitsPerComponent 8 /Filter /DCTDecode /Length 1721>>
stream

% binary data for the alternate image

endstream endobj

2 0 obj <</Type /Pages /Kids [7 0 R ] /Count 1>> endobj
8 0 obj <</Type /Catalog /Pages 2 0 R >> endobj
xref
0 9
0000000000 65535 f
0000000010 00000 n
0000003508 00000 n
0000000340 00000 n
0000000033 00000 n
0000000095 00000 n
0000000095 00000 n
0000000182 00000 n
0000003565 00000 n
trailer
<</Size 9 /Root 8 0 R >> startxref 3614
%%EOF

Thanks for your help.

François

Viewing all articles
Browse latest Browse all 46145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>