Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow FreeText annotations without DA in relaxed mode #948

Closed
xelan opened this issue Sep 10, 2024 · 4 comments
Closed

Allow FreeText annotations without DA in relaxed mode #948

xelan opened this issue Sep 10, 2024 · 4 comments
Assignees

Comments

@xelan
Copy link
Contributor
xelan commented Sep 10, 2024

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

@hhrutter
Copy link
Collaborator

I guess we can ignore a missing DA entry if there is an AP present.

@xelan
Copy link
Contributor Author
xelan commented Sep 10, 2024

That sounds great, upon a first look the affected documents have an AP entry - hope that this will be the case for all of them😅 Thanks!

@hhrutter
Copy link
Collaborator

This should be fixed with the latest commit!

@xelan
Copy link
Contributor Author
xelan commented Sep 17, 2024

Thank you very much, I've just tested with the latest master 84cdec02.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants