Pdf - Pdf3DAnnotationType
18 Nov 20261 minute to read
Public enum to define the format of 3D artwork data embedded in a PDF 3D annotation.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data);
// Access the first page
let page: PdfPage = document.getPage(0) as PdfPage;
// Create a 3D annotation with U3D data
let annotation3D: Pdf3DAnnotation = new Pdf3DAnnotation(page, {x: 50, y: 350, width: 200, height: 200});
// Set the embedded 3D data format to U3D
annotation3D.annotationType = Pdf3DAnnotationType.U3D;
// Add the annotation to the page
page.annotations.add(annotation3D);
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
PRC- Specifies the type ofprc. -
U3D- Specifies the type ofu3d.