Pdf4me

The Pdf4me Client API is a maven 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, print documents and PDFs.

License

License

Categories

Categories

PDF Data
GroupId

GroupId

com.pdf4me
ArtifactId

ArtifactId

pdf4me
Last Version

Last Version

0.9.1
Release Date

Release Date

Type

Type

jar
Description

Description

Pdf4me
The Pdf4me Client API is a maven 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, print documents and PDFs.
Source Code Management

Source Code Management

https://github.com/pdf4me/pdf4me-clientapi-java

Download pdf4me

How to add to project

<!-- https://jarcasting.com/artifacts/com.pdf4me/pdf4me/ -->
<dependency>
    <groupId>com.pdf4me</groupId>
    <artifactId>pdf4me</artifactId>
    <version>0.9.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.pdf4me/pdf4me/
implementation 'com.pdf4me:pdf4me:0.9.1'
// https://jarcasting.com/artifacts/com.pdf4me/pdf4me/
implementation ("com.pdf4me:pdf4me:0.9.1")
'com.pdf4me:pdf4me:jar:0.9.1'
<dependency org="com.pdf4me" name="pdf4me" rev="0.9.1">
  <artifact name="pdf4me" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.pdf4me', module='pdf4me', version='0.9.1')
)
libraryDependencies += "com.pdf4me" % "pdf4me" % "0.9.1"
[com.pdf4me/pdf4me "0.9.1"]

Dependencies

compile (10)

Group / Artifact Type Version
org.json : json jar 20180130
org.apache.httpcomponents : httpmime jar 4.5.5
org.mongodb : bson jar 3.6.3
com.microsoft.aad : adal4j jar 0.0.2
org.slf4j : slf4j-jdk14 jar 1.7.25
de.undercouch : bson4jackson jar 2.9.0
commons-io : commons-io jar 2.6
io.swagger : swagger-annotations jar 1.5.15
com.google.code.gson : gson jar 2.8.1
org.threeten : threetenbp jar 1.3.5

Project Modules

There are no modules declared in this project.

Pdf4me.Client - the java library for the Pdf4me Saas API

Maven Central license Maintenance Build

The Pdf4me Client API is a maven 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, 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.
Convert to PDF Convert your documents from any format to a proper PDF document.
Extract From a PDF extract multiple pages into a new document.
Images Extract images from your document, can be any type of document.
Create Pdf/A Create a archive conform PDF/A including xmp Metadata.
Stamp Stamp your document with text or images.

How to add our plugin to your project

Use your favourite build tools to build your project. The depenency information for the various building tools can be found here.

Getting Started

To get started get a Token by dropping us an email or registering in our portal.

The Token is required for Basic 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.

// Either you store them in the config.properties file with keys clientId and secret
// Do not use any quotes:
// Correct: clientId=sample-not-working-key-aaaaaaa
// Incorrect: clientId="sample-not-working-key-aaaaaaa"
Pdf4meClient pdf4meClient = new Pdf4meClient();

// or you pass them as arguments when constructing the Pdf4meClient object
Pdf4meClient pdf4meClient = new Pdf4meClient(clientId, secret);

// The pdf4meClient object delivers the necessary authentication when instantiating the different pdf4meClients such as for instance Merge
MergeClient mergeClient = new MergeClient(pdf4meClient);
byte[] file1 = Files.readAllBytes(Paths.get("myFirstPdf.pdf"));
byte[] file2 = Files.readAllBytes(Paths.get("mySecondPdf.pdf"));
byte[] mergedPdf = mergeClient.merge2Pdfs(file1, file2);

Documentation

Please visit our documentation for more information about all the functionalities provided and on how to use pdf4me.

Recommendation

It's recommended to create an instance of Pdf4meClient per thread in a multithreaded environment to avoid any potential issues.

Contribution

Contributions are very welcome. Please have a look at the instructions below for a smooth project setup.

  1. Fork pdf4me
  2. Clone your copy of pdf4me
  3. Start your IDE, e.g., Eclipse
  4. Import the two projects: In Eclipse: click on File in the menu -> Import... -> Choose the Maven folder -> Existing Maven Projects
  • import Pdf4meJavaClientApi
  • import Pdf4meJavaClientApiTest
  1. You are ready to go

Running the Test Cases

In order for the test cases to run, a config.properties file containing the clientId and secret must be stored in the Pdf4meJavaClientApiTest folder. Please drop us an email ([email protected]), so we can provide you the developer (clientId, secret) pair for testing the code of your pull request. The test cases are found in Pdf4meJavaClientApiTest/src/test/java/jUnit.

PDF4me Consumer

Those who are looking for PDF4me online tool can find it at PDF4me.com

com.pdf4me

pdf4me

Versions

Version
0.9.1
0.9.0
0.8.2
0.8.1
0.8.0