Hi,
How I can read the properties of a PDF file? (author, created date , etc)
regards
Printable View
Hi,
How I can read the properties of a PDF file? (author, created date , etc)
regards
have you taken a look at http://www.ujihara.jp/iTextdotNET/en/ ?
Thank you for the link, but there would be some another way of doing it without having to use libraries of the others?
regards
System.IO.FileInfo has some of the properties you're looking for, but it's author that I think you'll need a pdf library for.
you don't like other people's libraries? odd.
Without using someone else's library... you could always write your own? (no, don't ask I'm fresh outta links)
I like when I find that someone has already gone thru the trouble of writing something that would be tedious for me to create. Now sometimes I don't like their implementation and I would rewrite, but an initial peice of source goes a long way..
Open the file and search for the following "/Author" "/Title" "/Creator" "/Producer" "/CreationDate" "/Subject" and "/Keywords" to get the corresponding information. The values will apear in side () to the right of each key word.
For example:
/Title ( PostScript Language Reference, Third Edition )
/Author ( Adobe Systems Incorporated )
/Creator ( Adobe FrameMaker 5 . 5 . 3 for Power Macintosh® )
/Producer ( Acrobat Distiller 3 . 01 for Power Macintosh )
/CreationDate ( D : 19970915110347 - 08 ' 00 ' )
/ModDate ( D : 19990209153925 - 08 ' 00 ' )
None of the above are required, so a document may not have any.
You can open a pdf document in write, just right click on the document and select write from the open with menu, to see what inside of it.