From 4b4bf058f1956c9ef94cfbecaa90d618626208c6 Mon Sep 17 00:00:00 2001 From: tknall Date: Wed, 10 Jan 2007 07:39:26 +0000 Subject: potential bugs marked git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@26 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java | 2 ++ .../java/at/knowcenter/wag/egov/egiz/pdf/AbsoluteTextSignature.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java index a80c410..0987b2d 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java @@ -368,6 +368,8 @@ public abstract class PdfAS public static List findBlockInText(String text, SignatureTypeDefinition sig_type_def, boolean old_style) { + // FIXME[tknall]: AbsoluteTextSignature.java, method findEndOfValue(...) does not work properly for landscape documents because start_index of FoundKeys are not set correctly. + // Hint: Captions and values of landscape documents are separated with " \n" and not only with " ". Vector keys = sig_type_def.getRevertSortedKeys(); Vector captions = sig_type_def.getRevertSortedCaptions(); diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AbsoluteTextSignature.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AbsoluteTextSignature.java index 658f7dd..b3c2e24 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AbsoluteTextSignature.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AbsoluteTextSignature.java @@ -470,6 +470,8 @@ public class AbsoluteTextSignature */ public static int findEndOfValue(String text, int start_index) { + // FIXME[tknall]: this method does not work properly for landscape documents because always starts with "\n". Look for errors in PdfAS.java, method findBlockInText(...) to set the start_index accordingly. + // Hint: Captions and values of landscape documents are separated with " \n" and not only with " ". int newline_index = text.indexOf('\n', start_index); if (newline_index < 0) { -- cgit v1.2.3