[
https://issues.apache.org/jira/browse/PDFBOX-5630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gediminas Rimša updated PDFBOX-5630:
------------------------------------
Description:
Currently `org.apache.pdfbox.pdmodel.common.PDRectangle` has constants for
commonly used paper sizes like A3, A4, ... , as well as North American ones
(LETTER and LEGAL).
However, a constant for a common North American paper format TABLOID (similar
to A3) is missing (see
[https://en.wikipedia.org/wiki/Paper_size#North_American_paper_sizes|https://en.wikipedia.org/wiki/Paper_size#North_American_paper_sizes).]).
The dimensions of it are 11×17 inches or 279×432 mm.
It would be great if PDFBox added a constant for it.
Workaround - create a PDRectangle of needed dimensions yourself via:
{{new PDRectangle(PDRectangle.LETTER.getHeight(), PDRectangle.LETTER.getWidth()
* 2);}}
was:
Currently `org.apache.pdfbox.pdmodel.common.PDRectangle` has constants for
commonly used paper sizes like A3, A4, ... , as well as North American ones
(LETTER and LEGAL).
However, a constant for a common North American paper format TABLOID (similar
to A3) is missing (see
[https://en.wikipedia.org/wiki/Paper_size#North_American_paper_sizes).] The
dimensions of it are 11×17 inches or 279×432 mm.
Workaround - create a PDRectangle of needed dimensions yourself via:
{{new PDRectangle(PDRectangle.LETTER.getHeight(), PDRectangle.LETTER.getWidth()
* 2);}}
> Add PDRectangle#TABLOID paper size
> ----------------------------------
>
> Key: PDFBOX-5630
> URL: https://issues.apache.org/jira/browse/PDFBOX-5630
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Reporter: Gediminas Rimša
> Priority: Minor
>
> Currently `org.apache.pdfbox.pdmodel.common.PDRectangle` has constants for
> commonly used paper sizes like A3, A4, ... , as well as North American ones
> (LETTER and LEGAL).
>
> However, a constant for a common North American paper format TABLOID (similar
> to A3) is missing (see
> [https://en.wikipedia.org/wiki/Paper_size#North_American_paper_sizes|https://en.wikipedia.org/wiki/Paper_size#North_American_paper_sizes).]).
> The dimensions of it are 11×17 inches or 279×432 mm.
> It would be great if PDFBox added a constant for it.
>
> Workaround - create a PDRectangle of needed dimensions yourself via:
> {{new PDRectangle(PDRectangle.LETTER.getHeight(),
> PDRectangle.LETTER.getWidth() * 2);}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]