|
Onetastic Macro Documentation >
>
>
ExportObject ExportObject
Exports the given object to the given file path.
Syntax
void ExportObject(
Page|Section object,
String format,
File|String target)
Parameters
- Page|Section object
- The object to export.
- String format
- The format to export the object in. Acceptable values are:
"pdf", "one".
- File|String target
- The file or the path to export the object to.
Examples
Copied!
$file = FileSystem_ShowSaveFileDialog("page.pdf")
ExportObject(GetCurrentPage(), "pdf", $file)
ExportObject(GetCurrentSection(), "one", "C:\\Documents\\MySection.one")
|