我遵循这个例子Create landscape PDF,它工作正常。现在我想将0,0参考从左下角移到左上角。要做到这一点,我需要更改contentStream.transform(new Matrix(0, 1, -1, 0, pageWidth, 0));
。我查看了PDFBox Matrix的文档,其中指定了Matrix
的参数,如下所示。在PDFBox矩阵中,参数意味着什么
public Matrix(float a,
float b,
float c,
float d,
float e,
float f)
Creates a matrix with the given 6 elements.
但它并没有告诉我6个不同的参数/元素做什么。我想人们已经做了旋转和两个在X和Y方向移动参考。我在哪里可以找到描述参数的文档?
感谢您提供非常详细的答案。最后,我知道我应该使用我在大学学到的线性代数:)。 – g3blv