-
After successfully replacing images, the (old) references to XMP metadata object as well as the metadata objects still remain in the PDF file. How can I delete these objects? Reference:
XMP Object:
|
Beta Was this translation helpful? Give feedback.
Answered by
pubpub-zz
Jul 1, 2023
Replies: 1 comment 6 replies
-
the easiest solution is just to delete the field entry: if obj is the object or an indirect object pointing the the object : obj = obj.get_object()
del obj["/Metadata"] |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
writer._replace_object(obj.indirect_reference,NullObject())
will remove the sensitive information