Replies: 3 comments 4 replies
-
Text does not have that! |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is a detailed example in the utilities repo for removing an image. |
Beta Was this translation helpful? Give feedback.
4 replies
-
... and of course all that is no bug ... not even an issue, therefore I moved this to Discussions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
are there any method to del the text and pic in pdf?
some examples are needed
in my pdfs there are may same pics and same text words . i want to del them。
but i had not found a def to del text or pic.
help needed.
THANKS!!
`
#coding:utf-8
import fitz,os
rooturl='C:\pdf\'
url='C:\pdf\test.pdf'
doc = fitz.open(url)
imgcount=0
for page in doc:
doc.save('111.pdf')
`
doc._deleteObject(xref)
pic maybe ok
how to find de text's xref?
Beta Was this translation helpful? Give feedback.
All reactions