PdfPrintState
12 Sep 20251 minute to read
Public enum to define a print state of layer
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data);
// Access the collection of layers in the document
let layers: PdfLayerCollection = document.layers;
// Retrieve the first layer from the layers collection
let layer: PdfLayer = layers.at(0);
// Retrieve the print state of the layer
let printState: PdfPrintState = layer.printState;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
alwaysPrint- The PDF layers always get print -
neverPrint- The PDF layers never get print -
printWhenVisible- The visible PDF layers get print