doc to pdf via openoffice/php localhost

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
wisedev
Posts: 5
Joined: Tue Feb 16, 2021 3:01 pm

doc to pdf via openoffice/php localhost

Post 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
Last edited by MrProgrammer on Tue Feb 16, 2021 6:02 pm, edited 1 time in total.
Reason: Created click-able link
OpenOffice 4, windows 8.1 pro, apache netbean 12,php 8,0,2
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: doc to pdf via openoffice/php localhost

Post by Villeroy »

There are better tools to convert doc to pdf. OpenOffice has died anyway. LibreOffice is the "new" OpenOffice since 2011.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
robleyd
Moderator
Posts: 5082
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: doc to pdf via openoffice/php localhost

Post by robleyd »

Just for the record, the "plain text file" referred to is a Linux shell script; it won't work in Windows.
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
wisedev
Posts: 5
Joined: Tue Feb 16, 2021 3:01 pm

Re: doc to pdf via openoffice/php localhost

Post by wisedev »

thanks for reply,
this was only for fun work, i didn't know that take all this time to do it :P
OpenOffice 4, windows 8.1 pro, apache netbean 12,php 8,0,2
wisedev
Posts: 5
Joined: Tue Feb 16, 2021 3:01 pm

Re: doc to pdf via openoffice/php localhost

Post 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
OpenOffice 4, windows 8.1 pro, apache netbean 12,php 8,0,2
User avatar
robleyd
Moderator
Posts: 5082
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: doc to pdf via openoffice/php localhost

Post by robleyd »

Your search skills may need upgrading - I found results using the search string php+convert+doc+to+pdf
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
wisedev
Posts: 5
Joined: Tue Feb 16, 2021 3:01 pm

Re: doc to pdf via openoffice/php localhost

Post by wisedev »

i ask with libreoffice. no one method of this search work for really on my system.
OpenOffice 4, windows 8.1 pro, apache netbean 12,php 8,0,2
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: doc to pdf via openoffice/php localhost

Post 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.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: doc to pdf via openoffice/php localhost

Post 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".
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
wisedev
Posts: 5
Joined: Tue Feb 16, 2021 3:01 pm

Re: doc to pdf via openoffice/php localhost

Post 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.
OpenOffice 4, windows 8.1 pro, apache netbean 12,php 8,0,2
Post Reply