|
|
|
@ -391,10 +391,10 @@ public class PDFWriter {
|
|
|
|
|
float Xmm = XYmm[0];
|
|
|
|
|
float Ymm = XYmm[1];
|
|
|
|
|
|
|
|
|
|
float Xpt = Print.mmToPt(Xmm);
|
|
|
|
|
float Ypt = Print.mmToPt(Ymm);
|
|
|
|
|
float Xpt = CmmnUtil.mmToPt(Xmm);
|
|
|
|
|
float Ypt = CmmnUtil.mmToPt(Ymm);
|
|
|
|
|
|
|
|
|
|
float YptMax = Print.mmToPt(this.paperMilimeter[1]);
|
|
|
|
|
float YptMax = CmmnUtil.mmToPt(this.paperMilimeter[1]);
|
|
|
|
|
|
|
|
|
|
return new PDFCoordinate(Xpt, Ypt, YptMax);
|
|
|
|
|
}
|
|
|
|
@ -415,7 +415,7 @@ public class PDFWriter {
|
|
|
|
|
|
|
|
|
|
float[] xyAbsolute = this.toPDFCoordinate(XYmm).absolute();
|
|
|
|
|
|
|
|
|
|
float textAreaWidth_pt = Print.mmToPt(textAreaWidth_mm);
|
|
|
|
|
float textAreaWidth_pt = CmmnUtil.mmToPt(textAreaWidth_mm);
|
|
|
|
|
|
|
|
|
|
float allTextWidth = calcTextWidth(font, fontSize, allText);
|
|
|
|
|
|
|
|
|
@ -553,7 +553,7 @@ public class PDFWriter {
|
|
|
|
|
float[] xyAbsolute = this.toPDFCoordinate(XYmm).absolute();
|
|
|
|
|
|
|
|
|
|
float[] size = new float[] {
|
|
|
|
|
Print.mmToPt(SIZEmm[0]),Print.mmToPt(SIZEmm[1])
|
|
|
|
|
CmmnUtil.mmToPt(SIZEmm[0]),CmmnUtil.mmToPt(SIZEmm[1])
|
|
|
|
|
};
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
@ -722,8 +722,8 @@ public class PDFWriter {
|
|
|
|
|
float bottomFold = margin + partHeight; //하단접는곳
|
|
|
|
|
float topFold = margin + (partHeight * 2); //상단접는곳
|
|
|
|
|
|
|
|
|
|
float bottomFold_pt = Print.mmToPt(bottomFold);
|
|
|
|
|
float topFold_pt = Print.mmToPt(topFold);
|
|
|
|
|
float bottomFold_pt = CmmnUtil.mmToPt(bottomFold);
|
|
|
|
|
float topFold_pt = CmmnUtil.mmToPt(topFold);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
contentStream.setLineDashPattern(new float[]{3,1}, 0);
|
|
|
|
|