http://qs321.pair.com?node_id=546486


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