Package org.apache.pdfbox.util

Examples of org.apache.pdfbox.util.Matrix.concatenate()


            PDRectangle transformedBox = bbox.transform(matrix);

            // 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
View Full Code Here


            // 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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.