I have written a Pdf file (fragments below) to act a container to other pdf's. Initialy it all looks good, however when I click on the embedded file inside Acrobat Reader instead of displaying the contents I get a thumbnail of the acrobat logo with the Open and Save options underneath. If I click open it opens a new Reader window with the container file displayed again, not the embedded file. However if I click save it saves the embedded file down to disk correctly.
How can I make it so that when the file is clicked in the attachments window it opens directly into the main reader window?
5 0 obj
<<
/Params <<
/Size 5298
/ModDate (D:20081002163423+01)
/CreationDate (D:20081002163423+01)
>>
/Length 5298
/Type /EmbeddedFile
/Subtype /application#2Fpdf
>>
stream
.............
endstream
endobj
6 0 obj
<<
/Type /Filespec
/EF <<
/F 5 0 R
>>
/F (Options Report.pdf)
/Desc (Options Report)
>>
endobj
7 0 obj
<<
/Type /Catalog
/Pages 8 0 R
/OpenAction[4 0 R /Fit]
/Names << /EmbeddedFiles 9 0 R >>
/Collection <</Type /Collection /View /T>>
>>
endobj
9 0 obj
<< /Names [ (Options Report) 6 0 R ]
>>
endobj
How can I make it so that when the file is clicked in the attachments window it opens directly into the main reader window?
5 0 obj
<<
/Params <<
/Size 5298
/ModDate (D:20081002163423+01)
/CreationDate (D:20081002163423+01)
>>
/Length 5298
/Type /EmbeddedFile
/Subtype /application#2Fpdf
>>
stream
.............
endstream
endobj
6 0 obj
<<
/Type /Filespec
/EF <<
/F 5 0 R
>>
/F (Options Report.pdf)
/Desc (Options Report)
>>
endobj
7 0 obj
<<
/Type /Catalog
/Pages 8 0 R
/OpenAction[4 0 R /Fit]
/Names << /EmbeddedFiles 9 0 R >>
/Collection <</Type /Collection /View /T>>
>>
endobj
9 0 obj
<< /Names [ (Options Report) 6 0 R ]
>>
endobj