Author: tilman Date: Fri Nov 25 16:52:01 2016 New Revision: 1771345 URL: http://svn.apache.org/viewvc?rev=1771345&view=rev Log: PDFBOX-2852: replace calls to deprecated method
Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomPageDrawer.java pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomPageDrawer.java URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomPageDrawer.java?rev=1771345&r1=1771344&r2=1771345&view=diff ============================================================================== --- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomPageDrawer.java (original) +++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomPageDrawer.java Fri Nov 25 16:52:01 2016 @@ -182,7 +182,7 @@ public class CustomPageDrawer saveGraphicsState(); // 35% alpha - getGraphicsState().setNonStrokeAlphaConstants(0.35); + getGraphicsState().setNonStrokeAlphaConstant(0.35); super.showAnnotation(annotation); // restore Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java?rev=1771345&r1=1771344&r2=1771345&view=diff ============================================================================== --- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java (original) +++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java Fri Nov 25 16:52:01 2016 @@ -215,7 +215,7 @@ public abstract class PDFStreamEngine // the current stroking and nonstroking alpha constants to 1.0, and the current soft mask to None. getGraphicsState().setBlendMode(BlendMode.NORMAL); getGraphicsState().setAlphaConstant(1); - getGraphicsState().setNonStrokeAlphaConstants(1); + getGraphicsState().setNonStrokeAlphaConstant(1); getGraphicsState().setSoftMask(null); // clip to bounding box Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java?rev=1771345&r1=1771344&r2=1771345&view=diff ============================================================================== --- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java (original) +++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java Fri Nov 25 16:52:01 2016 @@ -131,7 +131,7 @@ public class PDExtendedGraphicsState imp } else if( key.equals( COSName.CA_NS ) ) { - gs.setNonStrokeAlphaConstants(getNonStrokingAlphaConstant() ); + gs.setNonStrokeAlphaConstant(getNonStrokingAlphaConstant() ); } else if( key.equals( COSName.AIS ) ) {