Method ExportDataObject
Namespace TallComponents.PDF.JavaScript.Scripting
Class Doc
Extracts the specified data object to an external file.
Syntax
protected internal
Void
ExportDataObject(
EmbeddedFile
embeddedFile
,
Boolean
allowAuthorization
,
Int32
launchType
)
Returns
Void
Parameters
EmbeddedFile
embeddedFile
The embedded file to extract.
Boolean
allowAuthorization
If true, a dialog box is used to obtain user authorization. Authorization may be required if the data object was encrypted using the encryptForRecipients method. Authorization dialog boxes are allowed if bAllowAuth is true. The default value is false.
Int32
launchType
controls whether the file is launched, or opened, after it is saved. Launching may involve opening an external application if the file is not a PDF file. The values of nLaunch are:
If the value is 0, the file will not be launched after it is saved.
If the value is 1, the file will be saved and then launched. Launching will prompt the user with a security alert warning if the file is not a PDF file. The user will be prompted for a save path.
If the value is 2, the file will be saved and then launched. Launching will prompt the user with a security alert warning if the file is not a PDF file. A temporary path is used, and the user will not be prompted for a save path. The temporary file that is created will be deleted by Acrobat upon application shutdown.
The default value is 0.