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

Importing one Pdf document into another.

$
0
0

I am trying to import one Pdf-document into another using a Reference XObject. I am looking at thePDF- specification, and I thought I was doing things the right way, but its not working. The PDF-specification doesen't have an example of how to do this, only an explanation.

Below is the PDF-file I am testing with (if anyone can be bothered looking at it   ). The file embeds another pdf-file, and is supposed to show a part of the embedded file at a certain position.

Again, if anyone can be bothered looking at my PDF and see if they can see what I am doing wrong here I would appreciate it.

(There is nothing wrong with the embedded file itself...)

 

PDF-file embedding another PDF-file and using a Reference XObject to display the embedded file:

 

%PDF-1.5

1 0 obj

<<

/Type /XObject

/Subtype /Form

/BBox [0 0 100 100]

/Ref <<

/F (4fa27162e72547a00771606.pdf)

/Page 1

>>

>>

endobj

2 0 obj

<<

/Type /Filespec

/F (4fa27162e72547a00771606.pdf)

/EF <</F 3 0 R>>

>>

endobj

3 0 obj

<<

/Type /EmbeddedFile

/Length 854

>>

stream

%PDF-1.5

1 0 obj

<<

/Length 334

>>

stream

q

1 0 0 1 128.10769621539 70.591821183642 cm

1 0 0 1 0 0 cm

1 0 0 1 0 0 cm

1 0 0 1 0 0 cm

1 0 0 1 -128.10769621539 -70.591821183642 cm

/DeviceCMYK CS

1 1 1 1 SCN

/DeviceCMYK cs

0 0.89 0.89 0.05 scn

0.2743205486411 w

2.743205486411 M

0 J

0 j

-1.9202438404877 -2.6517653035306 260.05588011176 146.48717297435 re

h

B

Q

endstream

endobj

2 0 obj

<<

/Type /Page

/Parent 3 0 R

/Resources <<

/Font <<>>

/XObject <<>>

>>

/MediaBox [0 0 255.11811023622 141.73228346457]

/Contents [1 0 R]

>>

endobj

3 0 obj

<<

/Type /Pages

/Kids [2 0 R]

/Count 1

>>

4 0 obj

<<

/Type /Catalog

/Pages 3 0 R

>>

endobj

xref

0 5

0000000000 65535 f

0000000010 00000 n

0000000401 00000 n

0000000568 00000 n

0000000624 00000 n

trailer

<<

/Size 5

/Root 4 0 R

>>

startxref

679

%%EOF

endstream

endobj

4 0 obj

<<

/Length 322

>>

stream

q

1 0 0 1 93.268986537973 71.826263652527 cm

1 0 0 1 0 0 cm

1 0 0 1 0 0 cm

1 0 0 1 0 0 cm

1 0 0 1 -93.268986537973 -71.826263652527 cm

55.961391922784 45.628651257302 74.615189230378 52.39522479045 re

W n

1 0 0 1 55.961391922784 42.062484124968 cm

74.615189230378 0 0 55.961391922784 0 0 cm

/XobjectPDF1 Do

Q

endstream

endobj

5 0 obj

<<

/Type /Page

/Parent 6 0 R

/Resources <<

/Font <<>>

/XObject << /XobjectPDF1 1 0 R >>

>>

/MediaBox [0 0 255.11811023622 141.73228346457]

/Contents [4 0 R]

>>

endobj

6 0 obj

<<

/Type /Pages

/Kids [5 0 R]

/Count 1

>>

7 0 obj

<<

/Type /Catalog

/Pages 6 0 R

>>

endobj

xref

0 8

0000000000 65535 f

0000000010 00000 n

0000000144 00000 n

0000000238 00000 n

0000001172 00000 n

0000001551 00000 n

0000001738 00000 n

0000001794 00000 n

trailer

<<

/Size 8

/Root 7 0 R

>>

startxref

1849

%%EOF


Viewing all articles
Browse latest Browse all 46145

Trending Articles



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