at.gv.egiz.pdfas.utils
Class PDFASUtils

java.lang.Object
  extended by at.gv.egiz.pdfas.utils.PDFASUtils

public class PDFASUtils
extends Object

Author:
tknall

Method Summary
static void checkDocumentPermissions(org.apache.pdfbox.pdmodel.PDDocument doc)
           
static void checkReaderPermissions(com.lowagie.text.pdf.PdfReader pdfReader)
          Verifies that a document could be opened with full permissions.
static boolean toFile(byte[] data, File file)
           
static boolean toFile(InputStream inputStream, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkReaderPermissions

public static void checkReaderPermissions(com.lowagie.text.pdf.PdfReader pdfReader)
                                   throws PDFDocumentException
Verifies that a document could be opened with full permissions.

Parameters:
pdfReader - The PdfReader
Throws:
PDFDocumentException - Thrown if document has not been opened with full permissions.

toFile

public static boolean toFile(byte[] data,
                             File file)
                      throws IOException
Throws:
IOException

toFile

public static boolean toFile(InputStream inputStream,
                             File file)
                      throws IOException
Throws:
IOException

checkDocumentPermissions

public static void checkDocumentPermissions(org.apache.pdfbox.pdmodel.PDDocument doc)
                                     throws PDFDocumentException
Throws:
PDFDocumentException


Copyright © 2006-2011. All Rights Reserved.