Thread View: adobe.document.graphics.server
3 messages
3 total messages
Started by Richard_L_Mayes
Tue, 27 Jul 2004 13:32
Obtaining the document size of a PDF
Author: Richard_L_Mayes
Date: Tue, 27 Jul 2004 13:32
Date: Tue, 27 Jul 2004 13:32
8 lines
946 bytes
946 bytes
Hi Just wondering if anyone knows how to obtain the document size of a PDF. I have tried exporting the metadata of the PDF but this attribute is not included like other files (eg jpg and tiff). If anyone knows how I can obtain this I will glad kiss their boots!!!! Thanks Richard
Re: Obtaining the document size of a PDF
Author: Bob_Emerson
Date: Tue, 27 Jul 2004 15:48
Date: Tue, 27 Jul 2004 15:48
9 lines
1316 bytes
1316 bytes
There are two workarounds. 1. Convert the first page of the PDF to Raster and then do an imageInfo on the raster copy of the PDF. Parse the imageInfo--possibly outside of AGS although the adobe-content syntax can be useful in some situations. For an example of using the adobe-content sytnax, see the KB at: <http://support.adobe.com/devsup/devsup.nsf/docs/52547.htm> 2. Open the PDF as text and GREP for MediaBox. It is of the format: MediaBox[0.0 0.0 612 792] If a CropBox is present you may need to take it into account. Note: each page in a PDF can have a different page size and orientation--but many/most PDFs have the same values for all pages.
Re: Obtaining the document size of a PDF
Author: Richard_L_Mayes
Date: Wed, 28 Jul 2004 10:22
Date: Wed, 28 Jul 2004 10:22
3 lines
769 bytes
769 bytes
Thanks that worked great. If you would like to send me some boots....
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads