The basic method allows the current version of the specified item to be written to a PDF using the default options.



Code Sample


# Generate the PDF as a byte array.

$data = $xia.GET_PdfOutputBasic(1234);


# Write the PDF to a file.

Write-Host "Saving PDF file...";

$filename = "$env:temp\sample.pdf";

[IO.File]::WriteAllBytes($filename, $data);


# Display the file.

[System.Diagnostics.Process]::Start($filename);