https://bugs.documentfoundation.org/show_bug.cgi?id=150600

--- Comment #3 from Mike Kaganski <[email protected]> ---
For comparison, this works fine:


function PropertyValue(n, v)
  dim result as new com.sun.star.beans.PropertyValue
  result.Name = n
  result.Value = v
  PropertyValue = result
end function

sub Main2
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
args1 = Array(PropertyValue("URL", "file:///D:/150.pdf"),_
              PropertyValue("FilterName", "writer_pdf_Export"),_
              PropertyValue("FilterData",
Array(PropertyValue("UseLosslessCompression", false),_
                                                PropertyValue("Quality", 87,),_
                                               
PropertyValue("ReduceImageResolution", true),_
                                               
PropertyValue("MaxImageResolution", 150),_
                                                PropertyValue("UseTaggedPDF",
false),_
                                               
PropertyValue("SelectPdfVersion", 0),_
                                               
PropertyValue("PDFUACompliance", false),_
                                                PropertyValue("ExportNotes",
false),_
                                               
PropertyValue("ViewPDFAfterExport", true),_
                                               
PropertyValue("ExportBookmarks", false),_
                                               
PropertyValue("OpenBookmarkLevels", -1),_
                                               
PropertyValue("UseTransitionEffects", true),_
                                               
PropertyValue("IsSkipEmptyPages", true),_
                                               
PropertyValue("ExportPlaceholders", false),_
                                                PropertyValue("IsAddStream",
false),_
                                               
PropertyValue("ExportFormFields", false),_
                                                PropertyValue("FormsType", 0),_
                                               
PropertyValue("AllowDuplicateFieldNames", false),_
                                               
PropertyValue("HideViewerToolbar", false),_
                                               
PropertyValue("HideViewerMenubar", false),_
                                               
PropertyValue("HideViewerWindowControls", false),_
                                               
PropertyValue("ResizeWindowToInitialPage", false),_
                                                PropertyValue("CenterWindow",
false),_
                                               
PropertyValue("OpenInFullScreenMode", false),_
                                               
PropertyValue("DisplayPDFDocumentTitle", true),_
                                                PropertyValue("InitialView",
0),_
                                                PropertyValue("Magnification",
1),_
                                                PropertyValue("Zoom", 100),_
                                                PropertyValue("PageLayout",
2),_
                                               
PropertyValue("FirstPageOnLeft", false),_
                                                PropertyValue("InitialPage",
1),_
                                                PropertyValue("Printing", 2),_
                                                PropertyValue("Changes", 4),_
                                               
PropertyValue("EnableCopyingOfContent", true),_
                                               
PropertyValue("EnableTextAccessForAccessibilityTools", true),_
                                               
PropertyValue("ExportLinksRelativeFsys", true),_
                                               
PropertyValue("PDFViewSelection", 0),_
                                               
PropertyValue("ConvertOOoTargetToPDFTarget", false),_
                                               
PropertyValue("ExportBookmarksToPDFDestination", false),_
                                                PropertyValue("SignPDF",
false),_
                                               
PropertyValue("_OkButtonString", ""),_
                                                PropertyValue("Watermark",
""),_
                                                PropertyValue("EncryptFile",
false),_
                                               
PropertyValue("PreparedPasswords", Empty),_
                                               
PropertyValue("RestrictPermissions", false),_
                                               
PropertyValue("PreparedPermissionPassword", Array()),_
                                               
PropertyValue("SignatureLocation", ""),_
                                               
PropertyValue("SignatureReason", ""),_
                                               
PropertyValue("SignatureContactInfo", ""),_
                                               
PropertyValue("SignaturePassword", ""),_
                                               
PropertyValue("SignatureCertificate", Empty),_
                                                PropertyValue("SignatureTSA",
""),_
                                               
PropertyValue("UseReferenceXObject", false))))

dispatcher.executeDispatch(document, ".uno:ExportToPDF", "", 0, args1())
end sub

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to