Skip to content

Commit 14c725e

Browse files
author
Open Lowcode SAS
committed
closes #3
1 parent ea6451b commit 14c725e

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

src/org/openlowcode/tools/pdf/PDFPage.java

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,20 +1074,20 @@ public float getPageRight() {
10741074
}
10751075

10761076
/**
1077-
* @param left
1078-
* @param top
1079-
* @param right
1080-
* @param remainingheight
1081-
* @param text
1082-
* @param page
1083-
* @param texttype
1077+
* @param left left of the printing zone in mm
1078+
* @param top top of the prining zone in mm
1079+
* @param right right of the printing zone in mm
1080+
* @param remainingheight the maximum height to print
1081+
* @param text the full text to write
1082+
* @param page page to print in
1083+
* @param texttype text type as defined in PDFPage constant
10841084
* @param splitparagraph: true if this is the non-first part of
10851085
* a split paragraph. Typically, widget does not have to
10861086
* be printed
10871087
* @return
10881088
* @throws IOException
10891089
*/
1090-
static BoxTextContent writeAsMuchTextAsPossible(float left, float top, float right, float remainingheight,
1090+
public static BoxTextContent writeAsMuchTextAsPossible(float left, float top, float right, float remainingheight,
10911091
String text, PDFPage page, int texttype, boolean splitparagraph) throws IOException {
10921092
return calculateBoxAndMaybeWriteText(left, top, right, text, true, true, remainingheight, page, texttype,
10931093
splitparagraph);
@@ -1100,24 +1100,25 @@ static BoxTextContent writeAsMuchTextAsPossible(float left, float top, float rig
11001100
* @param remainingheight the maximum height to print
11011101
* @param text the full text to write
11021102
* @param page page to print in
1103+
* @param write true to write the text, false just to calculate
11031104
* @param texttype text type as defined in PDFPage constant
11041105
* @return the remaining text that could not be printed
11051106
* @throws IOException
11061107
*/
1107-
static BoxTextContent calculateBoxAndMaybeWriteText(float left, float top, float right, String text, boolean write,
1108+
public static BoxTextContent calculateBoxAndMaybeWriteText(float left, float top, float right, String text, boolean write,
11081109
PDFPage page, int texttype) throws IOException {
11091110
return calculateBoxAndMaybeWriteText(left, top, right, text, write, false, 0, page, texttype, false);
11101111
}
11111112

11121113
/**
1113-
* @param left
1114-
* @param top
1115-
* @param right
1116-
* @param text
1117-
* @param write
1118-
* @param partial
1119-
* @param maxheight
1120-
* @param page
1114+
* @param left left of the printing zone in mm
1115+
* @param top top of the prining zone in mm
1116+
* @param right right of the printing zone in mm
1117+
* @param text the full text to write
1118+
* @param write true to write the text, false just to calculate
1119+
* @param partial true to write only partial content within the maximum height limit specified
1120+
* @param maxheight max height to print partial content
1121+
* @param page page to print in
11211122
* @param texttype one of the constants prefixed by 'TEXTTYPE_' in the
11221123
* class
11231124
* @param splitparagraph : true if this is the non-first part of a section split
@@ -1126,7 +1127,7 @@ static BoxTextContent calculateBoxAndMaybeWriteText(float left, float top, float
11261127
* @return
11271128
* @throws IOException
11281129
*/
1129-
static BoxTextContent calculateBoxAndMaybeWriteText(float left, float top, float right, String text, boolean write,
1130+
public static BoxTextContent calculateBoxAndMaybeWriteText(float left, float top, float right, String text, boolean write,
11301131
boolean partial, float maxheight, PDFPage page, int texttype, boolean splitparagraph) throws IOException {
11311132
boolean currentsplitparagraph = splitparagraph;
11321133
if (write)

0 commit comments

Comments
 (0)