You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2018/10/24 19:38:00 UTC

[jira] [Updated] (PDFBOX-4359) Bad sizing of signature field inside rotated page

     [ https://issues.apache.org/jira/browse/PDFBOX-4359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-4359:
------------------------------------
    Description: 
From Patrick Herber in the user mailing list:
{quote}I have some problems with the sizing of a signature field inside a rotated document page (90
 degrees).
 If instead of specifying the zoom factor (as in the CreateVisibleSignature example) I specify
 the desired height and width of the signature, the resulting image has completely wrong dimensions:
{code:java}
visibleSignDesigner.xAxis(x).yAxis(y).height(height).width(width).adjustForRotation();
{code}
If the page is not rotated or if I remove the call to adjustForRotation() then the image is
 correctly displayed (in case of rotated document of course rotated but with the correct proportions).
{quote}
The problem is that {{adjustForRotation()}} is hard-coded for 200 x 100 size (zoomed at 50%).

  was:
From Patrick Herber in the user mailing list:
{quote}
I have some problems with the sizing of a signature field inside a rotated document page (90
degrees).
If instead of specifying the zoom factor (as in the CreateVisibleSignature example) I specify
the desired height and width of the signature, the resulting image has completely wrong dimensions:
{code}
visibleSignDesigner.xAxis(x).yAxis(y).height(height).width(width).adjustForRotation();
{code}

If the page is not rotated or if I remove the call to adjustForRotation() then the image is
correctly displayed (in case of rotated document of course rotated but with the correct proportions).
{quote}
The problem is that \{{adjustForRotation()}} is hard-coded for 200 x 100 size.


> Bad sizing of signature field inside rotated page
> -------------------------------------------------
>
>                 Key: PDFBOX-4359
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4359
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Signing
>    Affects Versions: 2.0.12
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.13, 3.0.0 PDFBox
>
>
> From Patrick Herber in the user mailing list:
> {quote}I have some problems with the sizing of a signature field inside a rotated document page (90
>  degrees).
>  If instead of specifying the zoom factor (as in the CreateVisibleSignature example) I specify
>  the desired height and width of the signature, the resulting image has completely wrong dimensions:
> {code:java}
> visibleSignDesigner.xAxis(x).yAxis(y).height(height).width(width).adjustForRotation();
> {code}
> If the page is not rotated or if I remove the call to adjustForRotation() then the image is
>  correctly displayed (in case of rotated document of course rotated but with the correct proportions).
> {quote}
> The problem is that {{adjustForRotation()}} is hard-coded for 200 x 100 size (zoomed at 50%).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org