odt

How generate docx/odt file with math formulas from java

只愿长相守 提交于 2019-12-13 17:20:49
问题 Good day. I must generete docx or odt file with many math formulas inside. i try to find solution in Apashe POI & ODFtoolkit but i am not was able. google doesn't help. ( May be anybody can help me with solution in this task? (any example?) Thanks. 回答1: You could use the docx4j library. Here is the documentation for Getting started. I recommend that you create a template file first, with all the formatting, and as much structure as you can. Then you should put in content-controls where you

Changing backgroundcolor of a table-cell based on its value

ぐ巨炮叔叔 提交于 2019-12-13 00:55:03
问题 I'm using this nice tool pod to generate ODT-Files in my django-application. Is there a way to change the backgroundcolor of a table-cell based on its value? 回答1: Sure, in LibreOffice its easily found on the menu. Format -> Conditional Formatting. 回答2: You could generate a tag for the color in your django application and then have a post process LibreOffic Writer macro going through the tags and change the background color of the cells accordingly. 来源: https://stackoverflow.com/questions

Perl OpenOffice::OODoc - accessing header/footer elements

倖福魔咒の 提交于 2019-12-11 11:10:22
问题 How do you get elements in a header/footer of a odt doc? for example I have: use OpenOffice::OODoc; my $doc = odfDocument(file => 'whatever.odt'); my $t=0; while (my $table = $doc->getTable($t)) { print "Table $t exists\n"; $t++; } When I check the tables they are all from the body. I can't seem to find elements for anything in the header or footer? 回答1: I found sample code here which led me to the answer: #! /usr/local/bin/perl use OpenOffice::OODoc; my $file='asdf.odt'; # odfContainer is a

Oracle Connection in C# - connection string

£可爱£侵袭症+ 提交于 2019-12-11 00:26:37
问题 I'm currently trying to build an application in C# and connecting it to a live db running in Oracle 11g. I have the following connection details Host IP: 10.204.1.3 Port: 1521 DB Name: PROD My source code string connString = "DATA SOURCE=10.204.1.3:1521/PROD;PERSIST SECURITY" + "INFO=True;USER ID=username; PASSWORD=userpass"; OracleConnection conn = new OracleConnection(connString); conn.Open(); I was able to add a connection in Server Explorer with the Connection String used by VS but is

declaring arbitrary variables for pandoc conversion using YAML metadata block

久未见 提交于 2019-12-10 23:38:23
问题 I've only recently discovered Pandoc, so I'm still getting to used to it a lot of its features. It looks like an incredibly useful tool and I'm excited to find out some applications for it. I've been consulting the User's Guide, and while there is a section on what I'd like to know, I can't seem to get the desired output. I'm not sure if I'm reading the entry correctly. Put simply, I have a document in .markdown which acts as a template. From this template, I'd like to produce several other

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

emacs org-odt-export-as-odf-and-open odt outside emacs

依然范特西╮ 提交于 2019-12-10 11:35:43
问题 The intuitive use for the orgmode option to export and view and odt file should be to view it in an libre/open office. However, I've so far had no luck in getting it to work; it always opens as a compressed archive in emacs. By inserting into my .emacs (add-to-list 'org-file-apps '("\\.odt\\'" . "xdg-open %s")) I open them properly when accessing links to files in org files, but it doesn't seem to effect the export-and-view option. I've looked into changing org-odt-export-as-odf-and-open but

how to share odt/doc documents over git

五迷三道 提交于 2019-12-09 15:12:00
问题 the idea is that i want to share documents over git i thought about using Text Document (looks like docx,odt in functionality ) that can be edited with any text editor (not binary). where to find something like this ? any better solution? 回答1: Have you considered using LaTeX instead of doc or odt? This way you can edit the documents with any text editor and get good looking results. Better yet: you have proper diffs between revisions (no matter the SCM you use). If you don't like the idea of

Python — Parsing files (docx, pdf and odt) and converting the content into my data model

假如想象 提交于 2019-12-08 03:51:27
问题 I'm writing an import/export tool for importing docx, pdf, and odt files; in which a book has been written. We already have a tool for the .epub format, and we'd like to extend the functionality beyond that, so users of the site can have more flexibility. So far I've looked at PDFMiner and also found out that docx is just based on the openxml format, so the word/document.xml is essentially the file containing the whole thing, and I can parse it with lxml. The question I have is: I'm hoping to

openoffice: duplicating rows of a table in writer

回眸只為那壹抹淺笑 提交于 2019-12-07 03:12:25
I need to programmatically duplicate rows of a Table in openoffice writer. It's not difficult to add rows via table.Rows.insertByIndex(idx, count) , that adds empty rows and it's easy to add text in that row assigning DataArray to the CellRange . Doing this way you loose control on the style of the cells and specifically if a cell has words with different style (bold/italic) they get flattened to the same face. What I need is to duplicate a row in a way that preserves the style of each word in the cell/row. This is the last step of a Python template system that uses openoffice ( http:/