Macros/Python Guide/Documents

Return to Index

Document management within operating system manager
IMPORTANT For any argument path in methods of pyUNO objects, always use path in format URL, used function. Windows users note: path segments are separated by a slash (/).

CAUTION In the following examples, substitute USER with your real username.

=== New blank document ===

For other document types, use in  argument:
 * Impress:
 * Draw:
 * Math:

CAUTION Copy or import function  from Useful functions

* For a new Base document, use:

=== Open ===

IMPORTANT Remember, always use file path in URL format. * Open with arguments

* Others commons arguments

=== Iterate over all open documents ===

=== Get current document ===

=== Export to PDF ===

Look more options for exporting in PDF export filter data

* Export with other options
 * Export Calc document as PDF

==Document management within LibreOffice==

=== Get the document type ===

=== Set focus for current document ===

Set zoom factor for a document
=== Get current selection ===

=== Management in status bar ===

Now, try this.
 * Try this code
 * You cannot view anything because execution is blocked.

Return to Index