Example
Apply a rotation operation to the document after load.
instance.applyOperations([{
type: 'rotatePages',
pageIndexes: [0],
rotateBy: 90
}])
Export the document with the operations applied.
instance.exportPDFWithOperations([{
type: 'rotatePages',
pageIndexes: [0],
rotateBy: 90
}])
See Also
Interfaces
AddPageAfterOperationAddPageBeforeOperationAddPageMarginsOperationApplyInstantJsonOperationApplyRedactionsOperationApplyXfdfOperationContentEditorSaveOperationCropPagesOperationDuplicatePagesOperationFlattenAnnotationsOperationImportDocumentAfterOperationImportDocumentBeforeOperationKeepPagesOperationMovePagesAfterOperationMovePagesBeforeOperationPerformOcrOperationRemovePagesOperationRotatePagesOperationSetPageLabelOperationUpdateMetadataOperation
The DocumentOperation namespace contains all the operations that can be applied to a document.