You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for posting, and sorry for a rather late response.
This is actually an intended behavior of PdfWrapper. The "box like looks" are I believe part of the widget styles, which as described at the top of this doc, all widgets will be flattened after filling. Now in the case of PdfWrapper flattening widgets means removing them and only leaving the text, which is why there are no more box styles.
If you still want to persist the box styles, I suggest taking a look at the FormWrapper , documented here. Below is a result of me using your snippet except using FormWrapper:
@chinapandaman I saw in the source code that PdfWrapper inherits from FormWrapper. I'd prefer to use the PdfWrapper as it appears there are other features tied to it such as merging pdfs & signing pdfs with images. Without digging too deep, are there ways around flattening the widgets in PdfWrapper?
Version
PyPDFForm==1.4.31
Issue Description
The PDF form field boxes disappear and the styling of the entire pdf changes with the basic out of box documentation.
Code Snippet
PDF Form Template
file.pdf
Above is pdf used to replicate example
Screenshots (if applicable)
Initial pdf looks like
After the code is run, it becomes
The text was updated successfully, but these errors were encountered: