/** * Transforms a length according to the current transformation matrix. */ protected float transformLength(float w) { Matrix ctm = getGraphicsState().getCurrentTransformationMatrix(); Matrix m = new Matrix(); m.setValue(2, 0, w); return m.multiply(ctm).getTranslateX(); }
initialMatrix.setValue(0,0,1); initialMatrix.setValue(0,1,0); initialMatrix.setValue(0,2,0); initialMatrix.setValue(1,0,0); initialMatrix.setValue(1,1,1); initialMatrix.setValue(1,2,0); initialMatrix.setValue(2,0,0); initialMatrix.setValue(2,1,rise); initialMatrix.setValue(2,2,1); if( pageRotation == 0 ) trm.setValue( 2,1, -y + page.findMediaBox().getHeight() ); trm.setValue( 2,0, y ); trm.setValue( 2,1, x ); //2013-03-12 fixed shifted coordinates in e.g. eu-014.pdf (table datset) trm.setValue( 2,0, -y + page.findMediaBox().getHeight() ); trm.setValue( 2,1, x ); td.setValue( 2, 0, tx ); td.setValue( 2, 1, ty ); td2.setValue( 2, 0, tx2 ); td2.setValue( 2, 1, ty );
adjustment=(-adjustment/1000)*context.getGraphicsState().getTextState().getFontSize() * (context.getGraphicsState().getTextState().getHorizontalScalingPercent()/100); adjMatrix.setValue( 2, 0, adjustment ); context.setTextMatrix( adjMatrix.multiply( context.getTextMatrix() ) );
translationParams.setValue(2,1, -translationParams.getValue( 2,1 )); translationMatrix = Matrix.getTranslatingInstance(0, (float)pageSize.getHeight()-height*scalingParams.getYScale() ); translationParams = translationParams.multiply( translationMatrix );