Generate PDF Basic
The basic method allows the current version of the specified item to be written to a PDF using the default options.
- Connect to the configuration web service.
- Specify the identifier of the item.
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);