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 of angle0
.angle180
- Specifies the type of angle180
.angle270
- Specifies the type of angle270
.angle90
- Specifies the type of angle90
.