| View previous topic :: View next topic |
| Author |
Message |
robbybartlett Newbie

Joined: 15 Oct 2006 Posts: 1
|
Posted: Sun Oct 15, 2006 9:44 pm Post subject: Commandline PDF Conversion with openoffice 2 problem |
|
|
Hi All,
We have recently been attempting to do PDF conversion on the command line using openoffice 2 and ubuntu linux.
The method we are attempting to use is to register a pdf printer, and then from the command line do soffice -pt pdfprinter infile.sxw
This works beatifully if we only do one file at a time, but as the system is doing on the fly conversions for a web based application, its entirely likely that we will have multiple attempts happening at once. In this scenario, the first document that we attempt to convert will never complete, but any that are started while the first one is processing will finish successfully (and from this point you can start as many at once as you like and they will complete properly, as long as the first file is locked up attempting to convert still)
If anyone has run into this problem in the past or can suggest a different way to do this, it would be greatly appreciated. We have attempted to use PyUNO to do this conversion, but there appears to be a problem with most of the code we have tried and OpenOffice 2 (errors around storeToURL)
Cheers |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3531 Location: Hamburg, Germany
|
Posted: Fri Oct 20, 2006 1:11 pm Post subject: Re: Commandline PDF Conversion with openoffice 2 problem |
|
|
| robbybartlett wrote: | The method we are attempting to use is to register a pdf printer, and then from the command line do soffice -pt pdfprinter infile.sxw
This works beatifully if we only do one file at a time, but as the system is doing on the fly conversions for a web based application, its entirely likely that we will have multiple attempts happening at once. |
Problems with multiple parallel conversions have been reported more than once in this forum. I experienced them myself, too. To solve this problem you have to serialize the pdf conversion by using or implementing a queueing mechanism. I did that myself in Java. Works great and the PDF conversion is done much more reliable.
Regards
hol.sten |
|
| Back to top |
|
 |
bikram General User

Joined: 23 Aug 2006 Posts: 7
|
Posted: Mon Nov 27, 2006 8:59 pm Post subject: Solution here |
|
|
HI
U can have a look here as i have achieved this by installing cups-pdf printer
and from WEB Based front end from windows tooooo...
all the steps are explained
http://www.oooforum.org/forum/viewtopic.phtml?t=11890
Thanx |
|
| Back to top |
|
 |
|