Skip to content

PDF Output seems to be only an image in a pdf? #3930

Closed Answered by JorjMcKie
Rapid1898-code asked this question in Looking for help
Discussion options

You must be logged in to vote

Ok, I finally understand your intention completely I think:

  1. Take a template Form PDF and give its fields values taken from ... wherever (an Excel file in your case).
  2. Save the thus modified PDF in a way where the fields are visible and their text be selectable like standard text, but protected against more changes.

If correctly stated, do this:

doc = pymupdf.open("templ.pdf")

# modify fields in this document as before
# ...

# now convert the Form PDF into a standard PDF
# by "baking-in" fields (and/or annotations)

doc.bake(annots=True, widgets=True)
doc.ez_save("11_11TH_CO_.pdf")

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Answer selected by JorjMcKie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants