PDF Converter

Convert PDF documents with cross-platform apps or via code on .NET, .NET Core, Java, C++ & Android

.NET APIs for PDF Documents

Targets .NET Framework, .NET Core & COM Interop to develop PDF processing applications for Windows & Web.

Convert Documents to Web

Example:

CGM to HTML C# Code

public static void ConvertCGMtoHTML()
{
// load CGM with an instance of Document
var document = new Document("template.cgm", new CgmLoadOptions());

// save document in HTML format
document.Save("output.html", Aspose.Pdf.SaveFormat.Html);
};

Convert Documents to Web

  1. Convert CGM to HTML via C#
  2. Convert EPS to HTML via C#
  3. Convert EPUB to HTML via C#
  4. Convert MD to HTML via C#

Convert PDF to Image

  1. Render PDF to EMF via C#
  2. Render PDF to SVG via C#
  3. Render PDF to TIFF via C#
  4. Render PDF to EMF via C#

Export TEX Files

  1. Export TEX to BMP via C#
  2. Export TEX to DOC via C#
  3. Export TEX to DOCX via C#
  4. Export TEX to EMF via C#

Java Class Library to Process & Convert PDF Documents

Class library to create, manipulate and convert PDF documents in any application based on Java SE or EE.

Java Code: BMP to PDF

    // Initialize document object
    Document document = new Document();

    Page page = document.getPages().add();
    Image image = new Image();

    // Load sample BMP image file
    image.setFile(Paths.get(_dataDir.toString(), "Sample.bmp").toString());
    page.getParagraphs().add(image);

    // Save output PDF document
    document.save(Paths.get(_dataDir.toString(),"BMPtoPDF.pdf").toString());

Import & Export Documents

  1. Convert BMP to PDF via Java
  2. Convert CGM to EPUB via Java
  3. Convert CGM to PDF via Java
  4. Convert CGM to TEX via Java

Export TEX Files

  1. Export TEX to BMP via Java
  2. Export TEX to DOC via Java
  3. Export TEX to DOCX via Java
  4. Export TEX to EMF via Java

Convert Documents to SVG

  1. Transform CGM to SVG via Java
  2. Transform EPS to SVG via Java
  3. Transform EPUB to SVG via Java
  4. Transform HTML to SVG via Java

C++ Library to Manipulate PDF Files

Native C++ library to create, load, manipulate, and render PDF documents from within pure C++ applications.

C++ Code: BMP to PDF

    std::clog << "BMP to XPS convert: Start" << std::endl;

    // String for path name
    String _dataDir("C:\\Samples\\Conversion\\");

    // String for input file name
    String infilename("sample.bmp");

    // String for input file name
    String outfilename("ImageToPDF-BMP.pdf");

    // Open document
    auto document = MakeObject<Document>();

    // Add empty page in empty document
    auto page = document->get_Pages()->Add();
    auto image = MakeObject<Aspose::Pdf::Image>();
    image->set_File(_dataDir + infilename);

    // Add image on a page
    page->get_Paragraphs()->Add(image);

    auto saveOptions = MakeObject<XpsSaveOptions>();

    // Save PDF file into XPS format
    document->Save(_dataDir + outfilename, saveOptions);

    std::clog << "BMP to XPS convert: Finish" << std::endl;