本文整理了Java中org.apache.pdfbox.util.Matrix.getYPosition()
方法的一些代码示例,展示了Matrix.getYPosition()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.getYPosition()
方法的具体详情如下:
包路径:org.apache.pdfbox.util.Matrix
类名称:Matrix
方法名:getYPosition
[英]Get the y position. This method is deprecated as it is incorrectly named.
[中]得到y位置。此方法因名称不正确而被弃用。
代码示例来源:origin: tamirhassan/pdfxtk
float yScale = trm.getYScale();
float xPos = trm.getXPosition();
float yPos = trm.getYPosition();
spaceWidth = spaceDisplacement * xScale * fontSize;
wordSpacingDisplacement = wordSpacing*xScale * fontSize;
float yPosBefore2 = getTextMatrix().getYPosition();
float xTrans = 0, yTrans = 0;
float yPosBefore = getTextMatrix().getYPosition();
Matrix textMatrix2 = (Matrix)getTextMatrix().clone();
setTextMatrix(td.multiply( getTextMatrix() ));
width = (getTextMatrix().getYPosition() - yPosBefore);
width2 = (textMatrix2.getYPosition() - yPosBefore);
width = (yPosBefore - getTextMatrix().getYPosition());
width2 = (yPosBefore - textMatrix2.getYPosition());
代码示例来源:origin: stackoverflow.com
float x = textPos.getXPosition();
float y = pageSize.height - textPos.getYPosition();
代码示例来源:origin: asciidoctor/asciidoctorj
angle = (-1)*angle;
ctmNew.setValue(2, 1, (float)(pageHeight - ctmNew.getYPosition() - Math.cos(angle)*yScaling));
ctmNew.setValue(2, 0, (float)(ctmNew.getXPosition() - Math.sin(angle)*yScaling));
im.setPage(currentPage);
im.setXPosition(ctmNew.getXPosition());
im.setYPosition(ctmNew.getYPosition());
im.setOriginalWidth(imageWidth);
im.setOriginalHeight(imageHeight);
内容来源于网络,如有侵权,请联系作者删除!