You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2021/08/07 13:45:00 UTC
[jira] [Comment Edited] (PDFBOX-5253) Create PDImmutableRectangle
class for fixed sizes
[ https://issues.apache.org/jira/browse/PDFBOX-5253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17395230#comment-17395230 ]
Andreas Lehmkühler edited comment on PDFBOX-5253 at 8/7/21, 1:44 PM:
---------------------------------------------------------------------
An alternative approach is to remove all setters and pass the bounds values using the constructor only. For convenience we could add a method returning an instance with flipped x/y-values which is needed in several cases
was (Author: lehmi):
An alternative approach is to remove all setters and pass the bounds values using the constructor only. For convenience we could add a method the return an instance with flipped x/y-values which is needed in several cases
> Create PDImmutableRectangle class for fixed sizes
> -------------------------------------------------
>
> Key: PDFBOX-5253
> URL: https://issues.apache.org/jira/browse/PDFBOX-5253
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 2.0.24
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> As suggested by valerybokov in PR 107.
> It prevents a theoretical problem, i.e. that a developer assigns a paper size (e.g. PDRectangle.A4) to a page and then modifies the rectangle of this page for some reason. This would also modify all further uses of this paper size.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org