Accusoft.PdfXpress5.Net
Save PDF to File
See Also Send Feedback
PDF Xpress 5 for .NET - User Guide > How To > Save PDF to File

Glossary Item Box

PDF Xpress™ supports saving a PDF document to a file on the local file system.

To save an open PDF document:

  1. Create a new SaveOptions object.
  2. Configure the SaveOptions object.
  3. 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( );
}

See Also

©2012. Accusoft Corporation. All Rights Reserved.