Skip to content

Latest commit

 

History

History

Microsoft .NET Core

.NET Core Sample Code

Details about using the Muhimbi PDF Converter Services from .NET CORE can be found below. Further information, including the object model, can be found in the Developer Guide and in the Muhimbi Knowledge Base.

Any questions? Drop us a line, we love to help.


Table of Contents


Prerequisites

These samples have been tested with .NET Core 2.2, and are expected to work on other .NET Core versions as well. Exact deployment and configuration steps for the various platforms vary slightly.

❗ Please make sure that a copy of the Muhimbi PDF Converter Services (Download) is installed on at least one Windows Server in your environment. (Don't worry, it can be invoked from non-Windows platforms including Linux). :exclamation:


Linux

Please visit Microsoft's site for .NET Core for the latest SDK. Pick your distribution from the dropdown and follow the instructions.


Windows

For Windows developers visit Microsoft's site for .NET Core and download the installation package for the latest .NET Core SDK.


Sample Code

Sample code, and related files, for the various facilities provided by this service can be found below. It is recommended to copy all samples to your local system using one of the following options:

  • Git: Use the following command to clone the entire repository to your system. This will download all files associated with this repository, and is most likely overkill, but it is the only easy way to download files using Git. Once downloaded, you can find the examples under the Microsoft .Net folder.

    git clone https://github.com/Muhimbi/PDF-Converter-Services/

  • SVN: A common trick to download only part of a Git repository is to use svn. Download only the C# sample code using the following command.

    svn export https://github.com/Muhimbi/PDF-Converter-Services/trunk/Microsoft%20.NET%20Core

  • ZIP: Download a ZIP archive of the entire repository. Once downloaded, you can find the examples under the Microsoft .Net Core folder.


A full overview of the examples can be found below.

Sample Description
Convert PDF to PDF-A Convert a PDF document to PDF/A.
MS Office Watermarking Add watermarks to an MS Office document (.docx, .xlsx or .pptx)
OCR PDF Use Optical Character Recognition to convert a fax, scan or other image into a text PDF.
Split PDF Split a large PDF into smaller PDFs.
Watermarking Add watermarks to a PDF file.
Extract PDF Forms Data Extract AcroForms data from PDF document.
Import PDF Forms Data Import PDF Forms Data into PDF document.

Any questions? Drop our friendly support desk a line, we love to help.