I am looking for a library (open source or paid) that can convert Microsoft Office documents (.docx, .xlsx etc.) and images to PDF. This library must be accessible from .NET.

I had a look at ABCpdf but it requires a Microsoft Office installation on the server which I don't want. My documents are stored in a database so I want something that can work with byte arrays.

Can anybody recommend a library?

  • Do you require it to be a .NET library or would cmdline work? – Nick Dickinson-Wilde Aug 8 '14 at 2:22
  • Need a .net library. Using in a web-service. – bugfixer Aug 8 '14 at 13:33

The LEADTOOLS Documents SDK has the ability to convert all of the Microsoft Office formats and output as PDF in .NET.

Here is a list of all of the support formats that the SDK can convert from and to:

  • Adobe Acrobat PDF and PDF/A Microsoft Office DOC/DOCX, XLS/XLSX, PPT/PPTX, PST, EML, MSG, and XPS formats

  • CAD formats such as DXF, DWG, and DWF

  • Plain Text, RTF, HTML, MOBI, ePUB


On top of all of these formats, you can also enable OCR and convert images to a document-based searchable PDF.

Disclaimer: I am an employee of this library

| improve this answer | |
  • If I understood, these features - even OCR - are all available in both products : Document Imaging, Recognition, Document Imaging Suite, Medical Imaging, PACS Imaging, Medical Imaging Suite. Right ? – Amessihel Jan 24 '17 at 14:34
  • 1
    These features including OCR are included as part of Recognition Imaging and Document Imaging Suite and is available as an Addon for the other products you mentioned. – hcham1 Jan 24 '17 at 15:23

I have used the components provided by Sub Systems to perform RTF to PDF conversion, but they also provide components for performing DOCX to PDF conversion. I haven't used them, but I like their RTF to PDF stuff.

They're paid for components, but the times I've had to use their support they've been pretty good compared to other third party components providers I've worked with in the past.

| improve this answer | |

You can check out our libraries:

They do not require Office installation and they can work with file's stream (or byte array) check here and here.

| improve this answer | |
  • Just a warning : the net version of gembox does not print to pdf currently. – Guillaume Feb 15 '19 at 7:06
  • And will not in 2019 : support.gemboxsoftware.com/feedback/view/… – Guillaume Feb 15 '19 at 7:14
  • There are 2 DLL versions of both components; one is for .NET Framework which does support printing and saving to PDF, other is for .NET Standard which currently does not support this, but we plan to work on it. – GemBox Dev Team Apr 4 '19 at 8:49

Aspose offers many different individual components:

  1. Aspose.Cells:
    • Specializing in: XLS, XLSX, XLSM, SpreadsheetML, CSV, Tab Delimited, ODS, HTML, PDf documents
      • Load workbook
      • Advanced manipulation with SmartMarkers
      • Pivot table support
      • Convert workbooks from SharePoint document library
      • Save workbook
      • Export JasperReports to workbook
      • Workbook to PDF conversion
      • Manage worksheet
      • Worksheet to image conversion
      • Workbook security
      • Chart support
      • Export RDL reports to workbook
  2. Aspose.Words

    • Specializing in: DOC, DOCX, RTF, FlatOpc, WordML, XML, ODT, TXT, HTML files.
    • Word processing documents to ODT, HTML, EPUB, TXT conversion

      • ODT, HTML, TXT to Microsoft Word and other word processing documents conversion
      • Word processing documents, HTML, MHTML, TXT and Open Document support
      • Assemble documents
      • Update fields
      • Insert content and formatting
      • Word processing documents to PDF, XPS, PS, SWF, XAML or SVG conversion
      • Print documents
      • Render pages to TIFF or other image formats such as PNG, BMP, EMF or JPEG
      • Mail merge/reporting
      • Populate from a database
      • Nested mail merge regions

They also have many more components for things such slideshows/PowerPoint, PDFs, barcodes, OneNote, imaging, OCR, diagrams/Visio, Tasks/Project, email and a few others.

| improve this answer | |
  • Is Aspose.PDF able to convert Microsoft Office Documents to PDF without other Aspose components like Aspose.Word or Aspose.Excel ? – Amessihel Feb 2 '17 at 9:55

Docmosis provides a web service API (REST) for document production based around word-processor style documents, using templates and merging data. It can convert various formats including doc/docx/xls to pdf. Please note I work for Docmosis.

| improve this answer | |

We use Spire.Doc and this supports MailMerge and generating a PDF as a stream or File from the document. We've used this in situations where we're pulling binary data from a database, manipulating/loading via streams and then streaming out the PDF.

I'd recommend checking out this library.

| improve this answer | |


You can try our doc/docx to PDF Converter at http://converter-eval.plutext.com/

Its for Word documents only I'm afraid, not pptx, xlsx etc.

Its an on-premises server/service you can use in your application to programmatically convert or export Microsoft Word doc/docx files to PDF.


  • aims to mimic Word's layout (high fidelity)
  • produces PDF/A-2b compliant output
  • is simple to install (especially compared to SharePoint, LibreOffice etc); should go without saying, but no need for Word to be installed.
  • is fast (and multithreaded)
  • is frugal with resources
  • is secure (strict separation of conversion jobs)
  • runs as an operating system service (on Windows or Linux).

.NET client code is at http://converter-eval.plutext.com/client_dotnet.html

| improve this answer | |
  • What exactly is your affiliation with this product? Please disclose. – RockPaperLz- Mask it or Casket Jan 21 '17 at 10:52
  • As both the user name and the first line of the answer discloses, its my product :-) – JasonPlutext Jan 21 '17 at 19:31

Essential PDF can convert Word, PowerPoint and Excel documents to PDF and it doesn't require Microsoft Office. It is written in C# and available as a library for use from any .NET platform.

The community license provides the whole suite of products for free. -Davis (Syncfusion)

| improve this answer | |
  • How can we purchase Essential PDF ? Is it included in some products or it is available as is ? This page also seems to say that Essential PDF can manage PowertPoint files. True ? If so, ppt AND pptx ? – Amessihel Jan 25 '17 at 11:08
  • @Amessihel: Essential PDF is included in several product bundles including the File Formats package syncfusion.com/sales/products/fileformats. The File Formats package also includes Essential Presentation that can manipulate PPTX files. The current list price for a developer license of Essential Studio File Formats Edition is USD$995. There is a 30 day trial also available from the product page itself. – Davis Jebaraj Jan 25 '17 at 13:10
  • thanks. Do you plan to add ppt format ? – Amessihel Jan 26 '17 at 9:07
  • @Amessihel I will check and confirm – Davis Jebaraj Jan 26 '17 at 15:09
  • Syncfusion provides a PowerPoint library as well syncfusion.com/powerpoint-framework/net – Davis Jebaraj May 18 '19 at 20:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.