From a13369a96981954719a79272d7f2f2edc0636926 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Sat, 20 Aug 2011 17:09:24 +0000 Subject: [PATCH] --- .../private/configs/Make_images.properties | 2 +- .../org/apache/pdfbox/util/PDFStreamEngine.java | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/fluidbook/tools/fwstk/nbproject/private/configs/Make_images.properties b/fluidbook/tools/fwstk/nbproject/private/configs/Make_images.properties index 38d131697..e609fd657 100644 --- a/fluidbook/tools/fwstk/nbproject/private/configs/Make_images.properties +++ b/fluidbook/tools/fwstk/nbproject/private/configs/Make_images.properties @@ -1 +1 @@ -application.args=--input C:\\Users\\Vincent\\Documents\\layout\\document.pdf --image C:\\Users\\Vincent\\Documents\\layout\\p +application.args=--input H:\\Documents\\fwstk\\layout\\document.pdf --image H:\\Documents\\fwstk\\layout\\p diff --git a/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java b/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java index 03e0174c7..4174288e4 100644 --- a/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java +++ b/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java @@ -373,15 +373,17 @@ public class PDFStreamEngine { try { String currentChar = Character.toString(currentString.charAt(i)); - if (c.toUpperCase().equals(currentChar)) { - System.out.println("up"); - c = c.toUpperCase(); - } else if (c.toLowerCase().equals(currentChar)) { - System.out.println("low"); - c = c.toLowerCase(); + if (!currentChar.equals(c)) { + if (c.toUpperCase().equals(currentChar)) { + c = c.toUpperCase(); + } else if (c.toLowerCase().equals(currentChar)) { + c = c.toLowerCase(); + } } } catch (NullPointerException | StringIndexOutOfBoundsException e) { } + + //System.out.println(c+";"+currentString.charAt(i)); -- 2.39.5