From users-return-11410-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Thu Jan 17 08:49:17 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D8A5318063F for ; Thu, 17 Jan 2019 08:49:16 +0100 (CET) Received: (qmail 80226 invoked by uid 500); 17 Jan 2019 07:49:15 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 80209 invoked by uid 99); 17 Jan 2019 07:49:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2019 07:49:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 86020CC3CA for ; Thu, 17 Jan 2019 07:49:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1 X-Spam-Level: * X-Spam-Status: No, score=1 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MidYWHHKZ_2G for ; Thu, 17 Jan 2019 07:49:12 +0000 (UTC) Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2CA3860F65 for ; Thu, 17 Jan 2019 07:41:25 +0000 (UTC) Received: from fwd37.aul.t-online.de (fwd37.aul.t-online.de [172.20.27.137]) by mailout08.t-online.de (Postfix) with SMTP id 54704418E09C for ; Thu, 17 Jan 2019 08:41:19 +0100 (CET) Received: from [192.168.2.108] (SgducvZZghmdHCEuyjPtheNyYFAt-CJwqEFGlI6gwSTHvPbAol9IzoQwYcsg9+0gNz@[87.173.192.39]) by fwd37.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1gk2If-2cg4sC0; Thu, 17 Jan 2019 08:41:17 +0100 Subject: Re: How to Use Optimizes Mesource Mode at org.apache.pdfbox.multipdf.PDFMergerUtility To: users@pdfbox.apache.org References: From: Tilman Hausherr Message-ID: <0d52bbdd-5cdb-0ffb-682c-08183ebed657@t-online.de> Date: Thu, 17 Jan 2019 08:41:16 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ID: SgducvZZghmdHCEuyjPtheNyYFAt-CJwqEFGlI6gwSTHvPbAol9IzoQwYcsg9+0gNz X-TOI-MSGID: d9a55f55-3091-45e1-8347-52c405908580 Am 17.01.2019 um 07:30 schrieb Agus Ramdan: > Dear All, > > I has been read documentation (java doc see below) about Optimizes > Mesource Mode. > ----- > The mode to use when merging documents: > PDFMergerUtility.DocumentMergeMode.OPTIMIZE_RESOURCES_MODE Optimizes > resource handling such as closing documents early. > ----- > > But I do not have idea for use it? The use case is if you want to save memory. For example if you merge many files, or if you merge several huge files. See the discussion here: https://issues.apache.org/jira/browse/PDFBOX-4188 https://issues.apache.org/jira/browse/PDFBOX-4182 If you don't need to save memory then use the classic mode, which is the default. Tilman > > Regards, > Agus Ramdan > > ref: > https://pdfbox.apache.org/docs/2.0.13/javadocs/org/apache/pdfbox/multipdf/PDFMergerUtility.html > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org