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 answers
Related Questions in LIBREOFFICE
- How to switch encoding of LibreOffice strings in Java UNO API?
- Is there a way to automatically export OpenOffice/LibreOffice drawings to bitmaps, with options?
- LibreOffice. Getting OutOfMemoryException while execute Conversion to PDF not instantly, but after long time of work
- Calculate the average of a filtered list/column with a condition (libre office calc)
- LibreOffice converts files from RTF to PDF to plain RTF text
- How to turn off LibreOffice API SDK Reference Browser?
- I compiled LibreOffice on Windows using Cygwin, but after running 'C:/cygwin64/opt/lo/bin/make', I encountered numerous errors
- How do I this shell (.zsh) script to put files into nested folders?
- win32gui SendMessage not working correctly in libreoffice
- Is there a way to program macros to finely tune animations in LibreOffice Impress?
- problem invoking msgbox after closing one document in python. object has no attribute 'getCurrentController'
- Add Image to Libre Office Writer with VB.Net
- How do I get content of a text cursor in Libreoffice Writer?
- How to convert excel to PDF using nodeJS? Getting issues using libreoffice-convert
- Libreoffice classes not available in java code
Related Questions in OPENOFFICE.ORG
- Is there a way to automatically export OpenOffice/LibreOffice drawings to bitmaps, with options?
- How generate a sequence of dates in open office
- Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA
- Error While Loading Document using OpenOffice SDK in JAVA
- How to convert text to table rows in the OpenOffice?
- How can I edit document like doc,PDF in my browser?
- Problem with Opening ODS File using Java Code on VMware Virtual Machine
- How to KEEP only first occurence data in Libre Office Calc (with two column filter)
- Table containing the count of multiple columns?
- Error trying to use LibreOffice COM library `com.sun.star.ServiceManager': Access denied
- Need a macro in opencalc
- Code or command-line for converting ODG (open document graphic) to PNG, JPEG, etc? (Windows and/or macOS)
- Connecting to LO from python IDE with PyUNO for debugging
- Angular frontend Spring backend file download not working or corrupt
- How to sign a microsoft office or openOffice certificate with a p12 or pfx certificate
Related Questions in OPENOFFICE-WRITER
- Macro OpenOffice Writer: next record
- Java Odftoolkit: Copy header (with its style, tables etc) from an OpenOffice writer doc to another with ODFDOM
- OpenOffice disable track changes via UNO (Java) interface
- How to write macro for OpenOffice Writer to remove all index markerkers
- Broken hyperlinks when converting .docx files to PDF via LibreOffice
- LibreOffice Writer, how to copy style from one document to another?
- XDocReport: Issue by filling tables with Freemarker in ODT-file
- Placing cursor in the document for a given position using PyUNO
- How do I resolve this error in saving a new odt after a regex?
- Setting a OpenOffice::OODoc to Landscape (Perl)
- HTML table does not display correctly in Open Office Writer
- Is there a way to prevent MS docx document editing in OpenOffice?
- how to select header section in OpenOffice ODT document with TinyButStrong TBS
- Is there a Word processing software built for inline annotations, references and line count?
- How to select all in Open Office writer
Related Questions in PYUNO
- PyUno and calc/spreadsheet: how to export single sheet to csv?
- Python script to update linked xlsx files through libre calc
- Setting up a python environment to control libre calc
- Segmentation fault opening Calc spreadsheet
- Connecting to LO from python IDE with PyUNO for debugging
- What's the difference between PyUno and PyUno Bridge?
- Placing cursor in the document for a given position using PyUNO
- LibreOffice Tree with columns
- Cursor in python macro for LibreOffice Calc doesn't move
- Regular expressions search in LibreOffice writer documents using pyuno extremely greedy
- Why does desktop.getCurrentComponent() return None in PyUNO?
- How to change the LineWidth of a cell border using PyUNO in LibreOffice Calc?
- Recasting a STRING into a VALUE in LibreOffice Calc
- pyuno missing symbol in libreoffice and not working with python2
- How to convert a PDF file with NodeJS + Unoconv
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?
Popular Tags
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)
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