/** * The Tm operator. Sets the text matrix to the given values. * A current text matrix will be replaced with the new one. * @param matrix the transformation matrix * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextMatrix(AffineTransform matrix) throws IOException { setTextMatrix(new Matrix(matrix)); }
/** * The Tm operator. Sets the text matrix to the given translation values. * A current text matrix will be replaced with the new one. * @param tx The translation value in x-direction. * @param ty The translation value in y-direction. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextTranslation(double tx, double ty) throws IOException { setTextMatrix(Matrix.getTranslateInstance((float) tx, (float) ty)); }
/** * The Tm operator. Sets the text matrix to the given rotation and translation values. * A current text matrix will be replaced with the new one. * @param angle The angle used for the counterclockwise rotation in radians. * @param tx The translation value in x-direction. * @param ty The translation value in y-direction. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextRotation(double angle, double tx, double ty) throws IOException { setTextMatrix(Matrix.getRotateInstance(angle, (float) tx, (float) ty)); }
/** * The Tm operator. Sets the text matrix to the given scaling and translation values. * A current text matrix will be replaced with the new one. * @param sx The scaling factor in x-direction. * @param sy The scaling factor in y-direction. * @param tx The translation value in x-direction. * @param ty The translation value in y-direction. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextScaling(double sx, double sy, double tx, double ty) throws IOException { setTextMatrix(new Matrix((float) sx, 0f, 0f, (float) sy, (float) tx, (float) ty)); }
/** * The Tm operator. Sets the text matrix to the given values. * A current text matrix will be replaced with the new one. * @param a The a value of the matrix. * @param b The b value of the matrix. * @param c The c value of the matrix. * @param d The d value of the matrix. * @param e The e value of the matrix. * @param f The f value of the matrix. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextMatrix(double a, double b, double c, double d, double e, double f) throws IOException { setTextMatrix(new Matrix((float)a, (float)b, (float)c, (float)d, (float)e, (float)f)); }
contentStream.setTextMatrix( Matrix.getTranslateInstance(0, pageSize.getHeight() - stringHeight / 1000f)); contentStream.setTextMatrix( Matrix.getTranslateInstance(0, pageSize.getHeight() - stringHeight / 1000f * 2)); contentStream.setTextMatrix(Matrix.getTranslateInstance(0, pageSize.getHeight() - stringHeight / 1000f * 3)); contentStream.setTextMatrix( Matrix.getTranslateInstance(0, pageSize.getHeight() - stringHeight / 1000f * 4)); font = PDTrueTypeFont.load(doc, PDDocument.class.getResourceAsStream( contentStream.setTextMatrix( Matrix.getTranslateInstance(0, pageSize.getHeight() - stringHeight / 1000f * 5)); font = PDTrueTypeFont.load(doc, PDDocument.class.getResourceAsStream( contentStream.setTextMatrix( Matrix.getTranslateInstance(0, pageSize.getHeight() - stringHeight / 1000f * 6)); font = PDType0Font.load(doc, PDDocument.class.getResourceAsStream(
contentStream.setTextMatrix(Matrix.getRotateInstance(i * Math.PI * 0.25, centeredXPosition, pageSize.getHeight() - centeredYPosition)); contentStream.showText(message + " " + i); contentStream.setTextMatrix(Matrix.getRotateInstance(-i*Math.PI*0.25, centeredXPosition, centeredYPosition)); contentStream.showText(message + " " + i); contentStream.setTextMatrix(new Matrix(12 + (i * 6), 0, 0, 12+(i*6), 100, 100+i*50)); contentStream.showText(message + " " + i); contentStream.setTextMatrix(new Matrix(12, 0, 0, 12, centeredXPosition, centeredYPosition*1.5f)); contentStream.showText(message + " " + i++); contentStream.setTextMatrix(new Matrix(0, 18, -18, 0, centeredXPosition, centeredYPosition*1.5f)); contentStream.showText(message + " " + i++); contentStream.setTextMatrix(new Matrix(-24, 0, 0, -24, centeredXPosition, centeredYPosition*1.5f)); contentStream.showText(message + " " + i++); contentStream.setTextMatrix(new Matrix(0, -30, 30, 0, centeredXPosition, centeredYPosition*1.5f)); contentStream.showText(message + " " + i++);
contentStream.setTextMatrix(Matrix.getRotateInstance(Math.PI / 2, centerX, centerY)); contentStream.setTextMatrix(Matrix.getTranslateInstance(centerX, centerY));
/** * The Tm operator. Sets the text matrix to the given values. * A current text matrix will be replaced with the new one. * @param matrix the transformation matrix * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextMatrix(AffineTransform matrix) throws IOException { setTextMatrix(new Matrix(matrix)); }
/** * The Tm operator. Sets the text matrix to the given values. * A current text matrix will be replaced with the new one. * @param matrix the transformation matrix * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextMatrix(AffineTransform matrix) throws IOException { setTextMatrix(new Matrix(matrix)); }
/** * The Tm operator. Sets the text matrix to the given translation values. * A current text matrix will be replaced with the new one. * @param tx The translation value in x-direction. * @param ty The translation value in y-direction. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextTranslation(double tx, double ty) throws IOException { setTextMatrix(Matrix.getTranslateInstance((float) tx, (float) ty)); }
/** * The Tm operator. Sets the text matrix to the given translation values. * A current text matrix will be replaced with the new one. * @param tx The translation value in x-direction. * @param ty The translation value in y-direction. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextTranslation(double tx, double ty) throws IOException { setTextMatrix(Matrix.getTranslateInstance((float) tx, (float) ty)); }
/** * The Tm operator. Sets the text matrix to the given rotation and translation values. * A current text matrix will be replaced with the new one. * @param angle The angle used for the counterclockwise rotation in radians. * @param tx The translation value in x-direction. * @param ty The translation value in y-direction. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextRotation(double angle, double tx, double ty) throws IOException { setTextMatrix(Matrix.getRotateInstance(angle, (float) tx, (float) ty)); }
/** * The Tm operator. Sets the text matrix to the given scaling and translation values. * A current text matrix will be replaced with the new one. * @param sx The scaling factor in x-direction. * @param sy The scaling factor in y-direction. * @param tx The translation value in x-direction. * @param ty The translation value in y-direction. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextScaling(double sx, double sy, double tx, double ty) throws IOException { setTextMatrix(new Matrix((float) sx, 0f, 0f, (float) sy, (float) tx, (float) ty)); }
/** * The Tm operator. Sets the text matrix to the given rotation and translation values. * A current text matrix will be replaced with the new one. * @param angle The angle used for the counterclockwise rotation in radians. * @param tx The translation value in x-direction. * @param ty The translation value in y-direction. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextRotation(double angle, double tx, double ty) throws IOException { setTextMatrix(Matrix.getRotateInstance(angle, (float) tx, (float) ty)); }
/** * The Tm operator. Sets the text matrix to the given scaling and translation values. * A current text matrix will be replaced with the new one. * @param sx The scaling factor in x-direction. * @param sy The scaling factor in y-direction. * @param tx The translation value in x-direction. * @param ty The translation value in y-direction. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextScaling(double sx, double sy, double tx, double ty) throws IOException { setTextMatrix(new Matrix((float) sx, 0f, 0f, (float) sy, (float) tx, (float) ty)); }
/** * The Tm operator. Sets the text matrix to the given values. * A current text matrix will be replaced with the new one. * @param a The a value of the matrix. * @param b The b value of the matrix. * @param c The c value of the matrix. * @param d The d value of the matrix. * @param e The e value of the matrix. * @param f The f value of the matrix. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextMatrix(double a, double b, double c, double d, double e, double f) throws IOException { setTextMatrix(new Matrix((float)a, (float)b, (float)c, (float)d, (float)e, (float)f)); }
/** * The Tm operator. Sets the text matrix to the given values. * A current text matrix will be replaced with the new one. * @param a The a value of the matrix. * @param b The b value of the matrix. * @param c The c value of the matrix. * @param d The d value of the matrix. * @param e The e value of the matrix. * @param f The f value of the matrix. * @throws IOException If there is an error writing to the stream. * @deprecated Use {@link #setTextMatrix(Matrix)} instead. */ @Deprecated public void setTextMatrix(double a, double b, double c, double d, double e, double f) throws IOException { setTextMatrix(new Matrix((float)a, (float)b, (float)c, (float)d, (float)e, (float)f)); }
public void setTextMatrix(float a, float b, float c, float d, float e, float f) { try { Matrix mtrx = new Matrix(a, b, c, d, e, f); cs.setTextMatrix(mtrx); } catch (IOException e1) { logAndThrow("setTextMatrix", e1); } }
public void setTextMatrix(float a, float b, float c, float d, float e, float f) { try { Matrix mtrx = new Matrix(a, b, c, d, e, f); cs.setTextMatrix(mtrx); } catch (IOException e1) { logAndThrow("setTextMatrix", e1); } }