odftoolkit

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

Setting style on a paragraph using ODF toolkit

霸气de小男生 提交于 2019-12-12 04:49:00
问题 I'm trying to generate a well structured OpenDocument Text file with Apache's ODF tookit. I hope to achieve this by using styles for different portions of data. So I generated a template file that contains all of the styles I wish to use. My next step was to try to use the Simple ODF API to setup my document. Apparently this is the recommended way to do this. For testing purposes I decided to keep things simple. So right now I am just trying to give one paragraph a predefined style. Here's