Re: Performance issue with PDFBox 2.0.8

2018-04-17 Thread Tilman Hausherr
//first try without setting property: 3779 milliseconds      //second try with the property set: 3852 milliseconds //third try with subsamplingAllowed: 3362 milliseconds } *** From: Tilman Hausherr Sent: Mo

Re: Performance issue with PDFBox 2.0.8

2018-04-16 Thread Tilman Hausherr
: 3779 milliseconds //second try with the property set: 3852 milliseconds //third try with subsamplingAllowed: 3362 milliseconds } *** From: Tilman Hausherr Sent: Monday, April 16, 2018 10:55 AM To: users@pdfbox.apache.org Subj

Re: Performance issue with PDFBox 2.0.8

2018-04-16 Thread Arthur Wang
" milliseconds"); }//else //first try without setting property: 3779 milliseconds //second try with the property set: 3852 milliseconds //third try with subsamplingAllowed: 3362 milliseconds } *** From: Tilman Hausherr Sent: Monday, April 16, 2018 10:55

Re: Performance issue with PDFBox 2.0.8

2018-04-16 Thread Tilman Hausherr
Sent:* Monday, April 16, 2018 8:57 AM *To:* users@pdfbox.apache.org *Subject:* Re: Performance issue with PDFBox 2.0.8 Please - retry with the current version 2.0.9 - share your file for a profiler analysis - as said by Itai (who implemented it) try enabling subsampling in PDFRenderer (read the javad

Re: Performance issue with PDFBox 2.0.8

2018-04-16 Thread Arthur Wang
___ From: Tilman Hausherr Sent: Monday, April 16, 2018 8:57 AM To: users@pdfbox.apache.org Subject: Re: Performance issue with PDFBox 2.0.8 Please - retry with the current version 2.0.9 - share your file for a profiler analysis - as said by Itai (who implemented it) try enabling subsamplin

Re: Performance issue with PDFBox 2.0.8

2018-04-16 Thread Tilman Hausherr
Please - retry with the current version 2.0.9 - share your file for a profiler analysis - as said by Itai (who implemented it) try enabling subsampling in PDFRenderer (read the javadoc first). Compare the results and decide whether the quality is OK for you. - set the energy settings of your com

Re: Performance issue with PDFBox 2.0.8

2018-04-16 Thread Itai
If the files in question include very large JPEG or JBIG images, and if you are rendering at a relatively low DPI, allowing subsampling may help ( https://issues.apache.org/jira/browse/PDFBOX-4137), but you will have to upgrade to 2.0.9. In my use-case it increased speed by an order of magnitude, b

Re: Performance issue with PDFBox 2.0.8

2018-04-16 Thread Maruan Sahyoun
Hi, > Am 16.04.2018 um 09:21 schrieb Arthur Wang : > > Hi, everyone, > > > > I am using PDFBox 2.0.8 and java 8 running in tomcat 8 for production to > convert pdf into image for display. it works very well for pdf file size less > than 5 M, it takes about 3800 milliseconds. however, it slow