Skip to main content

ApiDocument

Class representing a document.

Methods​

The following table lists the available methods.

MethodReturnsDescription
AddPageApiPageAdds a new page to document.
ApplyRedactbooleanApplies added redact.
GetAllFieldsApiField[]Gets list of all fields in document.
GetCalculateOrderstring[]Gets document calculate fields order
GetClassType"document"Returns a type of the ApiDocument class.
GetFieldByNameApiField | null | undefinedGets field by it's name.
GetPageApiPageGets page by index from document.
GetPagesCountnumberGets document pages count
GetSelectedTextstringGets selected text in document
GetSelectionDocSelection | null | undefinedGets document selection info
GetSelectionQuadsDocQuadsGets document selection quads by page
GetStyleApiStyle | nullReturns the document style by its name.
MergebooleanMerges pdf files to current document in specified position.
RemovePagebooleanRemoves a page from the document by its index.
SearchAndRedactApiRedactAnnotation[]Searchs words and adds redact to it.
SetCalculateOrderbooleanSets document calculate fields order
SetSelectionbooleanSets document selection
SplitPdfFileSplits current pdf file with specified pages.