Skip to content

Latest commit

 

History

History

Import PDF Forms Data

Import PDF Forms data using C# .NET Core

The C# .NET Core sample provided in this section uses the Muhimbi PDF Converter Services to import PDF Forms Data into a PDF template.

For background details about importing PDF Forms Data using C#, see this Blog post.

Additional sample code to convert, merge, watermark, secure and OCR files can be found here.

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


Prerequisites

For an overview of the prerequisites, including software to install as well as how to download this sample code, see the overview page for all .NET Core sample code.


Compiling and Running the Sample Code

If the Muhimbi PDF Converter Services is installed on the same machine that is running this sample code, it can be executed straight away by running the run.sh (for Linux) or the run.bat script file.

❗Don't forget to make the various .sh files executable using chmod +x *.sh


If the Conversion Service is installed on a remote machine then

  1. Modify the Program.cs source file so the SERVICE_URL constant points to the Muhimbi PDF Converter Services
  2. Execute the run.sh (for Linux) or the run.bat (for Windows) script

If you ever wish to regenerate the web service proxy classes, e.g. to change the namespace then:

  1. Edit the GenerateWSProxies.sh (for Linux) or the GenerateWSProxies.bat (for Windows) script and change localhost to the name or ip-address of the server running the Muhimbi Conversion Service.
  2. Execute the GenerateWSProxies.sh (for Linux) or the GenerateWSProxies.bat (for Windows) script to generate proxy classes for the web service.

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