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.
Unfortunately, activation email could not send to your email. Please try again.

XPS to PDF/A

Thread ID:

Created:

Updated:

Platform:

Replies:

110811 Aug 26,2013 10:49 AM Feb 6,2018 01:29 AM Windows Forms 3
loading
Tags: PDF
Marek Skotnica
Asked On August 26, 2013 10:49 AM

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

Thank you, 
Marek 

KarthikeyanC [Syncfusion]
Replied On August 27, 2013 02:45 AM

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


noor unnisa
Replied On February 5, 2018 12:07 AM

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.

Sowmiya Loganathan [Syncfusion]
Replied On February 6, 2018 01:29 AM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;