de.oio.jpdfunit.document.pdflibimpl
Class PdfBoxFactory

java.lang.Object
  extended by de.oio.jpdfunit.document.DocumentFactory
      extended by de.oio.jpdfunit.document.pdflibimpl.PdfBoxFactory

public final class PdfBoxFactory
extends DocumentFactory

The PdfBoxFactory is the default factory class which is used for getting a Document and the matching content.

Author:
bbratkus

Method Summary
 Document getDocument(InputStream pdfStream)
          For working with a Document first you have to get the Document.
 Document getDocument(String pdfFile)
          For working with a Document first you have to get the Document.
static DocumentFactory newInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static DocumentFactory newInstance()
Returns:
Returns an instance of the PdfBoxFactory.

getDocument

public Document getDocument(String pdfFile)
For working with a Document first you have to get the Document. In this method a String ist used to get the document.

Specified by:
getDocument in class DocumentFactory
Parameters:
pdfFile - The document i.e. "etc/testing-pdfs/oio-katalog-mit-logo-mit-farben.pdf"
Returns:
The document created via the pdfFile.

getDocument

public Document getDocument(InputStream pdfStream)
For working with a Document first you have to get the Document. In this method a InputStream ist used to get the document.

Specified by:
getDocument in class DocumentFactory
Parameters:
pdfStream - A InputStream which contains the document.
Returns:
The document created via the stream.


Copyright © 2011. All Rights Reserved.