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