|
@@ -1,6 +1,8 @@
|
|
|
/**
|
|
|
* Created by Tony on 2021/4/2.
|
|
|
*/
|
|
|
+const A4_PIXEL_HEIGHT = 1122;
|
|
|
+const A4_PIXEL_WIDTH = 793;
|
|
|
|
|
|
let rptArchiveObj = {
|
|
|
treeObj: null,
|
|
@@ -448,7 +450,7 @@ let rptArchiveObj = {
|
|
|
let rst = {
|
|
|
Left: srcArea[JV.IDX_LEFT] + offsetX, Top: srcArea[JV.IDX_TOP] + offsetY, width, height,
|
|
|
PtCenterX: +((srcArea[JV.IDX_LEFT] + offsetX + width / 2) * PDF_SCALE).toFixed(2),
|
|
|
- PtCenterY: +((srcArea[JV.IDX_TOP] + offsetX + height / 2) * PDF_SCALE).toFixed(2),
|
|
|
+ PtCenterY: +((A4_PIXEL_HEIGHT - (srcArea[JV.IDX_TOP] + offsetX + height / 2)) * PDF_SCALE).toFixed(2),
|
|
|
PtWidth: +(width * PDF_SCALE).toFixed(2), PtHeight: +(height * PDF_SCALE).toFixed(2),
|
|
|
pages: []
|
|
|
};
|