preserve static method

PdfDataType? preserve(
  1. PdfRefToken ref
)

Keeps the (number, generation) pair as it is in the source document.

This is the policy used when reading a loaded document, where the object numbers from the file still hold.

Implementation

static PdfDataType? preserve(PdfRefToken ref) => PdfIndirect(ref.obj, ref.gen);