Пример #1
0
        public static void Run()
        {
            // ExStart:PDFToXPS
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();

            // Load PDF document
            Document pdfDocument = new Document(dataDir + "input.pdf");

            // Instantiate XPS Save options
            Aspose.Pdf.XpsSaveOptions saveOptions = new Aspose.Pdf.XpsSaveOptions();

            // Save the XPS document
            pdfDocument.Save("PDFToXPS_out_.xps", saveOptions);
            // ExEnd:PDFToXPS
        }
Пример #2
0
        public static void Run()
        {
            // ExStart:PDFToXPS
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();

            // Load PDF document
            Document pdfDocument = new Document(dataDir + "input.pdf");

            // Instantiate XPS Save options
            Aspose.Pdf.XpsSaveOptions saveOptions = new Aspose.Pdf.XpsSaveOptions();
            
            // Save the XPS document
            pdfDocument.Save("PDFToXPS_out.xps", saveOptions);       
            // ExEnd:PDFToXPS
        }