/** * Utility method to normalize text created in a Xform content stream and is only called from the * contentParser when parsing 'Do' token. * * @param transform do matrix transform */ public void applyXObjectTransform(AffineTransform transform) { for (LineText lineText : pageLines) { lineText.clearBounds(); for (WordText wordText : lineText.getWords()) { wordText.clearBounds(); for (GlyphText glyph : wordText.getGlyphs()) { glyph.normalizeToUserSpace(transform, null); } } } }