我無法理解PDPageContentStream.setTextMatrix(Matrix m)
參數表示的m
矩陣中的6個值。早些時候它曾經有6個值,但現在它只需要一個包含所有值的矩陣。瞭解PDPageContentStream.setTextMatrix()的參數
是的,我已經閱讀文檔,我發現的解釋完全沒用 -
public void setTextMatrix(double a,
double b,
double c,
double d,
double e,
double f)
throws IOException
The Tm operator. Sets the text matrix to the given values. A current text matrix will be replaced with the new one.
Parameters:
a - The a value of the matrix.
b - The b value of the matrix.
c - The c value of the matrix.
d - The d value of the matrix.
e - The e value of the matrix.
f - The f value of the matrix.
我也搜索的例子,但無處沒有我發現這些值的解釋。此外,奇怪的是,當我用兩個不同的PDF文件嘗試相同的值時,結果是不同的,所以我假設這與邊距和距離等有關。
我覺得我在浪費時間猜測工作。對論點的直接解釋將會非常好。
編輯
我知道的矩陣,以及如何傳遞值。我不知道矩陣中的值實際上是什麼意思。
查看編輯。 – user8
也許在java文檔中閱讀AffineTransform的解釋,除了參數不同之外,它們是相同的。另請參閱Matrix的靜態方法。* –
另請閱讀處理座標系的pdf規範部分。 – mkl