![]() ![]() First, talk about the differences between EPUB and PDFīoth EPUB and PDF are of the most common eBook formats, and nearly all of the mainstream stores sell books in these 2 formats. Or, you can just skip to Convert EPUB to PDF directly. If you want to know the differences between ePub and PDF, and why we should convert ePub to PDF, read them below. You will find useful information that will help you convert EPUB to PDF successfully, including converting EPUB to PDF online, on Mac, on Linux, with freeware, etc. The ConvertEPUB( Stream, PdfSaveOptions, ICreateStreamProvider) method takes the conversion source, options, instance of MemoryStreamProvider, which will be used to get an output stream, and performs the conversion operation.This guide will teach you to convert EPUB to PDF easily in details - from why we need to do this EPUB to PDF conversion to how you can reach this goal in different methods. Set up the page-size and change the background color to AliceBlue Combine ( OutputDir, "input-options.pdf" ) // Create an instance of PdfSaveOptions. OpenRead ( DataDir + "input.epub" ) // Prepare a path to save the converted file Open an existing EPUB file for reading If it is not set, then no encryption will be performed. This property gets or sets encryption details. Sets vertical resolution for output images in pixels per inch. Sets horizontal resolution for output images in pixels per inch. This property gets a page setup object and uses it for configuration output page-set. ![]() By default, this property is Transparent. This property sets the color that will fill the background of every page. This property contains information about the output PDF document. Gets a CssOptions object which is used for configuration of CSS properties processing. Specifies the quality of JPEG compression for images. PdfSaveOptions usage enables you to tune the rendering process you can specify the page size, margins, file permissions, CSS media-type, etc. With Aspose.HTML, you can convert EPUB to PDF format programmatically with full control over a wide range of conversion parameters. You can download the complete examples and data files from GitHub. ![]() The following C# code snippet shows how to convert EPUB to PDF using Aspose.HTML for. You need to pass the EPUB file stream, PdfSaveOptions, and output file path to the ConvertEPUB() method to convert EPUB to PDF. Use the ConvertEPUB() method of the Converter class to save EPUB as a PDF file.In the example, we use the OpenRead() method of System.IO.FileStream class to open and read an EPUB file from the file system at the specified path. To convert EPUB to PDF, you should follow a few steps: Using Converter.ConvertEPUB methods is the most common way to convert EPUB files into various formats. Combine ( OutputDir, "convert-by-two-lines.pdf" )) Convert EPUB to PDF ConvertEPUB ( stream, new PdfSaveOptions (), Path. OpenRead ( DataDir + "input.epub" ) // Invoke the ConvertEPUB method to convert EPUB to PDFĬonverter. You will immediately receive the result as a separate file. In the example, the save options are set by default. Please load an EPUB file from the local file system, select the output format and run the example. You can check the Aspose.HTML API functionality and convert EPUB in real-time. In this article, you find information about converting EPUB to PDF and using PdfSaveOptions and ICreateStreamProvider parameters. They are optimized for printing, and they are ideal for creating physical copies of your documents you can also configure the security settings for PDF. PDF files can be opened in Adobe Acrobat Reader/Writer and most modern browsers like Chrome, Safari, Firefox. PDF file format has full capability to contain information like text, images, hyperlinks, form-fields, rich media, metadata, etc. EPUB to PDF conversion is often required to take advantage of PDF format. It is created by International Digital Publishing Forum ( IDPF), and now it is supported by many e-readers and software applications. Convert EPUB to PDF using PdfSaveOptionsĮPUB is an e-book file format that provides a standard digital publication format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |