From users-return-11906-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Wed Aug 14 16:22:48 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 01C291802C7 for ; Wed, 14 Aug 2019 18:22:47 +0200 (CEST) Received: (qmail 19609 invoked by uid 500); 14 Aug 2019 16:22:47 -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 19596 invoked by uid 99); 14 Aug 2019 16:22:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2019 16:22:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id AB4D81A40C7 for ; Wed, 14 Aug 2019 16:22:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.004 X-Spam-Level: * X-Spam-Status: No, score=1.004 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=disabled Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id tiYn8MkvzpTS for ; Wed, 14 Aug 2019 16:22:44 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=194.25.134.82; helo=mailout05.t-online.de; envelope-from=thausherr@t-online.de; receiver= Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id D06B6BC7B3 for ; Wed, 14 Aug 2019 16:22:43 +0000 (UTC) Received: from fwd29.aul.t-online.de (fwd29.aul.t-online.de [172.20.26.134]) by mailout05.t-online.de (Postfix) with SMTP id C5CCC425518D for ; Wed, 14 Aug 2019 18:22:35 +0200 (CEST) Received: from [192.168.2.111] (GvZUBYZTwh4foS91BMZREw3kkbw3WOnotSA4pwdm3qYnnJv3qvD+IiNzvwDRWoxgC5@[84.151.177.203]) by fwd29.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1hxw2l-1n2BOa0; Wed, 14 Aug 2019 18:22:35 +0200 Subject: Re: Multithreaded PDF Rendering To: users@pdfbox.apache.org References: From: Tilman Hausherr Message-ID: Date: Wed, 14 Aug 2019 18:22:34 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ID: GvZUBYZTwh4foS91BMZREw3kkbw3WOnotSA4pwdm3qYnnJv3qvD+IiNzvwDRWoxgC5 X-TOI-MSGID: 0774fcb6-00fa-43d2-bf8a-a8c6149f48b1 Am 14.08.2019 um 16:36 schrieb STAMPF Lukas: > Hello, > > After seemingly random errors, I stumbled upon https://issues.apache.org/jira/browse/PDFBOX-4559 and wanted to ask: Is there any known workaround to calling PDDocument.load() for each thread creating a PDFRenderer? Sadly no. You could use the experimental branch that does parse on demand, but you'd have to build yourself. https://svn.apache.org/repos/asf/pdfbox/branches/issue4569 Tilman > > I do image manipulation, Barcode detection and OCR and because it's too slow to do it sequentially, I create a thread for each PDPage. Some documents I work with are quite large, and loading the entire document for each page seems like a terrible thing to do. > > Kind regards, > Lukas > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org