-
I have a pdf from external source. Sometimes it has background color, sometimes it does not. I want it to be without the background color. I am trying to do this manually for ages, today I found pymupdf and I am wondering if such a thing is possible with it. I am not sure how it should be done with pymu, but manually I was trying to find the object that represented the background, delete the object and update xref table. Are such things possible with pymu? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 21 replies
-
Yes, this is possible.
As you mentioned xref, your cases seem to belong to the first point above, though. |
Beta Was this translation helpful? Give feedback.
-
You can make such an unremovable background yourself, e.g. |
Beta Was this translation helpful? Give feedback.
-
If xref is the xref number of a |
Beta Was this translation helpful? Give feedback.
-
Why don't let me have that PDF so I can take a look a it ... |
Beta Was this translation helpful? Give feedback.
Yes, this is possible.
As always with PDF, there are amazingly many ways to achieve the type of thing you describe (incomplete list):