From 4faabc7bedd389acab4027b1394d4895c971d070 Mon Sep 17 00:00:00 2001 From: ferbas Date: Wed, 2 Dec 2009 16:14:54 +0000 Subject: added annotation extraction with pdfbox 0.8.0 git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@470 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../gv/egiz/pdfas/impl/signator/textual/TextualSignator_1_0_0.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/gv') diff --git a/src/main/java/at/gv/egiz/pdfas/impl/signator/textual/TextualSignator_1_0_0.java b/src/main/java/at/gv/egiz/pdfas/impl/signator/textual/TextualSignator_1_0_0.java index eea78f8..51cd584 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/signator/textual/TextualSignator_1_0_0.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/signator/textual/TextualSignator_1_0_0.java @@ -32,6 +32,7 @@ import at.knowcenter.wag.egov.egiz.PdfASID; import at.knowcenter.wag.egov.egiz.exceptions.PresentableException; import at.knowcenter.wag.egov.egiz.framework.SignatorFactory; import at.knowcenter.wag.egov.egiz.pdf.IncrementalUpdateInformation; +import at.knowcenter.wag.egov.egiz.pdf.ObjectExtractor; import at.knowcenter.wag.egov.egiz.pdf.PositioningInstruction; import at.knowcenter.wag.egov.egiz.pdf.TablePos; import at.knowcenter.wag.egov.egiz.pdf.TextualSignature; @@ -105,7 +106,7 @@ public class TextualSignator_1_0_0 implements Signator tsi.pos = pos; String document_text = PdfAS.extractNormalizedTextTextual(pdfDataSource); - tsi.setNonTextualObjects(TextualSignature.extractNonTextInfo(pdfDataSource)); + tsi.setNonTextualObjects(ObjectExtractor.extractNonTextInfo(pdfDataSource)); // logger_.debug("signed_text = " + document_text); DataSource ds = new TextDataSourceImpl(document_text); @@ -141,7 +142,7 @@ public class TextualSignator_1_0_0 implements Signator PositioningInstruction pi = PdfAS.determineTablePositioning(tsi.pos, tsi.profile, tsi.originalDocument, pdf_table); - IncrementalUpdateInformation iui = IncrementalUpdateHelper.writeIncrementalUpdateToDataSink(tsi.originalDocument, dataSink, pdf_table, tsi.profile, pi, null); + IncrementalUpdateInformation iui = IncrementalUpdateHelper.writeIncrementalUpdateToDataSink(tsi.originalDocument, dataSink, pdf_table, tsi.profile, pi, null, signatorInformation); tsi.atp = iui.actualTablePos; // OutputStream os = dataSink.createOutputStream(PdfAS.PDF_MIME_TYPE); -- cgit v1.2.3