Apache OpenOffice (AOO) Bugzilla – Issue 54702
regression: Wrong array indexes in Basic macro when exporting as PDF
Last modified: 2013-08-07 14:42:16 UTC
When recording a macro that exports the current document as a PDF file the following code is generated: dim args1(3) as new com.sun.star.beans.PropertyValue args1(0).Name = "URL" args1(0).Value = "file:///home/us/source/linkbylink/doc/en/linkbylink_en.pdf" args1(1).Name = "FilterName" args1(1).Value = "writer_pdf_Export" args1(4).Name = "FilterData" args1(4).Value = Array(Array("UseLosslessCompression",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("Quality",0,90,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("ReduceImageResolution",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("MaxImageResolution",0,300,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("UseTaggedPDF",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("ExportNotes",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("UseTransitionEffects",0,true,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("FormsType",0,0,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("",0,,com.sun.star.beans.PropertyState.DIRECT_VALUE)) args1(5).Name = "SelectionOnly" args1(5).Value = true This code results in an error when running the macro because the array indexes are obviously wrong. Additionally, when trying to record a macro for PDF file export the "PDF options" dialog windows pops up. This makes the macro more or less useless because user interaction is required in this dialog. The macro should include the handling of this dialog, just like it was handled when the macro was recorded.
HI->JSK: Please investigate.
confirm with pavel janik build m129 on linux
please also have a look at issue 54624
lgodard wrote in IRC: "i guess it is when adding the option filters support (not sure though)"
*** Issue 54624 has been marked as a duplicate of this issue. ***
Confirmed. The index is wrong. Both when writing to pdf directly and when using the pdf settings page. Reassign to OS, setting OOo 2.0.1 as target as i believe this is a regression.
>>setting OOo 2.0.1 as target now correctly set
Looks like a framework issue to me.
.
Reassigned re-open issue and reassign to jsk@openoffice.org
reassign to jsk@openoffice.org
reset resolution to FIXED
. re-open issue and reassign to jsk@openoffice.org
re-assigne to msc => please check this task in CWS fwk25, thx re-open issue and reassign to msc@openoffice.org
reassign to msc@openoffice.org
reopen issue because it's not completly fixed in the cws fwk25
Hi, the wrong index of the array is fixed now, but the option dialog still appears. reassign back to the developer for fixing this again. Bye Marc
This is a different issue (and not in the SFX code). Please don't mix it up with the recorder bug. I recommend to spin off a second issue and assign it to the application developer(s). I also don't see the necessity to fix this for 2.0.1. The recording bug is more general, so it was better fixed in 2.0.1
. re-open issue and reassign to msc@openoffice.org
Hi, > This is a different issue (and not in the SFX code). > Please don't mix it up with the recorder bug. I don't mixed up anything. I read the bugdescription and check if the reported issue is fixed. And no one told me that the dialog is a different issue and not fixed with this one, I assume that the issue is not fixed. So now I know that the dialog is an other issue and only the array is fixed with this issue. verified in cws that the array issue is fixed.
set to verified
*** Issue 57739 has been marked as a duplicate of this issue. ***
Hi, this is fixed in the current master. The current master is available at http://download.openoffice.org/680/index.html I close this issue now. Bye Marc