Page 1 of 1

doc to pdf via openoffice/php localhost

Posted: Tue Feb 16, 2021 3:13 pm
by wisedev
hi,
i'm totally new at this.
i tried to convert a .doc to .pdf using php in the localhost, using this answer:
http://stackoverflow.com/questions/5538 ... f-with-php

why localhost? for fun and let's see if it work before i use it in some real web page.

i have installed openoffice 4 on windows 8.1 pro, run a project php with apache netbean 12 but im totally blocked to the part command line:
"I also created a plain text file above the web root (I named it "adocpdf"), with the following command line instructions in it:"
Which command line? windows cml? server cml? openoffice cml(exist?)?
what he speaking about?
another little problem is python. i never used it. (but this is my problem i can learn it)

anyway i want convert doc to pdf using php

Re: doc to pdf via openoffice/php localhost

Posted: Tue Feb 16, 2021 9:46 pm
by Villeroy
There are better tools to convert doc to pdf. OpenOffice has died anyway. LibreOffice is the "new" OpenOffice since 2011.

Re: doc to pdf via openoffice/php localhost

Posted: Tue Feb 16, 2021 11:59 pm
by robleyd
Just for the record, the "plain text file" referred to is a Linux shell script; it won't work in Windows.

Re: doc to pdf via openoffice/php localhost

Posted: Wed Feb 17, 2021 11:08 am
by wisedev
thanks for reply,
this was only for fun work, i didn't know that take all this time to do it :P

Re: doc to pdf via openoffice/php localhost

Posted: Wed Feb 17, 2021 11:21 am
by wisedev
just..can u tell me if there a guide, a tutorial, a something for convert using php? i find nothing on the web

Re: doc to pdf via openoffice/php localhost

Posted: Wed Feb 17, 2021 11:28 am
by robleyd
Your search skills may need upgrading - I found results using the search string php+convert+doc+to+pdf

Re: doc to pdf via openoffice/php localhost

Posted: Wed Feb 17, 2021 2:38 pm
by wisedev
i ask with libreoffice. no one method of this search work for really on my system.

Re: doc to pdf via openoffice/php localhost

Posted: Wed Feb 17, 2021 2:46 pm
by Villeroy
Nobody will install Netbeans for you.
Nobody will refresh old php knowledge.
Nobody will do your work.
Do your own business and once you found out how to do it, feel free to share it here and elsewhere.

Re: doc to pdf via openoffice/php localhost

Posted: Wed Feb 17, 2021 2:54 pm
by RoryOF
Why bother to convert using php? One can convert to PDF from command line using Open- or Libre-Office. There are many examples of this on the Forum, also in the documentation - search for "command line".

Re: doc to pdf via openoffice/php localhost

Posted: Wed Feb 17, 2021 3:05 pm
by wisedev
Nobody will install Netbeans for you.
Nobody will refresh old php knowledge.
Nobody will do your work.

i never ask this. it's 2 day that i trying (sorry my bad english) to simple converting doc pdf with php but no one method work, then i ask here if someone it's done with this operation with my system or is impossible(i dont know if this thing is possible).

Why bother to convert using php?
it's only fun project for see if in my system can be done.