Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 755F3200B94 for ; Sun, 2 Oct 2016 16:17:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 73F7E160AD8; Sun, 2 Oct 2016 14:17:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B7483160AC7 for ; Sun, 2 Oct 2016 16:17:10 +0200 (CEST) Received: (qmail 75743 invoked by uid 500); 2 Oct 2016 14:17:09 -0000 Mailing-List: contact commits-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list commits@pdfbox.apache.org Received: (qmail 75733 invoked by uid 99); 2 Oct 2016 14:17:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2016 14:17:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5C98FDFF56; Sun, 2 Oct 2016 14:17:09 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: msahyoun@apache.org To: commits@pdfbox.apache.org Message-Id: <2537c1ca20534df5a28931a1b93a615a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: pdfbox-docs git commit: PDFBOX-3330: document fontbox and xmpbox in the dependencis section. Add basic Ant instructions Date: Sun, 2 Oct 2016 14:17:09 +0000 (UTC) archived-at: Sun, 02 Oct 2016 14:17:11 -0000 Repository: pdfbox-docs Updated Branches: refs/heads/master 9bbbcd2e0 -> 493c4026d PDFBOX-3330: document fontbox and xmpbox in the dependencis section. Add basic Ant instructions Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/493c4026 Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/493c4026 Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/493c4026 Branch: refs/heads/master Commit: 493c4026d1d4eb43eb4eae1dcc7c7b2141bcb321 Parents: 9bbbcd2 Author: Maruan Sahyoun Authored: Sun Oct 2 16:16:51 2016 +0200 Committer: Maruan Sahyoun Committed: Sun Oct 2 16:16:51 2016 +0200 ---------------------------------------------------------------------- content/2.0/dependencies.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/493c4026/content/2.0/dependencies.md ---------------------------------------------------------------------- diff --git a/content/2.0/dependencies.md b/content/2.0/dependencies.md index a775d42..4da7fee 100644 --- a/content/2.0/dependencies.md +++ b/content/2.0/dependencies.md @@ -22,6 +22,14 @@ title: Dependencies # Dependencies +## Core components + +

These components are needed during runtime, development and testing dependent on the details below.

+ +The three PDFBox components are named ```pdfbox```, ```fontbox``` and ```xmpbox```. The Maven groupId of all PDFBox components is org.apache.pdfbox. + +### Minimum Requirement + PDFBox has the following basic dependencies: - Java 6 @@ -33,6 +41,23 @@ included in the Java platform. For **PDFBox Preflight tests only** [commons-io 2.4](https://commons.apache.org/proper/commons-io/) is needed. +### Font Handling +For font handling the fontbox component is needed. + +### XMP Metadata +To support XMP metadata the xmpbox component is needed. + +### Include Dependencies using Maven +To add the pdfbox, fontbox, xmpbox and commons-logging jars to your application, the easiest thing is to declare the Maven dependency shown below. This gives you the main pdfbox library directly and the other required jars as transitive dependencies. + + + org.apache.pdfbox + pdfbox + ... + + +Set the version field to the latest stable PDFBox version. + ## Optional components PDFBox does not ship with all features enabled. Third party components are necessary to get full support for certain functionality. @@ -59,7 +84,7 @@ Encrypting and sigining PDFs requires the *bcprov*, *bcmail* and *bcpkix* librar bcprov-jdk15on 1.54 - + org.bouncycastle bcmail-jdk15on @@ -77,3 +102,14 @@ Encrypting and sigining PDFs requires the *bcprov*, *bcmail* and *bcpkix* librar 256-bit AES encryption requires a JDK with "unlimited strength" cryptography, which requires extra files to be installed. For JDK 7, see [Java Cryptography Extension (JCE)](http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html). If these files are not installed, building PDFBox will throw an exception with the following message: JCE unlimited strength jurisdiction policy files are not installed + +## Dependencies for Ant builds + +The above instructions expect that you're using [Maven](http://maven.apache.org/) or another build tool like +[Ivy](http://ant.apache.org/ivy/) that supports Maven dependencies. +If you instead use tools like [Ant](http://ant.apache.org/) where you need to explicitly include all the required +library jars in your application, you'll need to do something different. + +The easiest approach is to run ``mvn dependency:copy-dependencies`` inside the pdfbox directory of the latest PDFBox +source release. This will copy all the required and optional libraries discussed above into the pdfbox/target/dependencies +directory. You can then simply copy all the libraries you need from this directory to your application.