PhilterPaper / Perl-PDF-Builder

Extended version of the popular PDF::API2 Perl-based PDF library for creating, reading, and modifying PDF documents
https://www.catskilltech.com/FreeSW/product/PDF%2DBuilder/title/PDF%3A%3ABuilder/freeSW_full
Other
6 stars 7 forks source link

[RT 124915] Get Page Size; Get Page Orientation #86

Closed PhilterPaper closed 6 years ago

PhilterPaper commented 6 years ago

Mon Mar 26 01:44:31 2018 david.ayliffe [...] agu.edu.tr - Ticket created Subject: Get Page Size; Get Page Orientation Date: Mon, 26 Mar 2018 08:43:41 +0300 From: David Ayliffe <david.ayliffe [...] agu.edu.tr>

Adding these methods would be a great help. I can't currently see a way of getting this information.

Thanks

PhilterPaper commented 6 years ago

Wouldn't you already know the page dimensions and orientation, since you have to give them at the beginning? I'm trying to think of any case where you wouldn't know what they are (including the default setting). Do you have an example where you have no way of finding out?

PhilterPaper commented 6 years ago

Sat Jun 02 17:54:16 2018 steve [...] deefs.net - Correspondence added

See get_mediabox and related methods in PDF::API2::Page.

-- Steve # Sat Jun 02 17:54:17 2018 The RT System itself - Status changed from 'new' to 'open' # Sat Jun 02 17:54:18 2018 steve [...] deefs.net - Status changed from 'open' to 'resolved'

PhilterPaper commented 6 years ago

Indeed, get_mediabox() should return the lower left (0,0) and upper right (default 595pt wide, 792pt high) corners of the page. If width > height, it's landscape orientation. That should do, so I'll close this.