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 BD588200D5D for ; Wed, 20 Dec 2017 12:22:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BC58C160C15; Wed, 20 Dec 2017 11:22:10 +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 3478E160C0A for ; Wed, 20 Dec 2017 12:22:10 +0100 (CET) Received: (qmail 37149 invoked by uid 500); 20 Dec 2017 11:22:09 -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 37140 invoked by uid 99); 20 Dec 2017 11:22:09 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2017 11:22:09 +0000 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 E187E3A015F for ; Wed, 20 Dec 2017 11:22:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1818778 - /pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java Date: Wed, 20 Dec 2017 11:22:08 -0000 To: commits@pdfbox.apache.org From: tilman@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20171220112208.E187E3A015F@svn01-us-west.apache.org> archived-at: Wed, 20 Dec 2017 11:22:10 -0000 Author: tilman Date: Wed Dec 20 11:22:08 2017 New Revision: 1818778 URL: http://svn.apache.org/viewvc?rev=1818778&view=rev Log: PDFBOX-2852: correct parameter name Modified: pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java Modified: pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java?rev=1818778&r1=1818777&r2=1818778&view=diff ============================================================================== --- pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java (original) +++ pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java Wed Dec 20 11:22:08 2017 @@ -327,7 +327,7 @@ public final class ExtractImages * @param directJPEG if true, force saving JPEG/JPX streams as they are in the PDF file. * @throws IOException When something is wrong with the corresponding file. */ - private void write2file(PDImage pdImage, String filename, boolean directJPEG) throws IOException + private void write2file(PDImage pdImage, String prefix, boolean directJPEG) throws IOException { String suffix = pdImage.getSuffix(); if (suffix == null || "jb2".equals(suffix)) @@ -343,7 +343,7 @@ public final class ExtractImages FileOutputStream out = null; try { - out = new FileOutputStream(filename + "." + suffix); + out = new FileOutputStream(prefix + "." + suffix); BufferedImage image = pdImage.getImage(); if (image != null) {