private int validCharCnt;
private int totalCharCnt;
protected String currentString;
+ protected String currentOperator;
/**
* Flag to skip malformed or otherwise unparseable input where possible.
*/
currentString = s;
}
+ public void setCurrentOperator(String s) {
+ currentOperator = s;
+ }
+
public boolean isForceParsing() {
return forceParsing;
}
* @throws IOException if there is an error accessing the stream.
*/
public void processStream(PDPage aPage, PDResources resources, COSStream cosStream) throws IOException {
- System.out.println("blabla");
-
graphicsState = new PDGraphicsState(aPage.findCropBox());
textMatrix = null;
textLineMatrix = null;
String currentChar = Character.toString(currentString.charAt(i));
if (!currentChar.equals(c)) {
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 (characterHorizontalDisplacementText == 0.0f && ef != null) {
- System.out.println(c + ":" + ef.getStringWidth(c));
- }
-
// multiply the width/height with the scaling factor
characterHorizontalDisplacementText = characterHorizontalDisplacementText * fontMatrixXScaling;
characterVerticalDisplacementText = characterVerticalDisplacementText * fontMatrixYScaling;
\r
$fwstk = new cubeCommandLine('fwstk');\r
$fwstk->setPath(CONVERTER_PATH);\r
- $fwstk->setArg('--input ' . $this->in);\r
+ $fwstk->setArg('--input ' . $this->cropped);\r
$fwstk->setArg('--layout ' . $this->html . 'p%d.layout');\r
$fwstk->setArg('--cmaps ' . $this->html);\r
$fwstk->setArg('--fonts' . $this->out . 'fonts/web/');\r