List of usage examples for org.apache.pdfbox.util Matrix clone
@Override
public Matrix clone()
From source file:chiliad.parser.pdf.extractor.image.PDFImage.java
License:Apache License
public PDFImage(String imageName, PDXObjectImage image, Matrix ctmNew, double pageHeight) { this.imageName = imageName; this.image = image; this.ctmNew = (Matrix) ctmNew.clone(); this.pageHeight = pageHeight; Matrix m = doCalc();/*from w w w . jav a2s .c o m*/ this.x = (double) m.getXPosition(); this.y = (double) m.getYPosition(); float imageXScale = m.getXScale(); float imageYScale = m.getYScale(); this.width = (double) imageXScale; this.height = (double) imageYScale; }