I'm just starting to develop extensions to LibreOffice suite and I'd like to get the binary of the current active document. In fact I'd like to do something similar to an ajax request where I'd sent this document. Any ideia?
Asked
Active
Viewed 98 times
0
-
"The current active document" is XML, not binary. – ngulam Aug 25 '15 at 21:43
1 Answers
0
As ngulam stated, the document proper is XML.
The raw file on disk is stored in a ZIP container. You can find the URL to this disk from the document and then access this ZIP container directly. I do not believe that it is possible, however, to see the document as a binary blob (or even the XML as stored in the ZIP container) using the API and accessing what has been loaded into memory.
Can you clarify your question. For example, are you attempting to access binary portions such as an inserted graphic into a document?

Andrew
- 816
- 7
- 15
-
I had plans to encode my document in 64enconding string so that I could send it through ajax... – Pastel Belem Oct 29 '15 at 21:47