globalcitizen / anytopdf

Automatically exported from code.google.com/p/anytopdf
4 stars 1 forks source link

anytopdf dies silently without creating a new file and without any comments #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
soffice.bin is there, macro is there, in- and out-files are there. What can be 
the problem? 

The Perl script gets to `$cmd`; and 

print "$cmd\n"; 

gives the following:

/opt/openoffice.org3/program/soffice.bin -headless -invisible -norestore 
"macro:///Standard.AnyToPDF.ConvertAnyToPDF(/home/PPPapps/PDF/tmp.xls,/home/PPPa
pps/PDF/newpdf.pdf)"

What version of the product are you using? On what operating system?

Red Hat Enterprise Linux Server release 5.5 (Tikanga)

Your help is highly appreciated

Original issue reported on code.google.com by goodfait...@yahoo.com on 20 Jan 2011 at 10:00

GoogleCodeExporter commented 9 years ago
Hi there, sorry I do not have RHEL 5.5 machine to test on.  Could you please 
try to figure out what is going on using 'strace <anytopdf-command>', 'lsof', 
'pstree' and other status monitoring tools?  I am very sorry that I am unable 
to assist with installing other distributions as my time is limited.

I will leave this issue open for the moment and wait for your information.

Thanks!

Original comment by walter.stanish@gmail.com on 28 Jan 2011 at 1:22

GoogleCodeExporter commented 9 years ago
This seems to be related to issue 5 . Look for the script.xlb file.
It is probably in your home directory inside the openoffice config directory, 
hidden usually. 

If it is not in 

.openoffice.org/3/user/basic/Standard/script.xlb
or
.ooo3/user/basic/Standard/script.xlb
You need to change the location of the $MACRO_FILE
to point to the right file. 

If you have run the macro once can you find it in the macro editor? 

Original comment by mikael.h...@gmail.com on 6 Apr 2011 at 7:21

GoogleCodeExporter commented 9 years ago
Same issue... My Macro is good, but not output file or any comments...

Original comment by flor...@e-lam.net on 27 Jul 2011 at 10:43

GoogleCodeExporter commented 9 years ago
I did not have time to figure out what was wrong with anytopdf. I came up with 
a quick fix - see below.

Install OpenOffice.org. Create an event-driven macro (topdf) that exports file 
to pdf. Connect it to opening file (event). Now you can run the macro in 
OpenOffice from Linux command line like this:

/opt/openoffice.org3/program/soffice.bin -headless -invisible -norestore 
"macro:///Standard.Module1.topdf" *.xls &

The name of the pdf file is hard-wired in the macro – it is not a problem for 
me, but if it is- it can be solved with the macro language.

Another problem – the process will be running forever, so you need to add:

sleep 20
killall soffice.bin

I found 2 macros on the web, but they do not work either:
http://www.togaware.com/linux/survivor/Convert_MS_Word.html
http://code.google.com/p/anytopdf/

Original comment by goodfait...@yahoo.com on 27 Jul 2011 at 3:48

GoogleCodeExporter commented 9 years ago
I have the same problem.  strace showed that anytopdf can't find XSLoader.pmc 
and Basename.pmc

Original comment by nrr12...@gmail.com on 20 Dec 2011 at 3:25

GoogleCodeExporter commented 9 years ago
Those are perl modules that must be installed to run anytopdf. 
Is perl installed at all? Not sure what perl modules you need to install to get 
this.

Original comment by mikael.h...@gmail.com on 27 Jan 2012 at 8:03