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 }
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 }