Apache OpenOffice (AOO) Bugzilla – Issue 72852
SRC680_m197: PDF Export takes longer to export image under m197 than OOo 2.1
Last modified: 2007-01-16 14:54:57 UTC
On m197 it takes longer then 2.1 to export to PDF the attached multipaged Writer document containing images. Thread reference on mail list: http://gsl.openoffice.org/servlets/BrowseList?list=dev&by=thread&from=1608363 My system is GNU/Linux Debian testing (etch), a 1.7 GHz notebook. I set Linux as the system but I think this problem can exist in all the operating systems. The file I'm going to attach can be used to carry out the tests. It is composed of 3 images on a 3 pages document file, one image each page. The images where added using the auto caption feature. I tested it with PDF Options at their defaults. If you export it under 2.1 it takes from 7 to 10 sec, under m197 it takes around 20 seconds. If you add an empty page somewhere in the document, the elapsed time in m197 becomes 24, whereas in 2.1 stays the same. Adding more pages the behavior worsen: with 5 empty pages and the 3 with the images under 2.1 the elapsed time is almost the same and in m197 becomes around 45 seconds. I tried to check what was going on, using the attached file as test case. 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. The PDF document size between the two OOo versions are around the same and the PDFs are viewable as well. I checked only with writer documents, I don't know what happens with Draw or Impress.
Created attachment 41632 [details] Writer document to be used to test.
Set a more correct version. I checked with m197 distributed snapshot, the problems is there as well.
target
add CC: aw, this sounds like it may be a side effect of aw024 (integrated in m194)
AW: Should be double to #i72752#, i will tell when a test version is available.
confirmed: 9 times ImplWriteBitmapEx in m197, 12 times with 4 pages confirmed: with aw039 only 3 times called, regardless of 3 or four pages. So this indeed is fixed with issue 72752 *** This issue has been marked as a duplicate of 72752 ***
closing