Issue 115592 - OOBasic PDF Export Filter does not apply filter settings when exporting
Summary: OOBasic PDF Export Filter does not apply filter settings when exporting
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOO320m18
Hardware: PC Windows XP
: P3 Trivial with 4 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2010-11-15 15:00 UTC by hitec_tsc
Modified: 2017-05-20 10:44 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
PDF Export test macros (5.28 KB, text/plain)
2010-11-15 15:02 UTC, hitec_tsc
no flags Details
Export test 2 (4.72 KB, text/plain)
2010-11-16 09:14 UTC, hitec_tsc
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description hitec_tsc 2010-11-15 15:00:52 UTC
When trying to export an ODT document as PDF with OOBasic (code in attachment)
the filter values don't seem to be applied to the export. Tried storeToURL()
command and a recorded macro which used dispatcher.executeDispatch(document,
".uno:ExportToPDF", "", 0, args1()). None of them seemed to export with the
correct settings given in the arrays. Sometimes it looked like the values from
the 'File -> Export to PDF...' dialogue were used. But then again some values
were ignored (e.g. the Zoom Level was not applied).
Comment 1 hitec_tsc 2010-11-15 15:02:46 UTC
Created attachment 74875 [details]
PDF Export test macros
Comment 2 michael.ruess 2010-11-15 16:06:56 UTC
MRU->OS/PL: could you please have a look at this? Thanks!
Comment 3 philipp.lohmann 2010-11-15 17:03:11 UTC
I can only tell that the "FilterData" doesn't make it to the place where it
would be used (filter/source/pdf/pdffilter.cxx: PDFFilter::implExport). Since
there are no FilterData in the media descriptor, the defaults (out of the
configuration, that is the last user defined options from the PDF export dialog)
are filled in.

@cd,mav: this seems to be more of a framework problem ? Could you please have a
look ?
Comment 4 mikhail.voytenko 2010-11-15 17:30:18 UTC
The filter options are normally set in the dispatch request using the dialog. If
storeToURL() is called directly, the user has to provide the options explicitly
in the MediaDescriptor, otherwise the default options are used. So the second
macro is just a wrong implementation.

The fact that the dispatch request of the recorded macro does not work looks
indeed to be a framework problem. Since pl could reproduce the problem, I am
setting the issue to confirmed.

Setting the target to 3.x for now.
Comment 5 hitec_tsc 2010-11-16 09:13:18 UTC
Since I could not find any valuable information or examples about the FilterData
you can supply with storeToURL() and the pdf filter I am kind of guessing here.
But if the way to do it is basically using the filter data of the recorded macro
for the storeToURL() function, then it does not work either for me (see
attachment 2 [details]). The settings are just not applied.

If this is yet another implementation problem, could you please be so kind and
give me a hint on how to do this correctly? (The lack of examples using this in
basic is really frustrating)
Comment 6 hitec_tsc 2010-11-16 09:14:40 UTC
Created attachment 75017 [details]
Export test 2
Comment 7 mikhail.voytenko 2010-11-16 10:17:43 UTC
Yes, the second test looks good from the first view. Thank you for the
additional test, it allows to localize the problem easier.
Comment 8 Oliver Brinzing 2010-11-16 16:09:43 UTC
.
Comment 9 colin.vaughanxx 2012-02-02 17:03:39 UTC
Have additional tests if required to show problem exists with calc_pdf_export and calling from a vb.net program.
I believe importance should be raised as it is impossible to be sure creation of pdf will correspond to requirements as it just uses the last settings save from the dialog boxes
Comment 10 Marcus 2017-05-20 10:44:56 UTC
Reset the assignee to the default "issues@openoffice.apache.org".