GithubHelp home page GithubHelp logo

libreoffice / unohelper Goto Github PK

View Code? Open in Web Editor NEW
13.0 8.0 11.0 2.86 MB

Simple, no overhead Java wrapper for the LibreOffice UNO API

License: European Union Public License 1.1

Java 100.00%
java libreoffice libreoffice-api uno-api

unohelper's Introduction

UNOHelper

UNOHelper offers helper functions for working with the LibreOffice UNO API.

It wraps commonly used functions from the UNO API for easier use.

Build

The following applications have to be installed to compile UNOHelper:

First fetch the sources:

git clone https://github.com/LibreOffice/UNOHelper.git

Then build the package:

mvn clean package

To create a single jar (to be used in non-Maven projects), run this command instead:

mvn clean assembly:single

Release

First, make sure that Javadoc has no errors (warnings are ok though):

mvn javadoc:javadoc

Then do a dry run:

mvn -Dresume=false -DdryRun=true release:prepare

Now do the release. Caution: This creates two commits & a tag and pushes them directly to Git!)

mvn -Dresume=false release:prepare release:perform

unohelper's People

Contributors

bjoernranft avatar dependabot[bot] avatar elcodero avatar eymux avatar sikelerd avatar smehrbrodt avatar thorstenb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unohelper's Issues

Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA

How to convert a Multi-Page Text file to PNG, for example:- I have a Text document of 5 pages and I want to convert that into PNG. By default, it's giving a PNG of only 1st page. How to get the PNG file for ith page using LibreOffice.

I used the PageRange filter like this, but it does not work, it's also giving the PNG only for 1st page.

Also, I'm not able to generate multiple PNGs for multi-page word files using the LibreOffice Application

CLI:-

soffice --convert-to 'png:writer_png_Export:{"PageRange":{"type":"string","value":"2-"}}' test.odt

JAVA:-

conversionProperties[0] = new com.sun.star.beans.PropertyValue();
conversionProperties[0].Name = "FilterName";
conversionProperties[0].Value ="writer_png_Export";

conversionProperties[1] = new com.sun.star.beans.PropertyValue();
conversionProperties[1].Name = "PageRange";
conversionProperties[1].Value ="2-";

cc: @fitojb @Gelma @sikelerd @smehrbrodt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.