# This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- PDFStreamEngine.java (1566760) +++ Current File @@ -191,17 +191,35 @@ * * @param resources The location to retrieve resources. * @param cosStream the Stream to execute. - * @param drawingSize the size of the page - * @param rotation the page rotation + * @param drawingSize the size of the page. + * @param rotation the page rotation. * * @throws IOException if there is an error accessing the stream. */ public void processStream(PDResources resources, COSStream cosStream, PDRectangle drawingSize, int rotation) throws IOException { + processStream(resources, cosStream, drawingSize, rotation, null); + } + + /** + * + * @param resources The location to retrieve resources. + * @param cosStream the Stream to execute. + * @param drawingSize the size of the page. + * @param rotation the page rotation. + * @param matrix the transformation matrix or null if there is none. + * + * @throws IOException + */ + public void processStream(PDResources resources, COSStream cosStream, PDRectangle drawingSize, int rotation, Matrix matrix) + throws IOException + { drawingRectangle = drawingSize; pageRotation = rotation; graphicsState = new PDGraphicsState(drawingRectangle); + if (matrix != null) + graphicsState.setCurrentTransformationMatrix(matrix); textMatrix = null; textLineMatrix = null; graphicsStack.clear();