Convert Word document to PDF or to PNG

Java, C++, C#, Delphi... - Using the UNO bridges
Locked
laara_12
Posts: 15
Joined: Mon Sep 04, 2023 7:03 am

Convert Word document to PDF or to PNG

Post by laara_12 »

 Edit: Split from OpenOffice 3.2 core dumped while converting .doc to .pdf because that topic that eleven year old topic is for OpenOffice 3.2. Please do not post in another's topic unless you are helping to solve their problem for them. I created a new topic for you to discuss OpenOffice 4.1.14.
-- MrProgrammer, forum moderator  

I'm getting the same error in OpenOffice 4.1.14. Could anyone tell, me how to resolve this?
OpenOffice 4.1.14 on X86_64 Ubuntu
User avatar
Hagar Delest
Moderator
Posts: 32668
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by Hagar Delest »

You may have better luck with LibreOffice.
OOo 3.2 is really deprecated now.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
laara_12
Posts: 15
Joined: Mon Sep 04, 2023 7:03 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by laara_12 »

I'm using OpenOffice 4.1.14. Is it also deprecated @Hagar Delest?
OpenOffice 4.1.14 on X86_64 Ubuntu
User avatar
robleyd
Moderator
Posts: 5087
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by robleyd »

LibreOffice is a long way ahead of OpenOffice in terms of development. You could do worse than try it.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
laara_12
Posts: 15
Joined: Mon Sep 04, 2023 7:03 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by laara_12 »

By the way, can we do odt to png conversion using OpenOffice? I didn't find this in the official documentation.
OpenOffice 4.1.14 on X86_64 Ubuntu
User avatar
robleyd
Moderator
Posts: 5087
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by robleyd »

No, see viewtopic.php?f=7&t=89555 which will tell you that LibreOffice can. For example, using the version of LO in my sig and as JPG because PNG is too big to upload here and I can't be bothered to resize it:
testwp2.jpg
testwp2.jpg (116.43 KiB) Viewed 4287 times
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
User avatar
Hagar Delest
Moderator
Posts: 32668
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by Hagar Delest »

laara_12 wrote: Tue Sep 12, 2023 5:36 am I'm using OpenOffice 4.1.14. Is it also deprecated @Hagar Delest?
No but I hadn't noticed that you had revived a 11 years old discussion! I was replying to the OP in fact.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
laara_12
Posts: 15
Joined: Mon Sep 04, 2023 7:03 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by laara_12 »

robleyd wrote: Tue Sep 12, 2023 7:32 am No, see viewtopic.php?f=7&t=89555 which will tell you that LibreOffice can. For example, using the version of LO in my sig and as JPG because PNG is too big to upload here and I can't be bothered to resize it:

testwp2.jpg

Thanks for the information. In the OpenOffice SDK java examples, there is a file "DocumentConvertor.java" and it says this " The class <CODE>DocumentConverter</CODE> allows you to convert all documents in a given directory and in its subdirectories to a given type. A converted
document will be created in the same directory as the origin document."

I'm running that file and trying to convert an ODT file to a PNG file. Can't we do that way also? It's working fine for PDF conversion but not for PNG conversion.


So, as per this viewtopic.php?f=7&t=89555 and conversion we had, can I assume, that we can't convert an odt file to PNG file?
OpenOffice 4.1.14 on X86_64 Ubuntu
User avatar
karolus
Volunteer
Posts: 1160
Joined: Sat Jul 02, 2011 9:47 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by karolus »

Hallo
on Commandline:

Code: Select all

cd /path/to/the/writerdocs
soffice --convert-to png *.odt
AOO4, Libreoffice 6.1 on Rasbian OS (on ARM)
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 7.6 flatpak on Debian 12 (Bookworm) (on RaspberryPI4)
laara_12
Posts: 15
Joined: Mon Sep 04, 2023 7:03 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by laara_12 »

karolus wrote: Tue Sep 12, 2023 12:53 pm Hallo
on Commandline:

Code: Select all

cd /path/to/the/writerdocs
soffice --convert-to png *.odt
Hello!

I'm using OpenOffice SDk 4.1.14. odt to png conversion is giving error to me-
I used following command :-
soffice --convert-to png /home/madhu/Desktop/madhu.odt
The error message is: Segmentation fault (core dumped)
OpenOffice 4.1.14 on X86_64 Ubuntu
User avatar
karolus
Volunteer
Posts: 1160
Joined: Sat Jul 02, 2011 9:47 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by karolus »

The error message is: Segmentation fault (core dumped)
So…try Libreoffice from your friendly Ubuntu-distribution…
Last edited by karolus on Tue Sep 12, 2023 2:43 pm, edited 1 time in total.
AOO4, Libreoffice 6.1 on Rasbian OS (on ARM)
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 7.6 flatpak on Debian 12 (Bookworm) (on RaspberryPI4)
laara_12
Posts: 15
Joined: Mon Sep 04, 2023 7:03 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by laara_12 »

Yeah, it's working with LibreOffice, But I wanted to know, if can I do the odt to png conversion using OpenOffice?
OpenOffice 4.1.14 on X86_64 Ubuntu
User avatar
karolus
Volunteer
Posts: 1160
Joined: Sat Jul 02, 2011 9:47 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by karolus »

laara_12 wrote: Tue Sep 12, 2023 2:43 pm …But I wanted to know, if can I do the odt to png conversion using OpenOffice?
there is already the answer in you previous post:
laara_12 wrote: Tue Sep 12, 2023 1:11 pm Segmentation fault (core dumped)
AOO4, Libreoffice 6.1 on Rasbian OS (on ARM)
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 7.6 flatpak on Debian 12 (Bookworm) (on RaspberryPI4)
laara_12
Posts: 15
Joined: Mon Sep 04, 2023 7:03 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by laara_12 »

robleyd wrote: Tue Sep 12, 2023 7:32 am No, see viewtopic.php?f=7&t=89555 which will tell you that LibreOffice can. For example, using the version of LO in my sig and as JPG because PNG is too big to upload here and I can't be bothered to resize it:

testwp2.jpg
karolus wrote: Tue Sep 12, 2023 2:49 pm
laara_12 wrote: Tue Sep 12, 2023 2:43 pm …But I wanted to know, if can I do the odt to png conversion using OpenOffice?
there is already the answer in you previous post:
laara_12 wrote: Tue Sep 12, 2023 1:11 pm Segmentation fault (core dumped)
OK, So as per the attached post I assume, that we can't convert an odt file to a PNG file using OpenOffice 4.1.14 (that is the latest version of OpenOffice)
OpenOffice 4.1.14 on X86_64 Ubuntu
User avatar
karolus
Volunteer
Posts: 1160
Joined: Sat Jul 02, 2011 9:47 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by karolus »

why do you insist on doing it with AOO?
AOO4, Libreoffice 6.1 on Rasbian OS (on ARM)
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 7.6 flatpak on Debian 12 (Bookworm) (on RaspberryPI4)
User avatar
RoryOF
Moderator
Posts: 34619
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by RoryOF »

https://www.zamzar.com offer many free online conversions. I have not checked for .odt to .png, but it might be worth doing so.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
robleyd
Moderator
Posts: 5087
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by robleyd »

Note that my answer relates to using the File | Export feature of Open/LibreOffice to export as images; I make no claims about command line, Java or other methods.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
laara_12
Posts: 15
Joined: Mon Sep 04, 2023 7:03 am

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by laara_12 »

Thanks for your response. I require official authentic information if OpenOffice SDK has ANY to PNG conversion supported as the application doesn’t (attached screenshot), nor development hints.
Screenshot_2023-09-13_at_3.31.17_PM_1_10_11zon.png
Screenshot_2023-09-13_at_3.31.17_PM_1_10_11zon.png (84.62 KiB) Viewed 3597 times
[/img]
OpenOffice 4.1.14 on X86_64 Ubuntu
User avatar
Hagar Delest
Moderator
Posts: 32668
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: OpenOffice 3.2 core dumped while converting .doc to .pdf

Post by Hagar Delest »

laara_12 wrote: Thu Sep 14, 2023 7:41 am I require official authentic information if OpenOffice SDK has ANY to PNG conversion supported as the application doesn’t
We are users like you here.
If you want official information, go to the dev mailing list: https://openoffice.apache.org/mailing-l ... ist-public
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Locked