Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D0FD5200BC7 for ; Fri, 25 Nov 2016 17:52:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CFAE2160B1C; Fri, 25 Nov 2016 16:52:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 23228160AFA for ; Fri, 25 Nov 2016 17:52:08 +0100 (CET) Received: (qmail 77361 invoked by uid 500); 25 Nov 2016 16:52:08 -0000 Mailing-List: contact commits-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list commits@pdfbox.apache.org Received: (qmail 77343 invoked by uid 99); 25 Nov 2016 16:52:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2016 16:52:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DCA2AC0336 for ; Fri, 25 Nov 2016 16:52:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id nxgMcn1-_nMD for ; Fri, 25 Nov 2016 16:52:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 87A525F4A9 for ; Fri, 25 Nov 2016 16:52:02 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DBB98E048C for ; Fri, 25 Nov 2016 16:52:01 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id DC00C3A0254 for ; Fri, 25 Nov 2016 16:52:01 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1771345 - in /pdfbox/branches/2.0: examples/src/main/java/org/apache/pdfbox/examples/rendering/ pdfbox/src/main/java/org/apache/pdfbox/contentstream/ pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/ Date: Fri, 25 Nov 2016 16:52:01 -0000 To: commits@pdfbox.apache.org From: tilman@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20161125165201.DC00C3A0254@svn01-us-west.apache.org> archived-at: Fri, 25 Nov 2016 16:52:10 -0000 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 ) ) {