http://www.perlmonks.org?node_id=519296
anniyan has asked for the wisdom of the Perl Monks concerning the following question:

Monks i want to get the page layouts or cropbox height and width from a pdf page. I tried PDF::API2 from which we can set the cropbox in a pdf page. But i want to extract the already existing cropbox attributes. Is it possible? if so please point the module which will help to accomplish this.

Regards,
Anniyan
(CREATED in HELL by DEVIL to s|EVILS|GOODS|g in WORLD)

  • Comment on Extract page layouts or crop box height and width from pdf

Replies are listed 'Best First'.
Re: Extract page layouts or crop box height and width from pdf
by marto (Bishop) on Dec 27, 2005 at 11:19 UTC
    anniyan,

    What other modules have you looked at?
    Take a look at CAM::PDF, it may be of use to you in finding objects and extracting/copying them.

    Martin

      marto thanks. I already tried that module but there is no method to identify page layouts or cropbox width and height.

      Regards,
      Anniyan
      (CREATED in HELL by DEVIL to s|EVILS|GOODS|g in WORLD)

        PDFLib pCOS looks like it'll allow access to the cropbox information. It is, however, commercial software, which may or may not be a problem for you. I'm guessing the price is in euro but I'm not sure, as it shows as '99*' (for the non-server version) in my browser ;-),