#896·bentopdf

Sign PDF: Flattening FreeText annotation moves text to bottom-left corner of page

Author: doubledown00Created Sep 28, 2026Updated Sep 28, 2026
Labelsbug

Description

Description When using Sign PDF, ordinary text added with the text tool is positioned and saved correctly when the document is exported without enabling Flatten PDF. When Flatten PDF is enabled, however, the text is not flattened at its displayed position. Instead, it is rendered near the bottom-left corner of the PDF page. Image-based signatures added during the same editing session flatten correctly and remain in their intended positions. I initially thought the text was being discarded during flattening. Comparing the flattened and unflattened PDFs shows that the text is actually being rendered at the wrong coordinates.

Actual result Without flattening:

  • The signature image remains correctly positioned.
  • The text remains correctly positioned in the Date field. With Flatten PDF enabled:
  • The signature image remains correctly positioned.
  • The text no longer appears in the Date field.
  • Instead, the text is rendered at the extreme lower-left portion of the page. This is visible on both FSA form pages in the attached comparison documents. In the unflattened version, 09/27/26 appears in the intended Date field on pages 3 and 5. Kimbrell_2024_SDRP_FSA-510_Fina… Kimbrell_2024_SDRP_FSA-510_Fina… In the flattened version, those Date fields are blank, while 09/27/26 appears at the bottom-left edge of the corresponding pages. Kimbrell_2024_SDRP_FSA-510_Fina… Kimbrell_2024_SDRP_FSA-510_Fina… Expected result When Flatten PDF is enabled, the text should be rendered permanently into the PDF at the same visual position where the text annotation was placed in the editor. For example, text placed in the Date field should remain in that Date field after flattening. Additional observations This appears to be a coordinate transformation / placement issue affecting text annotations during flattening, rather than a general save failure. The following differential is consistent:
  • Image annotation/signature → flattened at correct coordinates.
  • Text annotation → saved correctly when not flattened.
  • Text annotation → rendered at incorrect coordinates when flattened. The fact that the text still appears in the flattened PDF, but at the bottom-left of the page, suggests that the text content is being processed successfully but the annotation coordinates are not being translated correctly into page coordinates during flattening. Environment
  • Self-hosted BentoPDF
  • Docker deployment
  • bentopdf-simple:latest
  • Chromium-based browser
  • September 2026 build Reproduction files I have two PDFs produced from the same document/session for comparison:
  • signed - with date.pdf — exported without flattening; text remains correctly positioned.
  • signed - no date.pdf — exported with flattening; text is moved to the bottom-left corner. Both demonstrate the issue consistently on two separate pages. That version should give the developer a pretty damn direct place to look: FreeText coordinate conversion during flattening, rather than “some text went missing somewhere.”

Steps to Reproduce

  1. Open Sign PDF.
  2. Load a PDF.
  3. Insert a signature as an image.
  4. Use the text tool to add ordinary text elsewhere on the page. In my test, I entered 09/27/26 in a form's Date field.
  5. Confirm that both the signature image and text are positioned correctly in the editor.
  6. Save/download the PDF without enabling Flatten PDF.
  7. Confirm that the text appears in its intended location.
  8. Repeat the process with the same document, this time enabling Flatten PDF.
  9. Open the flattened PDF.

Console Logs

bash
None.

Sample PDF or File

form fsa510-not flattened.pdf form fsa510-flattened.pdf

Browser

Other

Browser Version

Newest Vivaldi

Operating System

Linux

BentoPDF Version

2.8.8

Additional Context

No response

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