OptionalcustomRequest headers for URL sources
OptionaldocumentBusiness id of the document (Document.getDocumentId(), the argument of setDocumentXFDFRetriever)
OptionalextensionAn explicitly passed non-pdf type is rejected before reading; the format is decided by the file header
OptionalfilenameTakes precedence over the file name inferred from the source
OptionallShorthand for licenseKey
OptionallicenseLicense; the first load with a license triggers initialization, later ones reuse it
OptionalonOn load failure, called back first, then rejects
Optionalon0–1, (download progress + Worker load progress) / 2, never decreasing; reports 1 exactly once at the end on success
OptionalpasswordA wrong string reports PASSWORD_REQUIRED; the function form can ask repeatedly
OptionalsignalAborts the load when signaled.
OptionalwithSend cookies for cross-origin URL sources
Options for loadDocument.