Save odt to PDF in Shared Folder with credentials

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
dionisio77
Posts: 3
Joined: Fri Mar 15, 2019 2:54 pm

Save odt to PDF in Shared Folder with credentials

Post by dionisio77 »

I'm working in a macro to save a document as PDF in a specific folder.
I want to change that to save into a Shared Folder with credentials. It will be great to hide the credentials as well.

This is what I do to save:
dim args2(2) as new com.sun.star.beans.PropertyValue

args2(0).Name = "URL"
args2(0).Value = "file:///D:/TEMP/"FileName".pdf"
args2(1).Name = "FilterName"
args2(1).Value = "writer_pdf_Export"

dispatcher.executeDispatch(document, ".uno:ExportDirectToPDF", "", 0, args2())
Openoffice 4.1.2 on Windows 7
Post Reply