Skip to content

Allow FreeText annotations without DA in relaxed mode #948

@xelan

Description

@xelan

Allow FreeText annotations without DA in relaxed mode

Please ensure the following:

  • Your issue is based on the latest commit

Tested with pdfcpu 0.8.1

  • State your OS and OS version

Debian 12, Windows 10

The PDF files automatically annotated by the Austrian justice document management system contain FreeText annotations which are missing the Default Appearance (DA) entry. Apparently the Default Appearance is required for FreeText, but missing in those PDFs. Unfortunately we have no control over the PDFs, but must be able to process them.

Here is an artificial example file I created by editing an uncompressed PDF with FreeType entry in a Hex editor:
example-freetext-no-da-uncompressed.pdf

$ pdfcpu info example-freetext-no-da-uncompressed.pdf

repaired: xreftable
dict=FreeText required entry=DA missing

The xreftable is probably borked due to the crude editing, but that was the quickest way to create an example file.

Thank you very much, kind regards
Andreas

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions