We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

Ask about the ability to convert to XPS files

We purchased the recommended GroupDocs Viewer license and are currently developing it. We will also provide you with your customer number if necessary. As a new customer requirement, files of all extensions must be converted to XPS files. I would like to ask if there is a function to convert files of all extensions to XPS files.

@dianysus

Thank you for your interest in GroupDocs.Viewer!

GroupDocs.Viewer supports conversion to HTML/PNG/JPEG/PDF formats. Possibly, you’re looking for GroupDocs.Conversion that supports conversion to XPS. See GroupDocs.Conversion Supported Document Formats for more details.

We are developing using GroupDocs.Conversion. Framework 4.6.1 is not available. Can I get Framework 4.5.2?

Android¿ë Outlook ´Ù¿î·Îµå

@dianysus

I have moved your topic to GroupDocs.Conversion category.

We purchased the recommended GroupDocs Viewer license and are currently developing it. We will also provide you with your customer number if necessary. As a new customer requirement, files of all extensions must be converted to XPS files. I would like to ask if there is a function to convert files of all extensions to XPS files.

The code sample did not have the XPS conversion source to handle the types below.^^
ConvertDocxToXps.Run()
ConvertPptxToXps.Run()
ConvertXlsxToXps.Run()

However, I found the code below among the site’s technical documentation.

// Load the source XPS file
using (var converter = new GroupDocs.Conversion.Converter(sOpenName))
{
var options = converter.GetPossibleConversions()[“xps”].ConvertOptions;

converter. Convert(sSaveName, options);
}

By implementing the code, one XPS file was created successfully, but the following error occurs after creation.

“Could not access a file that is closed.”

We are developing in the form of a WCF web service.

Could you please let me know what caused the failure?

@dianysus

Could you please share some source/sample files that you want to convert to XPS?

Do you want to convert other (all file formats) files to XPS or XPS to other file formats (e.g. Word, PDF)?

I kept getting XPS conversion failures so I switched to converting to PDF files. Characters are garbled when converting HTML files to PDF. When converting html files, is there a way to set the character set to euc-kr?

And, there is one more problem.
When converting a Word file to PDF, the following errors occur.
“connot convert. The file is corrupt or damaged”
Excel and ppt files are normally converted to pdf.

@dianysus

In order to further investigate this scenario, we need the source and output files. Could you please share these files and the sample code or application?