I am having Libreoffice7 installed with custom python 3.8.6 in Windows. I want to use PyUNO to navigate the view cursor to a specific position based on the X, Y coordinates(of instance com.sun.star.awt.Point) in a writer document. Is there a way by which this can be achieved? I am unable to find any resource or documentation that helps. Please let me know if any other info or clarifications needed. Thank you in advance.
Placing cursor in the document for a given position using PyUNO
321 Views Asked by Tcoder At
1
There are 1 best solutions below
Related Questions in LIBREOFFICE
- LibreOffice 4.4.3 - Accessing Documents with jodconverter on different server
- LibreOffice - How to create a file dialog via python macro?
- Space before caption
- libreoffice output filter names
- how export to pdf with embeded fonts in centos soffice command line?
- Best ways of getting tables from R into Libre Office Writer?
- How to automatically calculate the SUS Score for a given spreadsheet in LibreOffice Calc?
- Preview MSOffice files in .NET WPF app via OpenOffice/LibreOffice
- How can I update LibreOffice Calc cells in real-time from a MySQL database?
- Optimizing formula copying in PyUno
- Making a number end to the nearest 7 (no decimals)
- Can I use OR in LibreOffice calc IF statement?
- Lack of access to all functions in exposed interfaces?
- Quickest way to apply a formula to an entire column?
- In Python: Get path and name of file that is open in LibreOffice and Evince
Related Questions in OPENOFFICE.ORG
- LibreOffice - How to create a file dialog via python macro?
- couldn't connect to socket (WSANOTINITIALISED, WSAStartup() has not been called) error while running program
- Not able to execute a class with external class path
- DDEML connection fails after large number of calls
- Preview MSOffice files in .NET WPF app via OpenOffice/LibreOffice
- cast exception while using OpenOffice SDK to create a DataSource
- Lack of access to all functions in exposed interfaces?
- OpenOffice convert doc to pdf with JAVA
- Where to find latest OpenOffice dictionaries?
- Netbeans OpenOffice Plugin throw error
- Installation of openoffice 4.0 for open erp
- Spreadsheet Help: Adding Multiple Rows With "If" Function
- XStorable storeToURL and WebDav
- How to debug crashing openoffice with pyuno
- Openoffice pipe (unix domain socket) somewhere other than /tmp?
Related Questions in OPENOFFICE-WRITER
- How to merge multiple DOC files into one with Python/console?
- Access to com.sun.star.text.textfield.Annotation in {Libre,Open}Office Writer using Java
- XStorable storeToURL and WebDav
- Replicate the look of an HTML style table in MS Word
- How to insert image in OpenOffice Document using Delphi
- export images and graphics in doc files to images in openoffice
- How to add/insert a xml node into text
- How do I remove all comments from the active writer document
- How to update the "table of contents" in an ODT document with Delphi and the com interface
- why can I access text properties through cursor object in OpenOffice?
- Is there a way to programmatically construct an Open Office document from two existing documents?
- Using a C# winform with Access to fill a template and convert it to PDF
- Openoffice merged cells splits when uploaded on google drive
- How to change position of text shape in OpenOffice API for Java?
- Margin Openoffice python
Related Questions in PYUNO
- Optimizing formula copying in PyUno
- Sorting cell range in a calc document with pyuno
- How to debug crashing openoffice with pyuno
- Openoffice pipe (unix domain socket) somewhere other than /tmp?
- Using pyuno on MacOS to do file conversions
- OpenOffice pyuno "select all"
- use uno (openoffice api) to open spreadsheet *without* recalculation
- start openoffice process with python to use with pyuno using subprocess
- How to save a document edited from PyUNO?
- Python 2.7 with pyuno
- Regular expressions search in LibreOffice writer documents using pyuno extremely greedy
- Getting thumbnails of arbitrary file types
- Openoffice3.1 pyuno confusing errors
- Updating MS Word (or Open Office) bookmarks with Python
- Alternative to OpenOffice for converting PowerPoint to PDF
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Precise positioning using points and pixels is difficult or impossible with the UNO API. The numbers seem to be unpredictable, for example https://ask.libreoffice.org/t/what-is-the-base-for-cursor-x-position-in-basic/71827.
Instead, move the cursor to a character or paragraph or object, for example with goRight().
To investigate point positioning further, take a look at this discussion on positioning a dialog in Calc: https://ask.libreoffice.org/t/dynamically-position-a-dialog/67289/39