// compute a matrix which scales and translates the transformed appearance box to align
// with the edges of the annotation's rectangle
Matrix a = Matrix.getTranslatingInstance(rect.getLowerLeftX(), rect.getLowerLeftY());
a.concatenate(Matrix.getScaleInstance(rect.getWidth() / transformedBox.getWidth(),
rect.getHeight() / transformedBox.getHeight()));
a.concatenate(Matrix.getTranslatingInstance(-transformedBox.getLowerLeftX(),
-transformedBox.getLowerLeftY()));
// Matrix shall be concatenated with A to form a matrix AA that maps from the appearance��s
// coordinate system to the annotation’s rectangle in default user space
Matrix aa = Matrix.concatenate(matrix, a);