English 中文(简体)
利用JAVA的LbreOffice AP向全国过渡政府发送多功能文本/密码
原标题: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.

我使用了“Range”过滤器,但它没有发挥作用,它还只给全国人民党一页。

另外,我无法利用LibreOffice 申请为多页的文档制作多个PNGS。

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-";

我在StackOverflow上找到了类似链接,但同时也给PNG第1页。

最佳回答
问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签