evandrojr opened a new pull request, #562:
URL: https://github.com/apache/pdfbox/pull/562

   Adds an opt-in `useCustomCoordinates(boolean)` to `PDVisibleSignDesigner`.
   
   **Problem:** `PDVisibleSigBuilder.createSignatureRectangle()` always 
converts `yAxis` using the template height (`templateHeight - yAxis`), assuming 
a top-left origin. Callers that already have PDF user-space coordinates (origin 
bottom-left, e.g. on rotated or cropped pages) cannot place the visible 
signature where they want without compensating for that conversion.
   
   **Change:**
   - `PDVisibleSignDesigner`: new `useCustomCoordinates(boolean)` / 
`isUseCustomCoordinates()`, default `false`.
   - `PDVisibleSigBuilder.createSignatureRectangle()`: when enabled, uses 
`xAxis`/`yAxis` directly as the lower-left corner (`+ width`/`+ height` for the 
upper-right). Default behaviour is unchanged.
   - New `PDVisibleSignDesignerTest` covering both modes.
   
   **Testing:** `mvn test -pl pdfbox -am -Dtest=PDVisibleSignDesignerTest` (2 
tests pass, JDK 8).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to