The stupid question is the question not asked | |
PerlMonks |
Re: Retrieve the PDF file descriptionby marto (Cardinal) |
on Apr 29, 2006 at 11:13 UTC ( [id://546483]=note: print w/replies, xml ) | Need Help?? |
Hi Punitha,
I tested this code firstly with a PDF file I knew had the information you are looking for, and your script ran properly, printing the expected results. Then I created a document using Open Office Writer, exported it to PDF (In the 'PDF Options' tab I unchecked the 'Tagged PDF' and 'Export Notes' options) and experienced the errors you mention.
Then I opened the PDF and displayed the 'Document Properties', only the PDF version and Producer tags have values, hence the 1.4 printing out. I think then that you can assume your problem occurs when these values are not populated either in the source document before conversion, or later in Acrobat writer. If you want to catch these errors take a look at this basic example:
Hope this helps. Martin
In Section
Seekers of Perl Wisdom
|
|