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

pdfcpu: textfield missing "DA" #644

Closed
vedantmamgain opened this issue Jun 29, 2023 · 9 comments
Closed

pdfcpu: textfield missing "DA" #644

vedantmamgain opened this issue Jun 29, 2023 · 9 comments
Assignees

Comments

@vedantmamgain
Copy link

While trying to fill pdfs I noticed that I've been getting pdfcpu: textfield missing "DA" error. I looked into some threads on the internet regarding Default Appearance and found that changing the font to auto in adobe acrobat resolved this issue, unfortunately this fix isn't apt for me as I want to specify the font with which the pdfs should be filled. Can you given me some context on why this is the case and how to resolve this issue other than setting the font to auto.

@hhrutter
Copy link
Collaborator

This should be fixed.
Please go install the latest commit.

@vedantmamgain
Copy link
Author

Switched to the latest commit but now I've started to get a panic. Posting the stack trace below

github.com/pdfcpu/pdfcpu/pkg/pdfcpu/types.Array.FloatNumber
	external/com_github_pdfcpu_pdfcpu/pkg/pdfcpu/types/types.go:354
github.com/pdfcpu/pdfcpu/pkg/pdfcpu/types.RectForArray
	external/com_github_pdfcpu_pdfcpu/pkg/pdfcpu/types/types.go:178
github.com/pdfcpu/pdfcpu/pkg/pdfcpu/primitives.NewTextField
	external/com_github_pdfcpu_pdfcpu/pkg/pdfcpu/primitives/textField.go:907
github.com/pdfcpu/pdfcpu/pkg/pdfcpu/primitives.renderTextFieldAP
	external/com_github_pdfcpu_pdfcpu/pkg/pdfcpu/primitives/textField.go:951
github.com/pdfcpu/pdfcpu/pkg/pdfcpu/primitives.EnsureTextFieldAP
	external/com_github_pdfcpu_pdfcpu/pkg/pdfcpu/primitives/textField.go:990
github.com/pdfcpu/pdfcpu/pkg/pdfcpu/form.fillTextField
	external/com_github_pdfcpu_pdfcpu/pkg/pdfcpu/form/fill.go:923
github.com/pdfcpu/pdfcpu/pkg/pdfcpu/form.fillTx
	external/com_github_pdfcpu_pdfcpu/pkg/pdfcpu/form/fill.go:961
github.com/pdfcpu/pdfcpu/pkg/pdfcpu/form.fillWidgetAnnots
	external/com_github_pdfcpu_pdfcpu/pkg/pdfcpu/form/fill.go:1024
github.com/pdfcpu/pdfcpu/pkg/pdfcpu/form.FillForm
	external/com_github_pdfcpu_pdfcpu/pkg/pdfcpu/form/fill.go:1064
github.com/pdfcpu/pdfcpu/pkg/api.FillForm
	external/com_github_pdfcpu_pdfcpu/pkg/api/form.go:521

@vedantmamgain
Copy link
Author

@hhrutter Nudge about the above

@hhrutter
Copy link
Collaborator

Please post or send me this file then I can provide a fix.
Thank you

@vedantmamgain
Copy link
Author

@hhrutter I've shared the file

@hhrutter
Copy link
Collaborator

This is fixed with latest commit!

@vedantmamgain
Copy link
Author

@hhrutter The sentinel errors are private.

@hhrutter
Copy link
Collaborator

You are right!
I am going to fix that!

@hhrutter
Copy link
Collaborator

Checkout the latest commit!

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