Giuseppe Castagno wrote:
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 :-).
No, I don't think this is intended. Could you please file an issue with
a sample doc and your description ? Please sent it to me, either I or sj
will have to look into this.
Kind regards, pl
--
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
-- Author unknown
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]