-
Notifications
You must be signed in to change notification settings - Fork 22
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
PPF-726: Controlling Form Widget Layer #726
Comments
Hey, thanks for posting. Unfortunately there's currently no such layer control functionality supported by the library. In your case I have two suggestions:
Let me know if you have more questions. |
I just updated to the latest release of PyPDFForm and ran it again. The filled widgets are behaving the same as the unfilled ones and still occlude the background images. I am using PdfWrapper to create the widgets. I tried filling a widget populated PDF both before and after the update, and the behaviour was the same. I'm not currently using the FormWrapper method, but if the result when using it the way you suggest should be behave the same as using the PdfWrapper approach, then it might not be worth trying the conversion. The inclusion of an alpha channel for the background does sound promising though. Would it be possible to include that in the PdfWrapper style as well? |
Hey sorry for a rather late response. I have been quite busy recently. So I'm not sure if I understand your issue now. I downloaded your form created using the library and tried this snippet: from PyPDFForm import PdfWrapper
pdf = PdfWrapper("THB - 90-Day Reflection Journal - Current_form.pdf")
pdf = pdf.fill(
{
"today_5": "foo",
"feeling_5": "foo",
"grateful1_5": "foo",
"grateful2_5": "foo",
"grateful3_5": "foo",
"reflections_5": "foo",
"wishes_5": "foo"
},
)
with open("output.pdf", "wb+") as f:
f.write(pdf.read()) |
PyPDFForm=1.4.33
Controlling Form Widget Layer
Is there a way to control the layer an added widget occupies?
I want preexisting overlapping graphics to appear on top, but the widgets are on top instead.
PDForm.py
Input / Output PDFs
Input PDF: https://drive.google.com/file/d/1co3VmLRQVCYjxwuzwdwiL7FerlgkFqIg/view?usp=sharing
Output PDF: https://drive.google.com/file/d/1yLG3C3_GCc0K9gMWjE9GnJYQ4_8UY1vA/view?usp=sharing
Screenshots
Input:
Output:
The text was updated successfully, but these errors were encountered: