Re: [libreoffice-users] Help: Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA

2023-10-30 Thread Dave Howorth
On Sun, 29 Oct 2023 17:17:48 +
Madhu Patel  wrote:

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

Please don't send individual copies of any replies to me. I read the
list. And please don't top post. And why have you stillnot explained
what was wrong with the previous suggested workaround?

If you want professional support, you might like to look at
https://www.libreoffice.org/get-help/professional-support/

> Thanks
> 
> From: Madhu Patel 
> Date: Monday, 9 October 2023 at 3:03 PM
> To: Dave Howorth , users@global.libreoffice.org
> , documentfoundat...@maxired.fr
> , aguador 
> 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 
> Date: Saturday, 30 September 2023 at 8:50 PM
> To: Dave Howorth , users@global.libreoffice.org
> , documentfoundat...@maxired.fr
> , aguador 
> Subject: Re: [libreoffice-users] Help: Convert a Multi-Page Text/word
> file to PNG using LibreOffice API in JAVA From: Dave Howorth
>  Date: Thursday, 28 September 2023 at 1:47 AM
> To: 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 +
> 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-
> > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.documentfoundation.org%2Fshow_bug.cgi%3Fid%3D157425=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=2I2ntKjnoH5u3ufEGZI0YyOMjeVpGboOuAaVRFEJo90%3D=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=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=aRi2sjMa9E51OIYAGLyu9ntjr0suF%2Fg9ZssPNZzzYWE%3D=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 
> > Date: Tuesday, 26 September 2023 at 2:49 PM
> > To: 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 +, 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-";
> > >

Re: [libreoffice-users] Help: Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA

2023-10-30 Thread Madhu Patel
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 
Date: Monday, 9 October 2023 at 3:03 PM
To: Dave Howorth , users@global.libreoffice.org 
, documentfoundat...@maxired.fr 
, aguador 
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 
Date: Saturday, 30 September 2023 at 8:50 PM
To: Dave Howorth , users@global.libreoffice.org 
, documentfoundat...@maxired.fr 
, aguador 
Subject: Re: [libreoffice-users] Help: Convert a Multi-Page Text/word file to 
PNG using LibreOffice API in JAVA
From: Dave Howorth 
Date: Thursday, 28 September 2023 at 1:47 AM
To: 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 +
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- 
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.documentfoundation.org%2Fshow_bug.cgi%3Fid%3D157425=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=2I2ntKjnoH5u3ufEGZI0YyOMjeVpGboOuAaVRFEJo90%3D=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=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=aRi2sjMa9E51OIYAGLyu9ntjr0suF%2Fg9ZssPNZzzYWE%3D=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 
> Date: Tuesday, 26 September 2023 at 2:49 PM
> To: 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 +, 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 work

Re: [libreoffice-users] Help: Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA

2023-09-30 Thread Madhu Patel
From: Dave Howorth 
Date: Thursday, 28 September 2023 at 1:47 AM
To: 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 +
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- 
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.documentfoundation.org%2Fshow_bug.cgi%3Fid%3D157425=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=2I2ntKjnoH5u3ufEGZI0YyOMjeVpGboOuAaVRFEJo90%3D=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=05%7C01%7Cmadhup%40adobe.com%7C615113b640074ca7e1f908dbbf96ba8f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638314426344958861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=aRi2sjMa9E51OIYAGLyu9ntjr0suF%2Fg9ZssPNZzzYWE%3D=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 
> Date: Tuesday, 26 September 2023 at 2:49 PM
> To: 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 +, 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 Syste

Re: [libreoffice-users] Help: Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA

2023-09-27 Thread Dave Howorth
On Tue, 26 Sep 2023 14:46:07 +
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- https://bugs.documentfoundation.org/show_bug.cgi?id=157425
> 
> Ref:-
> 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 
> Date: Tuesday, 26 September 2023 at 2:49 PM
> To: 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 +, 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?
> 
> 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.

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


Re: [libreoffice-users] Help: Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA

2023-09-26 Thread Madhu Patel
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


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: 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 +, 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?

Best,
aguador



--
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=05%7C01%7Cmadhup%40adobe.com%7C6c3c47f211c04cc0f2a308dbbe71bebe%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638313167966025522%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=AnsTWngAlUyYeK%2BhKCz3WtwY96oL2%2BcCi%2FqxwJINSEA%3D=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=05%7C01%7Cmadhup%40adobe.com%7C6c3c47f211c04cc0f2a308dbbe71bebe%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638313167966025522%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=lNVKvaXVE%2FozM0xzPnAxB9DD8%2BccfQcrsFKbOhHGmfw%3D=0<https://wiki.documentfoundation.org/Netiquette>
List archive: 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistarchives.libreoffice.org%2Fglobal%2Fusers%2F=05%7C01%7Cmadhup%40adobe.com%7C6c3c47f211c04cc0f2a308dbbe71bebe%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638313167966025522%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=a9bt9MndrW8AutLAGveoh34t4i2W9LIp25t0hKhlLco%3D=0<https://listarchives.libreoffice.org/global/users/>
Privacy Policy: 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.documentfoundation.org%2Fprivacy=05%7C01%7Cmadhup%40adobe.com%7C6c3c47f211c04cc0f2a308dbbe71bebe%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638313167966025522%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=oPNevqpp%2BLTismqTC0QP0kNTdtc8xXkfA1PnYBWSRW8%3D=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



Re: [libreoffice-users] Help: Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA

2023-09-26 Thread aguador


El lun, 25-09-2023 a las 04:20 +, 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?

Best,
aguador



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


[libreoffice-users] Help: Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA

2023-09-24 Thread Madhu Patel
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!



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