ii) Convert All Pages of OXPS to PDF in C#Ĭonverting all pages of OXPS is simple and related to the example we have considered above. It converts the first page of the OXPS file to PDF as mentioned in the code snippet. Set the page number(s) that you want to convertįollowing code snippet shows how to convert OXPS to PDF using C#.Let us proceed to learn the following usage scenarios: i) Convert Some Pages of OXPS to PDF in C#Īn OXPS file may contain many pages and any number of pages can be converted to PDF by following below steps: NET API is capable of converting OXPS files as well. However, such files are not supported by some old operating systems. OXPS format is an updated and advanced form of XPS file format. Create an instance of PdfDevice for renderingīelow code snippet is based on all these steps which shows how to convert XPS file to PDF using C# language: Convert OXPS to PDF using C#.Initialize options object with necessary parameters.Follow the steps below and all pages of the XPS file will be converted to a PDF file: Following screenshot displays 2 pages rendered to PDF document: ii) Convert All Pages of XPS to PDF in C# Whereas, only page numbers 1 and 3 are converted to PDF as specified in the code snippet. This code snippet uses an XPS document containing several pages, as the input file. We will be learning the following approaches to perform XPS file conversion: i) Convert Specific Pages of XPS to PDF in C#įor converting selected pages of XPS document to PDF, please follow the steps below:īelow code snippet follows these steps and shows how to convert XPS to PDF using C#: XPS to PDF conversion is simple with Aspose.Page for.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |