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.
Syncfusion Feedback

XPS to PDF/A

Thread ID:

Created:

Updated:

Platform:

Replies:

110811 Aug 26,2013 02:49 PM UTC Feb 6,2018 06:29 AM UTC Windows Forms 3
loading
Tags: PDF
Marek Skotnica
Asked On August 26, 2013 02:49 PM UTC

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

Thank you, 
Marek 

KarthikeyanC [Syncfusion]
Replied On 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


noor unnisa
Replied On 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.

Sowmiya Loganathan [Syncfusion]
Replied On 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 


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.

Warning Icon 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.Close Icon

;