org.apache.pdfbox.examples.pdfa
Class CreatePDFA

java.lang.Object
  extended by org.apache.pdfbox.examples.pdfa.CreatePDFA

public class CreatePDFA
extends Object

This is an example that creates a simple PDF/A document.


Constructor Summary
CreatePDFA()
          Constructor.
 
Method Summary
 void doIt(String file, String message)
          Create a simple PDF/A document.
static void main(String[] args)
          This will create a hello world PDF/A document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreatePDFA

public CreatePDFA()
Constructor.

Method Detail

doIt

public void doIt(String file,
                 String message)
          throws Exception
Create a simple PDF/A document. This example is based on HelloWorld example. As it is a simple case, to conform the PDF/A norm, are added : - the font used in the document - a light xmp block with only PDF identification schema (the only mandatory) - an output intent

Parameters:
file - The file to write the PDF to.
message - The message to write in the file.
Throws:
Exception - If something bad occurs

main

public static void main(String[] args)
This will create a hello world PDF/A document.
see usage() for commandline

Parameters:
args - Command line arguments.


Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.