Date: prev next · Thread: first prev next last
2023 Archives by date, by thread · List index

From: Dave Howorth <>
Date: Thursday, 28 September 2023 at 1:47 AM
To: <>
Subject: Re: [libreoffice-users] Help: Convert a Multi-Page Text/word file to PNG using LibreOffice 
EXTERNAL: Use caution when clicking on links or opening attachments.

On Tue, 26 Sep 2023 14:46:07 +0000
Madhu Patel <> wrote:

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

Bug link-<>


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.

From: aguador <>
Date: Tuesday, 26 September 2023 at 2:49 PM
To: <>
Subject: Re: [libreoffice-users] Help: Convert a Multi-Page Text/word
file to PNG using LibreOffice API in JAVA EXTERNAL: Use caution when
clicking on links or opening attachments.

El lun, 25-09-2023 a las 04:20 +0000, Madhu Patel escribió:
Hey folks!

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
soffice --convert-to

conversionProperties[0] = new;
conversionProperties[0].Name = "FilterName";
conversionProperties[0].Value ="writer_png_Export";

conversionProperties[1] = new;
conversionProperties[1].Name = "PageRange";
conversionProperties[1].Value ="2-";


This does not really solve the direct conversion problem, but given
that the document is short, why no export pdfs of each page and then
convert them to png?

Aguador, can you please link me the API documentation to convert 5 pages of PDF to PNG, one by one, 
or together in one go.

Given 5 pages of PDF, LibreOffice API converts only first page to PNG. LibreOffice API, do not have 
any Page Exacter or indexer where [i]th page of one file containing 5 pages of PDF can be extracted.


Why are you top-posting a new post instead of responding to what
aguador wrote? Please learn email etiquette (and bug reporting

And why are you ignoring the suggestion, given that is what is already
posted as a workaround in the bug report you linked to? If it won't
work for you, you need to explain why.

Dave, Aguador: CC’ing the person who responded with a textual workaround which seems to be 
inefficient and is non documented in LibreOffice API for further explanation or a link to API 

Dave: Can you please link me to LibreOffice API documentation to convert a multi-page text file to 
single page or multi-page PNG. If it’s not possible, do you think there should be proper 
documentation for the same.

Devs, maintainers: One workaround to convert a multi-page text file to PNG is to extract each page 
text and store into buffer streams (JAVA programming language concept) and then write that text as 
PNG. For a huge file, or a on-the-fly stream of files, say, 10KB to 100KB, this process, would be 
highly inefficient, if not done by LibreOffice API using machines System calls.

Folks: is there any documentation to convert a multi-page text to PNG in LibreOffice API? In other 
words, is there any such API end point for the same.

It would be great, if we can document this behaviour of LibreOffice API of Converting only first 
page of multi-page text file to PNG and NOT converting ALL pages.

Thanks so much!

To unsubscribe e-mail to:
Posting guidelines + more:<>
List archive:<>
Privacy Policy:<>

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.