Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PDF information

Status
Not open for further replies.

tacallah

Programmer
Dec 25, 2007
1
US
We process PDF files on our Linux server. These PDF files must be 8.5 x 11. Only certain fonts are allowed in the document when they are not embedded.

I wrote a Perl program to parse through a PDF file to check the parameters of MediaBox for page size and BaseFont for fonts. The program also checks for annotations and HideMenubar, HideToolbar, and HideWindowUI. The program seems to work well unless the stream is encrypted.

I recently found pdffonts and pdfinfo from which I could use for detecting the page size and fonts. Does anyone have any suggestions for obtaining PDF information from within a Perl program?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top