Generating a PDF Document
The following example generates a PDF document for an item and opens the file in the default PDF document viewer.
- In the example, the PDF is generated for the item with ID 1031, however, any valid item ID may be used.
- The output is returned from the server as a byte array, this is then saved to the filesystem before opening. In the example, the file is saved to "c:\temp\sample.pdf", however, any valid path may be used.
Write-Host "Getting PDF data..."
$filename = "c:\temp\sample.pdf"
$binaryData = $xia.GET_PDFOutputBasic(1031)