Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Retrieve the PDF file description

by Punitha (Priest)
on Apr 29, 2006 at 12:11 UTC ( #546486=note: print w/ replies, xml ) Need Help??


in reply to Re: Retrieve the PDF file description
in thread Retrieve the PDF file description

Thank you for your comment.

But in my PDF file all the Description fields (Title, Author,Description etc.) has value. But the PDF Producer is Acrobat Distiller 7.0 not the Acrobat writer.

I am not sure whether thats the problem. And also i want to retrieve the page size value, for this i added these lines and tried

my ($startx,$starty, $endx,$endy) = $pdf->PageSize (1) ; print "$startx\t$starty\t$endx\t$endy\n";

These lines also not working for the same PDF files.But for some PDF file it prints the value as

0 0 612 792

But the page size value in the description is

8.50 x 11.00 in

I want the same value as output (in inches). Can anyone comment me in this and whether i am going in right direction or show some other way

Thank you once again and in advance

Punitha


Comment on Re^2: Retrieve the PDF file description
Select or Download Code
Re^3: Retrieve the PDF file description
by marto (Bishop) on Apr 29, 2006 at 12:27 UTC
    Punitha,

    Firstly, I am not fully understanding what you are trying to say. Have you looked at your end result PDF in acrobat reader and checked the properties to see if these fields are populated?

    Secondly, the coded you added to find out the sizes is working for you. You need to divide the sizes by 72 (72 points = 1 inch) to convert the value to inches.
    So 612 / 72 = 8.5 and 792 / 72 = 11.

    Hope this helps.

    Martin

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://546486]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (16)
As of 2014-12-19 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (86 votes), past polls