Hi folks,

Can someone please direct me to the documentation about conversion of 
Multi-page of Text file to PNG using LibreOffice API,

Bug link- https://bugs.documentfoundation.org/show_bug.cgi?id=157425

Ref:- https://github.com/LibreOffice/UNOHelper/issues/41#issuecomment-1732949888

Ref: 
https://stackoverflow.com/questions/77163622/convert-a-multi-page-text-word-file-to-png-using-libreoffice-api-in-java

If it is not possible to convert a Multi-page text file to PNG using 
LibreOffice, where it is mentioned in the documentation.  Should I send a PR 
for this, if it is not.

Thanks for your time.
----------

Re-writing, the question again:-
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-";


From: Eike Rathke <er...@redhat.com>
Date: Tuesday, 26 September 2023 at 12:54 AM
To: Madhu Patel <mad...@adobe.com>
Cc: caol...@gmail.com <caol...@gmail.com>, vmik...@collabora.com 
<vmik...@collabora.com>, markus.mohrh...@googlemail.com 
<markus.mohrh...@googlemail.com>, sberg...@redhat.com <sberg...@redhat.com>
Subject: Re: Convert a Multi-Page Text/word file to PNG using LibreOffice API 
in JAVA
EXTERNAL: Use caution when clicking on links or opening attachments.
----------------




-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Reply via email to