PDF Converter

Convert PDF documents with cross-platform apps or via code on .NET, C++, Java and Python

.NET APIs to PDF Conversion Documents

One of the most popular and necessary tasks in working with PDF documents is saving them in one format or another, that is, converting. Document conversion is converting file types from one format to another as needed. You can convert a large number of documents at once.

Convert Documents with Aspose.PDF .NET

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 with Aspose.PDF .NET

  1. Convert PDF to HTML via C#
  2. Convert EPS to HTML via C#
  3. Convert EPUB to HTML via C#
  4. Convert SVG 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 PDF 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 XML to EPUB via Java
  3. Convert CGM to PDF via Java
  4. Convert MD 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 PDF to SVG via Java
  4. Transform HTML to SVG via Java

C++ Library to Convert PDF Files

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

C++ Code: BMP to XPS

    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;

Import & Export Documents

  1. Convert XML to HTML via C++
  2. Convert XPS to HTML via C++
  3. Convert XSLFO to PDF via C++
  4. Convert MHT to HTML via C++

Convert from PDF or to PDF

  1. Convert PDF to SVG via C++
  2. Convert EPUB to PDF via C++
  3. Convert PDF to EXCEL via C++
  4. Convert PS to PDF via C++

Export PDF to Images

  1. Export PDF to BMP via C++
  2. Export PDF to JPEG via C++
  3. Export PDF to PNG via C++
  4. Export PDF to SVG via C++