Hi folks,

It would be great if I can get an official response and/or update in the 
documentation, so that we can forward the dependency proceedings internally.

Thanks

From: Madhu Patel <mad...@adobe.com>
Date: Monday, 9 October 2023 at 3:03 PM
To: Dave Howorth <d...@howorth.org.uk>, users@global.libreoffice.org 
<users@global.libreoffice.org>, documentfoundat...@maxired.fr 
<documentfoundat...@maxired.fr>, aguador <waterbeare...@gmx.com>
Subject: Re: [libreoffice-users] Help: Convert a Multi-Page Text/word file to 
PNG using LibreOffice API in JAVA
Hi folks,

It would be great if I can get an official response and/or update in the 
documentation, so that we can forward the dependency proceedings internally.

Thanks

From: Madhu Patel <mad...@adobe.com>
Date: Saturday, 30 September 2023 at 8:50 PM
To: Dave Howorth <d...@howorth.org.uk>, users@global.libreoffice.org 
<users@global.libreoffice.org>, documentfoundat...@maxired.fr 
<documentfoundat...@maxired.fr>, aguador <waterbeare...@gmx.com>
Subject: Re: [libreoffice-users] Help: Convert a Multi-Page Text/word file to 
PNG using LibreOffice API in JAVA
From: Dave Howorth <d...@howorth.org.uk>
Date: Thursday, 28 September 2023 at 1:47 AM
To: users@global.libreoffice.org <users@global.libreoffice.org>
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.


On Tue, 26 Sep 2023 14:46:07 +0000
Madhu Patel <mad...@adobe.com> wrote:

> Can someone please direct me to the documentation about conversion of
> Multi-page of Text file to PNG using LibreOffice API.
>
> Bug link- 
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.documentfoundation.org%2Fshow_bug.cgi%3Fid%3D157425&data=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2I2ntKjnoH5u3ufEGZI0YyOMjeVpGboOuAaVRFEJo90%3D&reserved=0<https://bugs.documentfoundation.org/show_bug.cgi?id=157425>
>
> Ref:-
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FLibreOffice%2FUNOHelper%2Fissues%2F41%23issuecomment-1732949888&data=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aRi2sjMa9E51OIYAGLyu9ntjr0suF%2Fg9ZssPNZzzYWE%3D&reserved=0<https://github.com/LibreOffice/UNOHelper/issues/41#issuecomment-1732949888>
>
>
> 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 <waterbeare...@gmx.com>
> Date: Tuesday, 26 September 2023 at 2:49 PM
> To: users@global.libreoffice.org <users@global.libreoffice.org>
> 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
> > 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-";
> >
> > thanks!
> >
> 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.




>
> Best,
> aguador

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

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 endpoint.

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!
Madhu
https://www.linkedin.com/in/madhu-patel/





--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.libreoffice.org%2Fget-help%2Fmailing-lists%2Fhow-to-unsubscribe%2F&data=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1AgXHX9mFfzSiuw5rsWXmAFGUUFdUVAOHel2RTxQK6A%3D&reserved=0<https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/>
Posting guidelines + more: 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.documentfoundation.org%2FNetiquette&data=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BIFJO4gy%2Fny8PyL3zorc63E3lfSn9H01%2BQK%2BoAYpPJM%3D&reserved=0<https://wiki.documentfoundation.org/Netiquette>
List archive: 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistarchives.libreoffice.org%2Fglobal%2Fusers%2F&data=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BW3zGWXLDV4xZ9AqY5%2F3UYoeBaehvAoXQS8L%2F%2F5vOII%3D&reserved=0<https://listarchives.libreoffice.org/global/users/>
Privacy Policy: 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.documentfoundation.org%2Fprivacy&data=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QyIGB3jgAj1Zs9ObSrr4L2v6%2FJOcHjgR3Y8%2FsnbHHNU%3D&reserved=0<https://www.documentfoundation.org/privacy>

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