(Bug) Adding text to Sign PDF module places text in bottom left of the document
Description
Image bentopdf-simple:latest/edge
When using the Sign PDF module, inserting text and checking the flatten check box causes the inserted text to lose position and move to the bottom left of the page.
When the flatten checkbox is not checked, the text keeps the correct position. I was on the latest tag but after reading another issue related to the Sign PDF module, I also tried the edge release and have the same results.
Steps to Reproduce
- Go to Sign PDF module
- add text to the PDF in desired position
- check "flatten PDF" box
- Click "Save & Download Signed PDF"
Console Logs
bootstrap-autofill-overlay.js:9562 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'includes')
at AutofillOverlayContentService.<anonymous> (bootstrap-autofill-overlay.js:9562:81)
at Generator.next (<anonymous>)
at bootstrap-autofill-overlay.js:8522:71
at new Promise (<anonymous>)
at autofill_overlay_content_service_awaiter (bootstrap-autofill-overlay.js:8518:12)
at AutofillOverlayContentService.setQualifiedLoginFillType (bootstrap-autofill-overlay.js:9555:16)
at AutofillOverlayContentService.isIgnoredField (bootstrap-autofill-overlay.js:9530:23)
at AutofillOverlayContentService.<anonymous> (bootstrap-autofill-overlay.js:8981:22)
at Generator.next (<anonymous>)
at bootstrap-autofill-overlay.js:8522:71
(anonymous) @ bootstrap-autofill-overlay.js:9562
(anonymous) @ bootstrap-autofill-overlay.js:8522
autofill_overlay_content_service_awaiter @ bootstrap-autofill-overlay.js:8518
setQualifiedLoginFillType @ bootstrap-autofill-overlay.js:9555
isIgnoredField @ bootstrap-autofill-overlay.js:9530
(anonymous) @ bootstrap-autofill-overlay.js:8981
(anonymous) @ bootstrap-autofill-overlay.js:8522
autofill_overlay_content_service_awaiter @ bootstrap-autofill-overlay.js:8518
setupOverlayListeners @ bootstrap-autofill-overlay.js:8978
setupOverlayOnField @ bootstrap-autofill-overlay.js:23615
(anonymous) @ bootstrap-autofill-overlay.js:23600
setupOverlayListeners @ bootstrap-autofill-overlay.js:23599
(anonymous) @ bootstrap-autofill-overlay.js:22749
fulfilled @ bootstrap-autofill-overlay.js:22456
Promise.then
step @ bootstrap-autofill-overlay.js:22458
(anonymous) @ bootstrap-autofill-overlay.js:22459
collect_autofill_content_service_awaiter @ bootstrap-autofill-overlay.js:22455
getPageDetails @ bootstrap-autofill-overlay.js:22722
(anonymous) @ bootstrap-autofill-overlay.js:24057
(anonymous) @ bootstrap-autofill-overlay.js:23965
autofill_init_awaiter @ bootstrap-autofill-overlay.js:23961
collectPageDetails @ bootstrap-autofill-overlay.js:24056
collectPageDetails @ bootstrap-autofill-overlay.js:23989
AutofillInit.handleExtensionMessage @ bootstrap-autofill-overlay.js:24013
pdf.worker.mjs:351 Warning: Font "Helv" is not available -- attempting to fallback to a default font.
warn @ pdf.worker.mjs:351
loadFont @ pdf.worker.mjs:32367
handleSetFont @ pdf.worker.mjs:32211
_getFontData @ pdf.worker.mjs:51325
createNewAppearanceStream @ pdf.worker.mjs:52452
createNewAnnotation @ pdf.worker.mjs:50827
saveNewAnnotations @ pdf.worker.mjs:49967
saveNewAnnotations @ pdf.worker.mjs:55799
await in saveNewAnnotations
(anonymous) @ pdf.worker.mjs:58515
Promise.then
(anonymous) @ pdf.worker.mjs:58512
await in (anonymous)
#onMessage @ pdf.worker.mjs:57264Sample PDF or File
testDocumentNoFlatten.pdf testDocumentWithText.pdf
Browser
Brave
Browser Version
Brave 1.88.134 (Official Build) (64-bit)
Operating System
Linux
BentoPDF Version
2.8.2
Additional Context
2 attachments, both have text that I added in the GUI above the line on the document. When flatten is selected, the text loses position and drops to the bottom left of the document. This is my most used function, and I've checked that as of a couple of weeks ago this was working as expected. I don't believe my browser has been updated since last working state.
Thanks so much!
Pre-submission Checklist
- I have included console logs from the browser DevTools
- I have attached a sample file or described how to reproduce the issue
- I have searched existing issues to ensure this is not a duplicate
Source: alam00000/bentopdf