954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PDF file problem

After reading PDF file format specification manual and several other websites providing considerable amount of theories on this subject, I built one simple pdf file.

An empty blank page, pretty much doing nothing else. But my problem is, When I am trying to close it, Adobe Reader prompts a dialog for saving any changes. Its only happening with simple pdf files without any encoding/encryption.

For instance the following code,

"""
%PDF-1.4
%âãÏÓ
1 0 obj </Catalog /Pages 2 0 R>>
endobj
2 0 obj </Pages /Kids [3 0 R] /Count 1>>
endobj
3 0 obj </Page /Parent 2 0 R /Resources <<>> /MediaBox [0 0 500 800]>>
endobj
xref
0 4
0000000000 65535 f
0000000010 00000 n
0000000060 00000 n
0000000115 00000 n
trailer <4/Root 1 0 R>>
startxref
202
%%EOF

"""

Another thing I noticed, in any PDF file after the PDF version, there are some bizarre set of characters, "%âãÏÓ" which is not mentioned in even Adobe PDF specification manual. But almost all PDFs I had in my collection has got this value, when I opened it using a hex editor.

Please shed some light on this topic, if any one knows. What is wrong with my pdf code and what is that strange set of bytes following pdf version

praschat
Newbie Poster
4 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

http://www.google.com/search?q=pdf+file+format+specification&ie=utf-8&oe=utf-8
1st link takes you to a 700+ page document telling you all you need to know.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: