- ported rev. 340 from branch_0_4 (don't crop fax pages)
git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@341 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
parent
53651069ec
commit
fd8b0bff34
|
@ -7,6 +7,10 @@
|
|||
issue goes to Edelhard Becker.
|
||||
* scripts/Makefile.am (.pyin.py): Choose the right sfftobmp call
|
||||
automatically during build.
|
||||
* scripts/cs_helpers.pyin (sendMIMEMail): add parameters to tiff2ps, gs
|
||||
and ps2pdf which prevent cropping of fax pages. Thanks to all the
|
||||
people who contributed suggestions and patches to bug #55.
|
||||
* scripts/capisuitefax.in: Likewise.
|
||||
|
||||
2004-10-25 Gernot Hillier <gernot@hillier.de>
|
||||
* src/capisuite-py/config.py.in: minor documentation changes
|
||||
|
|
11
NEWS
11
NEWS
|
@ -1,6 +1,17 @@
|
|||
0.5 (CVS nn):
|
||||
=============
|
||||
|
||||
* scripts: prevent cropping of fax pages by auto-scaling
|
||||
|
||||
* scripts: use a SMTP connection to localhost instead of calling the
|
||||
sendmail binary for sending mails. Many reports showed that calling
|
||||
sendmail manually doesn't work well on quite some systems
|
||||
|
||||
* core: fixed compile problem with new capi4linux library
|
||||
|
||||
* core: fixed a crash which could be caused by wrong DDI parameters
|
||||
in capisuite.conf
|
||||
|
||||
* scripts: Adapted to work with the new parameters of sfftobmp 3.x.
|
||||
Normally, installed version will be detected automatically when
|
||||
building CapiSuite. If you change your sfftobmp version later,
|
||||
|
|
|
@ -76,7 +76,7 @@ def convert2Fax(filenames, faxname):
|
|||
if not checkFile(fname, fname_):
|
||||
return 0
|
||||
files.append(fname_)
|
||||
command = "gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=cfax " \
|
||||
command = "gs -dNOPAUSE -dQUIET -dBATCH -aPAPERSIZE=a4 -sDEVICE=cfax " \
|
||||
"-sOutputFile=%s %s" % (faxname, ' '.join(files))
|
||||
ret = os.system(command) >> 8
|
||||
if ret:
|
||||
|
|
|
@ -130,7 +130,7 @@ def sendMIMEMail(mail_from, mail_to, mail_subject, mail_type,
|
|||
# convert sff -> tif
|
||||
sff2tif(attachment, "%s.tif" % basepath)
|
||||
# convert tif -> ps -> pdf
|
||||
cmd = "tiff2ps -a %s | ps2pdf - -" % escape("%s.tif" %basepath)
|
||||
cmd = "tiff2ps -h11 -H12 -L.5 -w8.5 -a %s | ps2pdf -sPAPERSIZE=a4 - -" % escape("%s.tif" %basepath)
|
||||
try:
|
||||
status, content = commands.getstatusoutput(cmd)
|
||||
finally:
|
||||
|
@ -148,7 +148,7 @@ def sendMIMEMail(mail_from, mail_to, mail_subject, mail_type,
|
|||
# convert cff -> ps
|
||||
cff2ps(attachment, "%s.ps" % basepath)
|
||||
# convert ps -> pdf
|
||||
cmd = "ps2pdf %s -" % escape("%s.ps" % basepath)
|
||||
cmd = "ps2pdf -sPAPERSIZE=a4 %s -" % escape("%s.ps" % basepath)
|
||||
try:
|
||||
status, content = commands.getstatusoutput(cmd)
|
||||
finally:
|
||||
|
|
Loading…
Reference in New Issue