Hello,
there is some minor improvement could be synchronized somewhen soon. The anchor point of 2 methods seem not to be the same - where it is the top left corner for:
pdfextractor.extractTextInRectangle(scanRectangle);
it seems to be the bottom left corner for
pdfcontenteditor.createPolygon(lineInfo1, 1, scanRectangle, "");
I have attached the resulting file where the adress block should be marked near the top left corner wheras the bottom left corner is marked now for the same rectangle. I have added as well the default document with the mesurements to match a document with the standard DIN676 compilance - there you can find the same marked region on the second page
Greets
rennicke
Wheras the the lineInfo is created this way:
LineInfo lineInfo1 = new LineInfo();
lineInfo1.setLineColor(new Color(0, 255, 0));
lineInfo1.setLineWidth(5);
lineInfo1.setBorderStyle(1);
float[] verticeCoordinate ={ scanRectangle.x, scanRectangle.y, scanRectangle.x+scanRectangle.width, scanRectangle.y, scanRectangle.x+scanRectangle.width, scanRectangle.y+scanRectangle.height, scanRectangle.x, scanRectangle.y+scanRectangle.height };
int[] lineDashPattern ={ 2, 2 };
lineInfo1.setVerticeCoordinate(verticeCoordinate);
editor.createPolygon(lineInfo1, 1, scanRectangle, "");