Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Retrieve the PDF file description

by Punitha (Priest)
on Apr 29, 2006 at 12:11 UTC ( [id://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

Replies are listed 'Best First'.
Re^3: Retrieve the PDF file description
by marto (Cardinal) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://546486]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found