PDFium does not have built-in support for this. For example, if the
embedder's code added an object, it needs to delete the object to
achieve the undo, or use the recently added FPDFPageObj_SetIsActive()
to mark the object as "inactive" which will make PDFium ignore it.
On Tue, Jan 14, 2025 at 5:56 PM 吴吴 <
a1870...@gmail.com> wrote:
>
> I am considering adding a undo function to the pdfium editing function. However, when I use pdfium editing, I cannot return to the previous page after adding an object, and I do not know how to proceed
>
> --
> You received this message because you are subscribed to the Google Groups "pdfium" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
pdfium+un...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/pdfium/d296a0ac-fba2-4fb4-9779-16838dbfbe66n%40googlegroups.com.