https://bugs.freedesktop.org/show_bug.cgi?id=45933

             Bug #: 45933
           Summary: Macro to do a PDF Export does not apply filter
                    settings - Calc & Writer
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.4.5 release
          Platform: x86 (IA32)
        OS/Version: Windows (All)
            Status: UNCONFIRMED
          Severity: major
          Priority: medium
         Component: BASIC
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created attachment 56899
  --> https://bugs.freedesktop.org/attachment.cgi?id=56899
Source Text of macro

Within the PDF Export function there is an ability to set required filter 
options such as exporting bookmarks, initial view etc. These can be set 
interactively
in the associated dialog box. They should also be able to be set from a basic 
macro by setting them in an array argument to the calc_pdf_Export function to
override the current default settings.
This does not happen and the previous defaults are used.
I wished to ensure I created a PDF of a workbook with 3 sheets showing 
bookmarks, I ran this interactively setting export bookmarks on dialog box.
I then recorded macro running export 3 times switching off then on then off the 
setting which worked fine. When I rerun the macro the output remains constant -
ignoring the settings.
I have tried this with writer as well, and on both XP and Windows7.
I have also written .net program calling the pdf_export routine and the problem 
is constant.
I believe this is major since one can't automate production of documents to 
ensure required layout is created.

I attach sample listing of the macro. 
To test create a workbook which has 3 sheets, create a PDF from the dialog with 
bookmarks off, rerun with bookmarks on, the output file reflects the change. 

Run the main macro which should create 3 pdf's in c:\work to show bookmarks 
being absent, present and then absent, all 3 have bookmarks.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to