Replies: 4 comments 3 replies
-
This is a "Discussions" item. |
Beta Was this translation helpful? Give feedback.
-
` print(xps.get_sigflags()) The seal is missing, and some of the original document's text is also missing |
Beta Was this translation helpful? Give feedback.
-
xps.get_sigflags() value is 3 |
Beta Was this translation helpful? Give feedback.
-
So what is left as an alternative, is making a pixmap of the original page and insert that image. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
`
import fitz
import pprint as pp
Ndoc = fitz.open()
Npage = Ndoc.new_page()
doc = fitz.open("2.pdf")
for page in doc:
widgets = page.widgets()
for widget in widgets:
if widget.field_name == 'S1':
widget.rect = fitz.Rect(50, 450, 150, 700)
widget.update()
Npage.show_pdf_page(page.rect,doc,0)
Npage.show_pdf_page(fitz.Rect(0,page.rect[3],page.rect[2],page.rect[3]*2),doc,0)
Npage.add_widget(widget)
Ndoc.save("w.pdf")
`
The signature at the red arrow is missing. How can I copy it
Beta Was this translation helpful? Give feedback.
All reactions