Page 1 of 1

Convert Word document to PDF or to PNG

Posted: Mon Sep 11, 2023 8:13 am
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?

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

Posted: Mon Sep 11, 2023 10:20 pm
by Hagar Delest
You may have better luck with LibreOffice.
OOo 3.2 is really deprecated now.

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

Posted: Tue Sep 12, 2023 5:36 am
by laara_12
I'm using OpenOffice 4.1.14. Is it also deprecated @Hagar Delest?

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

Posted: Tue Sep 12, 2023 6:21 am
by robleyd
LibreOffice is a long way ahead of OpenOffice in terms of development. You could do worse than try it.

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

Posted: Tue Sep 12, 2023 7:04 am
by laara_12
By the way, can we do odt to png conversion using OpenOffice? I didn't find this in the official documentation.

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

Posted: Tue Sep 12, 2023 7:32 am
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 4879 times

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

Posted: Tue Sep 12, 2023 8:06 am
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.

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

Posted: Tue Sep 12, 2023 11:50 am
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?

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

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

Code: Select all

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

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

Posted: Tue Sep 12, 2023 1:11 pm
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)

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

Posted: Tue Sep 12, 2023 2:31 pm
by karolus
The error message is: Segmentation fault (core dumped)
So…try Libreoffice from your friendly Ubuntu-distribution…

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

Posted: Tue Sep 12, 2023 2:43 pm
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?

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

Posted: Tue Sep 12, 2023 2:49 pm
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)

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

Posted: Wed Sep 13, 2023 8:13 am
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)

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

Posted: Wed Sep 13, 2023 8:29 am
by karolus
why do you insist on doing it with AOO?

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

Posted: Wed Sep 13, 2023 2:13 pm
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.

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

Posted: Thu Sep 14, 2023 1:29 am
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.

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

Posted: Thu Sep 14, 2023 7:41 am
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 4189 times
[/img]

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

Posted: Thu Sep 14, 2023 8:04 am
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