|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.knowcenter.wag.egov.egiz.pdf.TextualSignature
Contains helper function for textual signatures.
| Constructor Summary | |
TextualSignature()
|
|
| Method Summary | |
static String |
extractTextTextual(PdfDataSource pdfDataSource,
String encoding)
Extracts the document text from a given pdf. |
static byte[] |
normalizePDF(PdfDataSource pdfDataSource)
Normalizes a given binary PDF to a version PDFbox can handle correctly. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextualSignature()
| Method Detail |
public static String extractTextTextual(PdfDataSource pdfDataSource,
String encoding)
throws PDFDocumentException
PDFDocumentException
TextExtractionException - Forwarded exception.
public static byte[] normalizePDF(PdfDataSource pdfDataSource)
throws IOException,
com.lowagie.text.DocumentException,
PDFDocumentException
PDFbox has serious problems with documents that use incremental updates or XObject forms. Therefor use this to remove incremental updates and create a streamlined document.
Note that this has nothing to do with text normalization. It just unifies the PDF documents that are fed into PDFbox for text extraction and page length determination.
IOException
com.lowagie.text.DocumentException
PDFDocumentException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||