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

XObject - How to use File specification dictionary

$
0
0
Hi all,

b Here it is a complete PDF file with just a small picture in the page and it works well (windows XP Professionel SP 2 and 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 Now, I add a file specification for C:\Epinette.jpg (or /Epinette.jpg at the root of HD Disk on Mac) using Table 3.40 and the example page 348 (alternates) and I get a blank page. It does not matter if I let the stream or I write an empty stream (normally the viewer ignores the stream ; so its correct on this point. The file exists and is readable by Photoshop. I put in the same directory or folder (so root C:\ or root /) the PDF file. I am connected as Administrator.

b Here it is the second example.

%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 /FFilter /DCTDecode /Length 0 /F << /Type /Filespec /F (/C/Epinette.jpg) /UF (˛ˇ/C/Epinette.jpg) >> >>

stream

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

0000000516 00000 n

0000000278 00000 n

0000000033 00000 n

0000000120 00000 n

0000000573 00000 n

trailer

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

%%EOF

b The two characters before the path in UF parameter are thorn and ydieresis. I tried to delete C in the path (no drive). The same in PDF 1.4 (without UF parameter) on windows or Mac. I tried with and without /Mac in the text string as the table 3.40 shows. Idem for HD.

Sure, I will send the two PDF files for someone if necessary.

Thanks for 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>