pdfrx_web
    Preparing search index...

    Interface PdfRawObjectEditOptions

    Options controlling how PdfDocument.editRawObjects commits its batch.

    interface PdfRawObjectEditOptions {
        atomic?: boolean;
    }
    Index
    atomic?: boolean

    Whether to provide complete all-or-nothing behavior by applying the batch to an independent PDF copy and adopting it only after every operation succeeds.

    Default: false. Without this option, an exception thrown while the edit callback is building the batch is still safe—the worker is never called and no operation runs. Once the completed batch reaches PDFium, however, a later failing operation can leave earlier operations applied.

    Set this to true when failure must also roll back errors encountered while PDFium applies the batch. This copies and reloads the complete document, so its time and peak-memory cost grow with the PDF size.