You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Tilman Hausherr <TH...@t-online.de> on 2019/08/14 16:22:34 UTC
Re: Multithreaded PDF Rendering
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<https://issues.apache.org/jira/browse/PDFBOX-4559?focusedCommentId=16865733&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16865733> 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
AW: Multithreaded PDF Rendering
Posted by STAMPF Lukas <lu...@bat.at>.
Hi,
Thank you for your answer. I will give it a try.
Kind regards,
Lukas
-----Ursprüngliche Nachricht-----
Von: Tilman Hausherr <TH...@t-online.de>
Gesendet: Mittwoch, 14. August 2019 18:23
An: users@pdfbox.apache.org
Betreff: Re: Multithreaded PDF Rendering
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<https://issues.apache.org/jira/browse/PDFBOX-4559?focusedCommentId=16865733&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16865733> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org