odf

Does anyone use AODL in a real application?

人盡茶涼 提交于 2020-01-23 09:55:50
问题 We are currently using the Excel interop API in .NET to generate simple spreadsheet documents from a template. So we load the template first, insert some rows, fill in some data (dates, text, and numbers), and make Excel visible so that the user can print or save the document we just generated. But I'd like to get rid of the Excel dependency, and switch to the ODF format as well. Googling suggests AODL (C# libs for generating ODF docs) as the most obvious solution. But their last release is 1

How can the Page Size, Page Orientation, and Page Margins of an ods Spreadsheet Be Set Using ODFDOM?

安稳与你 提交于 2019-12-24 02:16:40
问题 The Apache Incubation Project ODFDOM allows users to programmatically read and create various open document format files, including spreadsheets. I am trying to set various print options for a spreadsheet I am creating, using their re-vamped "Simple API", however it does not appear they have yet exposed an easy way to modify document properties such as page margin, page size (height/width), and page orientation (landscape/portrait). I need to get from a SpreadsheetDocument to something that

How to identify an ODF file?

大憨熊 提交于 2019-12-23 23:29:40
问题 I need to be able to identify that a given file is an ODF file based on the contents of the file, and not on the file's extension. ODF files are really a collection of XML files in a zip container, which means that I cannot use the file's magic number as it will just indicate that it is a zip file. So what I'm really asking is are there any files that are required to be present in an ODF container? If so the presence of that file in a zip container indicates that it is likely to be an ODF

TCPDF ERROR: Unable to find object (8, 0) at expected location

妖精的绣舞 提交于 2019-12-18 17:05:22
问题 I am getting an error while deleting a page from an scanned pdf using TCPDF & FPDI. Other pdf are working fine. ERROR: Unable to find object (8, 0) at expected location 回答1: Your file might be corrupted. Some scanners will produce corrupted PDF's, But nothing to worry there. You can recreate pdf if you are using linux with shell_exec function pdf_recreate($f) { rename($f,str_replace('.pdf','_.pdf',$f)); $fileArray=array(str_replace('.pdf','_.pdf',$f)); $outputName=$f; $cmd = "gs -q -dNOPAUSE

Webodf display odf from bytes

浪尽此生 提交于 2019-12-13 18:20:01
问题 Is it possible for webodf to read a odf / odt file from its bytes? instead of an url? Currently using: var odfelement = document.getElementById("odf"); var odfcanvas = new odf.OdfCanvas(odfelement); odfcanvas.load("url/to/file.odt"); and would like something like odfcanvas.loadFromBytes(bytes); 回答1: Yes, It is possible to read an odt file from byte Array and then load it in webodf editor. To do so ,you will have to use javascript blob objects to construct a file from a byte array(desired file

How do I override ODF Root RSID using the API

一世执手 提交于 2019-12-13 03:03:09
问题 I am generating ODT documents using the openoffice/libreoffice API, and I want the files to come out to be 100% identical every time (by MD5 comparison). At this point I can unzip the two files generated at different times and check all the files within the zip file and they all match 100%, except for the Settings.xml which has two unique differences (both RSID related). <config:config-item config:name="Rsid" config:type="int">1835643</config:config-item> and <config:config-item config:name=

Converting my python script from lxml to xml.etree

元气小坏坏 提交于 2019-12-13 00:39:01
问题 I am trying to convert my script (https://github.com/fletchermoore/n2c2) to use the default package xml.etree instead of lxml. This was an oversight on my part, but now I am realizing it would be impossible to get my target audience to set up lxml on their macs. I think that most of the code should just work by switching out the import, but when I tried it I found out that xml.etree handles namespaces differently (which I do not understand). Specifically, what would be the easiest way to

How to grab text from .odt file

别来无恙 提交于 2019-12-10 13:10:34
问题 I need to grab all text from odf files (open document format) in C#. I found AODL library, and installed it. I visited AODL's page https://wiki.openoffice.org to find examples on how to do the task I need, but they were all unsuccessful. For a reason that I can't imagine, all examples build new document, and there's no example in how to load a document and grab all the text (something like OpenXML). Do you guys know any reference that can guide me? My "try" var doc = new AODL.Document

C++ Library to render ODF documents?

你。 提交于 2019-12-04 16:46:45
问题 I am unable to find any open source libraries to render ODF documents using C++. I found ODKit suporting Java and AODL for .NET C#. Does any one have any idea or provide me any pointers. 回答1: I found a Qt source to parse ODF. Qt already has built in ODF writer. 回答2: KOffice supports ODF and is written in C++. I suspect they may have solved whatever it is you are trying to solve. http://www.koffice.org 回答3: It may not be the most elegant solution but OpenOffice itself is capable of rendering

C++ Library to render ODF documents?

岁酱吖の 提交于 2019-12-03 10:39:15
I am unable to find any open source libraries to render ODF documents using C++. I found ODKit suporting Java and AODL for .NET C#. Does any one have any idea or provide me any pointers. I found a Qt source to parse ODF. Qt already has built in ODF writer. KOffice supports ODF and is written in C++. I suspect they may have solved whatever it is you are trying to solve. http://www.koffice.org It may not be the most elegant solution but OpenOffice itself is capable of rendering and the OOoSDK can be used from C++ as seen here for writer and here for spreadsheet . There is none. You're better