Giuseppe Castagno wrote:
(2nd try, first one returned back because of errors on mail servers)
Philipp Lohmann - Sun Germany wrote:
I have no idea. I have tried with a master document that has ~20
combined pages and it seems normal. Does this happen with master
documents in general or with one particular doc ?
I tried again and it seems that it's somehow image compression related.
In my document there is a small logo image every page (jpg, around 19k
natively) and by changing the image compression options the export time
changed quite more widely than the way it changes in 2.1.
So, may be in my case it's the jpeg library: I build using the jpeg
library already on my system.
I carried out some more tests with m197. The problem is still there and
it seems application related, not jpeg library I mean.
I tried to check what was going on, so I prepared a writer file with OOo
2.1 inserting 3 images with auto caption, each images on a A4 page,
ending up with a 3 page document. The PDF export time on 2.1 was around
10 sec, perfectly normal.
On a non-debug m197 that took around 45 sec.
In m197 I put a break at: filter/source/pdf/pdfexport.cxx:714
(PDFExport::ImplExportPage page loop) and another at:
filter/source/pdf/pdfexport.cxx:1543 (PDFExport::ImplWriteBitmapEx image
export).
It seems that the images are always converted even if not present in the
page under process, so for 3 images, one per page and 3 pages you get 9
images exports, adding an empty page somewhere you got 12 images
exports, images exported for the empty page as well. All this is
consistent with the export time I measured.
How you end up with a correct PDF I honestly don't know.
I checked only with writer documents, I don't know what happens with
Draw or Impress.
May be this is something being worked on, in this case please ignore
this mail, anyway it was a good exercise for me to catch odd behaviour
and to dig further down into the PDF export mechanism :-).
--
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]