PDF Xpress™ supports saving a PDF document to a file on the local file system.
To save an open PDF document:
- Create a new SaveOptions object.
- Configure the SaveOptions object.
- Invoke the Document.Save method to write the PDF file.
PDF Xpress does not directly support remote file communication protocols, such as HTTP and FTP, to load PDF files. |
PDF Xpress saves all documents in PDF version 1.6 if changes have been made to the document; if changes have not been made, then the version is unchanged. |
C# Example | Copy Code |
---|---|
// This code demonstrates saving a PDF file from a PDF Xpress control PdfXpress pdfXpress = null; Document document =null; SaveOptions saveOptions = null; try { saveOptions = new SaveOptions(); saveOptions.Filename = "C:\\ test_new.pdf"; document.Save(saveOptions); } catch (Exception ex) { } finally { if ( null != document ) document.Dispose( ); if ( null != pdfXpress1 ) pdfXpress.Dispose( ); } |