dbTalk Databases Forums  

PDF and EMAIL

comp.databases.pick comp.databases.pick


Discuss PDF and EMAIL in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Spent
 
Posts: n/a

Default Re: PDF and EMAIL - 07-23-2005 , 09:16 PM






Panama Red <complaintdepartment2002 (AT) yahoo (DOT) com> wrote in news:5q4uq2-
pk9.ln1 (AT) ralph (DOT) homelinux.net:

Quote:
I believe it was john (AT) mrpsystems (DOT) co.uk who said...

However, sending PDF files, or any type of file in essence, requires
they be sent as "attachments". This is where I am stuck !!!

Can anyone guide me as to what I need to do in terms of the EMAIL /
PDF
file genration before using "sendmail" etc.

It may be overkill, but you can look at mutt

If you are still having problems, here is a small shell script that we
wrote to take UniVerse printing output and merge it into a pdf file with
a pre-generated pdf invoice masking. We set up a virtual printer in
UniVerse and call this script as the printer driver. You will need to
have pdf toolkit installed on the Linux machine.


cat - |lp -c -d lp99
# lp99 is a virtual Linux postscript printer that we have setup to write
to
# file. It writes to /usr/spool/uv/pdfspool.ps
sleep 1
# we put a small delay in here so that the file has time to be created.
ps2pdf /usr/spool/uv/pdfspool.ps /usr/spool/uv/pdfout.pdf
# ps2pdf converts the postscript file to a pdf file
pdftk pdfout.pdf output art.pdf background NATINVOICE.pdf
# pdftk takes the pdf file and merges it with the pre-existing blank
# invoice -->NATINVOICE.pdf to a final file called art.pdf
/usr/bin/uuencode art.pdf invoice.pdf >inv.pdf
# uuencode encodes the art.pdf file to a binary called inv.pdf. When
# the end user receives it in his/her email it will be extracted as
# invoice.pdf
mail -s 'Invoice' email (AT) address (DOT) 1 email (AT) address (DOT) 2 <inv.pdf
# we use the mail command to send the file. Sendmail works as well.

I hope this helps,
Scott


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.