Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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


Replies are listed 'Best First'.
Re^3: Retrieve the PDF file description
by marto (Cardinal) on Apr 29, 2006 at 12:27 UTC

    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.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2021-03-02 05:52 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (38 votes). Check out past polls.