Accusoft.PdfXpress7.Net
Save PDF to File

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.
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)
            {
            }
            finally
            {
                if (null != document)
                {
                    document.Dispose();
                }
                if (null != pdfXpress)
                {
                    pdfXpress.Dispose();
                }
            }
See Also

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback