Apache OpenOffice (AOO) Bugzilla – Issue 18334
PDF export defect
Last modified: 2013-08-07 15:15:02 UTC
Can not export empty Calc document to PDF Tested on printing and scree optimization --> I/O general error Only crash if done under macro Under UI, just doesn not perform task No problem under Writer Thanks Laurent
Hi Niklas, one4you
PDF export is supposed to behave like printing, and an empty spreadsheet document doesn't print any pages. I don't know if there can be a valid PDF file without any pages. Oliver, see if you can reproduce the crash. Otherwise, I don't see a big problem here.
As discussed with SJ this one belongs to him. The crash could not be reproduced. => Submitter: could you please attach a document with a sample macro?
here is the macro adapt the target filename open a new calc document launch the macro --> you will have an i/O error On RC4 No more crash but macro fails Laurent sub TestexpPDF Dim PDFArgs(0) as new com.sun.star.beans.PropertyValue PDFArgs(0).Name = "FilterName" PDFArgs(0).Value = "calc_pdf_Export" thiscomponent.storeToURL(ConvertToURL ("c:\test.pdf"),PDFArgs()) end sub
Yes, this is a bug in our PDF writer component, the filter should be able to handle empty documents as well.
According to the roadmap of OpenOffice.org 1.1 (http://tools.openoffice.org/releases/Openoffice_org_1_x.html) this issue has been scheduled for 1.1.2.
SJ->TZ: Storing empty calc documents to pdf is not the general case, so I think that this Issue is not a candidate for the product patch. Can you please set the target to OOo 2.0 ?
Hi Oliver, could you please set this task to OOo2.0, if this isn't a general problem. thx
Exporting or printing of empty spreadsheets are not that important. Because of limited resources this task will be retargeted to OOo2.0
SJ->MBA: This issue can't be solved in the pdf export filter alone, because it doesn't matter if the pdf filter is returning true or false, the result is always the same assertion: "Nonexisting Document", "Nonexisting file" in file objserv.cxx line 1196. It seems that the calc document is so empty that it is not even physically available at that time the pdf is exported. Please tell me the workspace on which I should change the pdf filter accepting also empty calc documents.
assigned to mba
This seems to be a bug in our error handling
*** Issue 26820 has been marked as a duplicate of this issue. ***
MAV->SJ: The sfx problem is fixed and the fix is integrated in master, so I send the bug back to you.
accepted.
SJ: this issue has been fixed on cws[pdf01]
reopened
sj->oc: this issue is now ready to be verified on cws[pdf01]
ES->OS: exporting an empty spreadshit to PDF now generates a 1 blank page PDF doc whitout any error. Please set to verified
Please, read "spreadsheet" in the statement above ;)
reset resolution to fixed
verified in internal build cws_pdf01
Found fixed on Master src680m54 using Linux, Solaris and Windows build