PDFExport¶
Description¶
Allows you to export any SpaceObServer statistic (lists and charts) to a PDF file.
Syntax¶
SpaceObServer.Application.PDFExport(ExportPath : <String>, ExportFullBranch : <Boolean>, IncludeHeader : <Boolean>, IncludeUnit : <Boolean>, [optional]Statistics : <String>)
Parameters¶
- ExportPath
The full path of the export file (including the exported file name). You can use environment variables as well as “%DATE%” and “%TIME%” in the file path.
- ExportFullBranch
Indicates, if the export will include the full directory branch or only expanded directories.
- IncludeHeader
Indicates, if a header with general information about the root directory/drive will be included.
- IncludeUnit
Indicates, if size units and thousand separator will be included in the export of the scantree, or if sizes are exported as plain numbers. Note: This parameter does not affect the export of any list except the scantree.
- Statistics
(Optional Parameter) A semicolon separated list of charts and lists, which should be included in the PDF export. The table of the Export Statistics lists all accessible types of charts and lists. Note: If this parameter is not set, the directory tree will be exported (default).
Example¶
$SOS.PDFExport("C:\Temp\SOS\export.pdf", $True, $True, $True, "scantree; detailslist; piechart; historychart")
SOS.PDFExport "C:\Temp\SOS\export.pdf", True, True, True, "scantree; detailslist; piechart; historychart"
Produces a report in a PDF file named “export.pdf” in the folder “C:TempSOS" that includes a header, size units and contains all sub directories. The PDF file contains the directory tree, the details list, the pie chart and the history chart of the current root.