Hi Tibor,
when configuring 0.99.1, I've noticed that you only consider Adobe
Reader and Distiller as converters to/from PDF and PS. Fortunately,
both xpdf (with pdftops and pstopdf) and ghoscript (pdf2ps and ps2pdf)
are valid alternatives.
I started to draft a patch, but I'm ignorant enough about autotools and
friends that at this moment I cannot spend the time I need to complete
it. So I've done the trivial part of the easy half, leaving the
rest to you ;-)
BTW, do you prefer the patches sent as attachments or inline?
Thanks,
Ferran
WebSubmit: add xpdf and ghostscript as alternatives to Acrobat
* This is just an early draft
* Both xpdf and ghostscript provide converters from/to PDF and PS.
* TODO: add them in the INSTALL, configure, etc.
---
modules/websubmit/lib/functions/Shared_Functions.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
Index: cds-invenio-0.99.1/modules/websubmit/lib/functions/Shared_Functions.py
===================================================================
--- cds-invenio-0.99.1.orig/modules/websubmit/lib/functions/Shared_Functions.py 2009-05-18 11:58:05.000000000 +0200
+++ cds-invenio-0.99.1/modules/websubmit/lib/functions/Shared_Functions.py 2009-05-18 12:01:18.000000000 +0200
@@ -41,8 +41,16 @@
filename, extension = os.path.splitext(filename)
extension = extension.lower()
if extension == ".pdf":
+ conversion = ""
# Create PostScript
- os.system("%s -toPostScript %s" % (CFG_PATH_ACROREAD, fullpath))
+ if (CFG_PATH_PDFTOPS):
+ conversion = "%s %s" % (CFG_PATH_PDFTOPS, fullpath)
+ elif (CFG_PATH_PDF2PS):
+ conversion = "%s %s" % (CFG_PATH_PDF2PS, fullpath)
+ elif (CFG_PATH_ACROREAD):
+ conversion = "%s -toPostScript %s" % (CFG_PATH_ACROREAD, fullpath)
+ if conversion:
+ os.system(conversion)
if os.path.exists("%s/%s.ps" % (basedir, filename)):
os.system("%s %s/%s.ps" % (CFG_PATH_GZIP, basedir, filename))
createdpaths.append("%s/%s.ps.gz" % (basedir, filename))