Pdf4me.Client - the C# library for the Pdf4me Saas API
The Pdf4me Client API is a .NET library which connects to its highly scalable SaaS cloud service with many functionalities to solve your document and PDF requirements. The SaaS API provides expert functionality to convert, optimize, compress, produce, merge, split, ocr, enrich, archive, rotate, protect, validate, repair, read barcodes, print documents and PDF's.
Feature | Description |
---|---|
Optimize | PDF's can often be optimized by removing structural redundancy. This leads to much smaller PDF's. |
Merge | Multiple PDF's can be merged into single optimized PDFs. |
Split | A PDF can be splitted into multiple PDF's. |
Extract | From a PDF extract multiple pages into a new document. |
OCR | Create a searchable OCR Document out of your scans or images. |
Images | Extract images from your document, can be any type of document. |
Create Pdf/A | Create a archive conform PDF/A including xmp Metadata. |
Convert to PDF | Convert your documents from any format to a proper PDF document. |
Stamp | Stamp your document with text or images. |
Rotate | Rotates pages in your document. |
Protect | Protects or Unlocks your document with given password. |
Validation | Validate your document for PDF/A compliance. |
Repair | Repairs your document. |
Barcode | Reads all types of barcode embedded in document or creates them |
- .NET 4.5.2 or later
- .NET Core 2.0 or later
- Newtonsoft.Json - 12.0.3 or later
The Pdf4me Client Api Library can be downloaded from NuGet:
Install-Package Pdf4me.Client
To get started get a Token by dropping us an email or registering in our portal.
The Token is required for Authentication. The Pdf4me Client Api provides you already with the necessary implementation. You need only to get an instance for the Pdf4meClient as shown in the sample below.
using Pdf4me.Client;
using System;
using System.IO;
using System.Threading.Tasks;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
Pdf4meClient.Instance.Init("sample-not-working-token-aaaaaaa");
var req = new Optimize()
{
Document = new Document()
{
DocData = File.ReadAllBytes(@"c:\test.pdf"),
Name = "test.pdf",
},
OptimizeAction = new OptimizeAction()
{
Profile = OptimizeActionProfile.Max,
UseProfile = true,
}
};
var optimizedDocument = Pdf4meClient.Instance.PdfClient.OptimizeAsync(req).GetAwaiter().GetResult();
}
}
}
The Api Documentation can be found on our developers page https://dev.pdf4me.com.
Those who are looking for PDF4me online tool can find it at PDF4me.com.