PdfRotationAngle
12 Sep 20251 minute to read
Public Enum to define rotation of the interactive elements.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access text box field
let field: PdfTextBoxField = document.form.fieldAt(0) as PdfTextBoxField;
// Gets the rotation of the field
let rotation: PdfRotationAngle = field.rotationAngle;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
angle0- Specifies the type ofangle0. -
angle180- Specifies the type ofangle180. -
angle270- Specifies the type ofangle270. -
angle90- Specifies the type ofangle90.