eBook Converter

The Sheetize eBook Converter for .NET enables seamless conversion of documents to and from popular eBook formats such as EPUB and MOBI. It’s ideal for publishers, digital libraries, and developers integrating eBook functionality into their applications.

Key Features

PDF to EPUB Conversion

Easily convert PDF files to EPUB format, optimizing them for eReaders and other devices that support eBook formats.

EPUB to PDF Conversion

Convert eBook content from EPUB to PDF, making it suitable for printing or offline viewing in a standardized format.


Detailed Guide

Converting PDF to EPUB

To convert a PDF document to an EPUB eBook:

  1. Initialize the Converter: Create an instance of EbookConverter.
  2. Set Conversion Options: Use PdfToEpubOptions to configure settings for EPUB output, such as image handling and metadata.
  3. Define Input and Output Paths: Set paths for the input PDF and output EPUB.
  4. Execute the Conversion: Call the Process method to convert the document.

Example: Convert PDF to EPUB

// Step 1: Initialize the eBook Converter
var converter = new EbookConverter();

// Step 2: Configure options for PDF to EPUB conversion
var options = new PdfToEpubOptions();
options.IncludeImages = true; // Include images in the output EPUB
options.SetMetadata("Title", "Converted eBook");

// Step 3: Set file paths
options.AddInput(new FileDataSource("input.pdf"));
options.AddOutput(new FileDataSource("output.epub"));

// Step 4: Run the conversion
converter.Process(options);

Available Options for PDF to EPUB Conversion

  • IncludeImages: Specify whether to include images from the original PDF in the resulting EPUB.
  • SetMetadata: Add metadata such as title, author, and subject to the EPUB file.

Converting EPUB to PDF

To convert an EPUB file to PDF:

  1. Initialize the Converter: Create an instance of EbookConverter.
  2. Configure PDF Options: Use EpubToPdfOptions to define settings such as page layout and margins.
  3. Specify Paths: Set the input EPUB and output PDF file paths.
  4. Execute the Conversion: Call the Process method to complete the conversion.

Example: Convert EPUB to PDF

// Step 1: Initialize the eBook Converter
var converter = new EbookConverter();

// Step 2: Configure options for EPUB to PDF conversion
var options = new EpubToPdfOptions();
options.PageLayoutOption = PageLayoutOption.Portrait;
options.Margin = new MarginSettings(10, 10, 10, 10);

// Step 3: Set file paths
options.AddInput(new FileDataSource("input.epub"));
options.AddOutput(new FileDataSource("output.pdf"));

// Step 4: Execute the conversion
converter.Process(options);

Additional Options for EPUB to PDF Conversion

  • PageLayoutOption: Set the page layout for the resulting PDF, such as Portrait or Landscape.
  • MarginSettings: Define margins for the output PDF.

This converter is highly useful for both publishers and developers who need to automate eBook-related workflows. Whether creating eBooks from PDF documents or preparing eBook files for print, the Sheetize eBook Converter provides a flexible solution.

 English