Am 07.11.2015 um 16:20 schrieb Maruan Sahyoun:
Am 07.11.2015 um 04:52 schrieb Tilman Hausherr <[email protected]>:

We take 12-18 seconds to display the first page.

I**PDF takes 2 seconds to display the first page.
mhmm - looks like we should do some profiling if the results are the same.

Here's where the time is spent
- 2 seconds for fonts (one time only)
- 2 seconds in ImageIO.read() - to read/decode the JPEG file
- 1 second in PDICCBased.toRGBImage
- 3 1/2 seconds in SampledImageReader.from8bit, which indirectly calls ImageIO.read() again

DrawObject.process calls

        PDXObject xobject = context.getResources().getXObject(objectName);

and

        PDImageXObject image = (PDImageXObject)xobject;
        context.drawImage(image);

and each of these calls ImageIO.read().

It comes down to

        pdImage.createInputStream();

being called twice (and doing something).


Tilman



BR
Maruan

Tilman

Am 05.11.2015 um 19:43 schrieb Tilman Hausherr:
That one is indeed slow to display. The reason is the huge background image. 
This is very inefficient. The company footer should be done with fonts; the 
company header should be done with a shading, or with a smaller image.

Amusingly, the company slogan is "faster in the business". But they're 
cluttering their own storage and the one of their customers with such huge PDFs.

I didn't do any benchmarks, but 1.8 seems also very slow with that one.

Tilman

Am 02.11.2015 um 17:09 schrieb Manfred Pock:
Hello!

Currently we you use a version from pdfbox to render pdf's from the trunk at 
date 2015-03-09. Not really fast, but it will be ok.

 From time to time i try the current trunk version to check any improvements on 
the performance side, but no enhancement, it seems the rendering process is 
getting slower and slower.

For example the pdf at http://cloud.directupload.net/N4t needs on the 
may-version about 5 sec to render der first page, the current version needs at 
least 10 sec.

I have tried it it with different memory settings, no really different. It will 
be great if you can to some improvements on the rendering performance before 
2.0 final version will release.

best regarts, Manfred

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to