doc to pdf via openoffice/php localhost

Java, C++, C#, Delphi, ??? - Using the UNO bridges

doc to pdf via openoffice/php localhost

Postby wisedev » Tue Feb 16, 2021 3:13 pm

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/5538584/convert-word-doc-docx-and-excel-xls-xlsx-to-pdf-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
wisedev
 
Posts: 5
Joined: Tue Feb 16, 2021 3:01 pm

Re: doc to pdf via openoffice/php localhost

Postby Villeroy » Tue Feb 16, 2021 9:46 pm

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
Villeroy
Volunteer
 
Posts: 29553
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: doc to pdf via openoffice/php localhost

Postby robleyd » Tue Feb 16, 2021 11:59 pm

Just for the record, the "plain text file" referred to is a Linux shell script; it won't work in Windows.
Cheers
David
Apache OpenOffice 420m2(Build:9821) - Slackware 14.2 - 64 bit
LibreOffice 6.4.6.2 (SlackBuild for 6.4.6 by Eric Hameleers) - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 3864
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: doc to pdf via openoffice/php localhost

Postby wisedev » Wed Feb 17, 2021 11:08 am

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

Postby wisedev » Wed Feb 17, 2021 11:21 am

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
wisedev
 
Posts: 5
Joined: Tue Feb 16, 2021 3:01 pm

Re: doc to pdf via openoffice/php localhost

Postby robleyd » Wed Feb 17, 2021 11:28 am

Your search skills may need upgrading - I found results using the search string php+convert+doc+to+pdf
Cheers
David
Apache OpenOffice 420m2(Build:9821) - Slackware 14.2 - 64 bit
LibreOffice 6.4.6.2 (SlackBuild for 6.4.6 by Eric Hameleers) - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 3864
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: doc to pdf via openoffice/php localhost

Postby wisedev » Wed Feb 17, 2021 2:38 pm

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
wisedev
 
Posts: 5
Joined: Tue Feb 16, 2021 3:01 pm

Re: doc to pdf via openoffice/php localhost

Postby Villeroy » Wed Feb 17, 2021 2:46 pm

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
Villeroy
Volunteer
 
Posts: 29553
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: doc to pdf via openoffice/php localhost

Postby RoryOF » Wed Feb 17, 2021 2:54 pm

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.9 on Xubuntu 20.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 32401
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: doc to pdf via openoffice/php localhost

Postby wisedev » Wed Feb 17, 2021 3:05 pm

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
wisedev
 
Posts: 5
Joined: Tue Feb 16, 2021 3:01 pm


Return to External Programs

Who is online

Users browsing this forum: No registered users and 5 guests