Skip Menu |
 

This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id: 130039
Status: resolved
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: jidanni [...] jidanni.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.035



Subject: mention how to *get* the global mediabox
From: jidanni [...] jidanni.org
Download (untitled) / with headers
text/plain 175b
We read $pdf->mediabox($llx, $lly, $urx, $ury) Sets the global mediabox. OK, but also mention how to *get* the global mediabox. E.g., "what is the current height?"
Download (untitled) / with headers
text/plain 181b
On Wed Jul 10 22:00:46 2019, jidanni@jidanni.org wrote: Show quoted text
> OK, but also mention how to *get* the global mediabox. E.g., "what is > the current height?"
See 124915 (resolved bugs).
Download (untitled) / with headers
text/plain 595b
On Wed Jul 10 22:00:46 2019, jidanni@jidanni.org wrote: Show quoted text
> We read > $pdf->mediabox($llx, $lly, $urx, $ury) > Sets the global mediabox. > OK, but also mention how to *get* the global mediabox. E.g., "what is > the current height?"
There wasn't actually a method for getting the global boundary boxes, as it turns out. The closest you could get was to call get_mediabox on a page, which would default to the global mediabox if it hadn't been overridden. I've just updated mediabox, cropbox, bleedbox, trimbox, and artbox to do both getting and setting at both the PDF and page level.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.