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

How to fill fields in a PDF with forms? #45

Open
niloblack opened this issue Sep 20, 2024 · 3 comments
Open

How to fill fields in a PDF with forms? #45

niloblack opened this issue Sep 20, 2024 · 3 comments

Comments

@niloblack
Copy link

niloblack commented Sep 20, 2024

I'm trying to use "FPDFAnnot_SetStringValue" but without success :'(.

Can anyone help me?

The output file is generated, but with the form fields blank.

image

@ahausladen
Copy link
Owner

A FPDFPage_GenerateContent(Page); may help before calling FPDF_ClosePage.

// Before you save the page to a file, or reload the page, you must call
// |FPDFPage_GenerateContent| or any changes to |page| will be lost.
FPDFPage_GenerateContent: function(page: FPDF_PAGE): FPDF_BOOL

@niloblack
Copy link
Author

Thanks for the quick response, I'll try it now!

@niloblack
Copy link
Author

Unsuccessful 🙁.

I'll leave my code to make it easier:

TestPDFium.zip

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

No branches or pull requests

2 participants