We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

XPS to PDF/A

Hello, 
Is it possible to convert XPS file to PDF/A? 

Thank you, 
Marek 

4 Replies

KC Karthikeyan Chandrasekar Syncfusion Team August 27, 2013 06:45 AM UTC

Hi Marek,

Thank you for your interest in Syncfusion Products.

 

We can able to convert XPS to PDF/A document.

Please use the below code snippet:

            XPSToPdfConverter converter = new XPSToPdfConverter();

            PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1B);

            document= converter.Convert("Input.xps");

            document.Save("Sample.pdf");

            document.Close(true);

 

Please let us know if you have any concern.

 

Thanks,

Karthikeyan.C



NU noor unnisa February 5, 2018 05:07 AM UTC

getting an error while converting the .oxps file to pdf using the same above code . The error is as follows:

was not expected.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: was not expected.


SL Sowmiya Loganathan Syncfusion Team February 6, 2018 06:29 AM UTC

Hi Marek, 

We have created the simple sample for converting XPS(.oxps) document to PDF. Please find the sample from below: 

We have analyzed the mentioned issue and suspect that this to be a document specific issue. Kindly share the input document(.oxps file) it will helpful for further analysis and provide the better solution on this.  

Please let us know if you need further assistance on this. 

Regards, 
Sowmiya L 



WI will November 17, 2022 08:32 AM UTC

Follow these easy steps to convert your XPS files to PDF:

In the XPS view application, click File and select Print from the drop-down menu.

Select Microsoft Print to PDF in the dialog box.

Click Print.

Select the desired location for your new PDF.


Regards,

W


Loader.
Live Chat Icon For mobile
Up arrow icon