"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFRenderer.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

PDFRenderer.java  (pdfbox-2.0.23-src):PDFRenderer.java  (pdfbox-2.0.24-src)
skipping to change at line 479 skipping to change at line 479
return ocProperties == null || ocProperties.isGroupEnabled(group); return ocProperties == null || ocProperties.isGroupEnabled(group);
} }
// scale rotate translate // scale rotate translate
private void transform(Graphics2D graphics, PDPage page, float scaleX, float scaleY) private void transform(Graphics2D graphics, PDPage page, float scaleX, float scaleY)
{ {
graphics.scale(scaleX, scaleY); graphics.scale(scaleX, scaleY);
// TODO should we be passing the scale to PageDrawer rather than messing with Graphics? // TODO should we be passing the scale to PageDrawer rather than messing with Graphics?
int rotationAngle = page.getRotation(); int rotationAngle = page.getRotation();
PDRectangle cropBox = page.getCropBox();
if (rotationAngle != 0) if (rotationAngle != 0)
{ {
PDRectangle cropBox = page.getCropBox();
float translateX = 0; float translateX = 0;
float translateY = 0; float translateY = 0;
switch (rotationAngle) switch (rotationAngle)
{ {
case 90: case 90:
translateX = cropBox.getHeight(); translateX = cropBox.getHeight();
break; break;
case 270: case 270:
translateY = cropBox.getWidth(); translateY = cropBox.getWidth();
break; break;
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)