Guys,
Need some help here. I'm wondering is there a way to write contents into a PDF template.
Situation :
I have a PDF template with only the Company Logo and Header on top 5 lines of the PDF. Since Progress outputs mainly character based , i was thinking of writing the statements into the template with the Logo and Header.
OS :
Redhat Enterprise Linux 6.6
Currently, i use the OUTPUT command to output to a file, then use enscript command to make the font look better and lastly use ps2pdf command to convert to pdf. This works well, until now some documents require LOGO and Header.
This is my coding :
pdffile = "enscript -B --margins=10:10: -o /home/mfg/email/stmt/emailstmt.ps -f Courier8.5" + " /home/mfg/email/stmt/" + CAPS(STRING(cm_addr)) + "_" + yr + mth + ".txt".
pdfconv = "ps2pdfwr /home/mfg/email/stmt/emailstmt.ps /home/mfg/email/stmt/" + CAPS(STRING(cm_addr)) + "_" + yr + mth + ".pdf".
emailaddr = cm_user2.
mailfile = "mail -s " + """" + "Statement for Customer: " + CAPS(STRING(cm_addr)) + " as of " + STRING(effdate1, "99/99/99") + """" + " -r noreply@sun.com.my " + " -a " + "/home/mfg/email/stmt/" + CAPS(STRING(cm_addr)) + "_" + yr + mth + ".pdf" + " -c account@sunrisepaper.com.my " + TRIM(emailaddr) + " < /home/mfg/email/stmt/stmtbody.txt".
UNIX VALUE(pdffile).
UNIX VALUE(pdfconv).
UNIX VALUE(mailfile).
Anyone have a good solution to output to a file or pdf with LOGO and Headers ?
Thanks all.
Need some help here. I'm wondering is there a way to write contents into a PDF template.
Situation :
I have a PDF template with only the Company Logo and Header on top 5 lines of the PDF. Since Progress outputs mainly character based , i was thinking of writing the statements into the template with the Logo and Header.
OS :
Redhat Enterprise Linux 6.6
Currently, i use the OUTPUT command to output to a file, then use enscript command to make the font look better and lastly use ps2pdf command to convert to pdf. This works well, until now some documents require LOGO and Header.
This is my coding :
pdffile = "enscript -B --margins=10:10: -o /home/mfg/email/stmt/emailstmt.ps -f Courier8.5" + " /home/mfg/email/stmt/" + CAPS(STRING(cm_addr)) + "_" + yr + mth + ".txt".
pdfconv = "ps2pdfwr /home/mfg/email/stmt/emailstmt.ps /home/mfg/email/stmt/" + CAPS(STRING(cm_addr)) + "_" + yr + mth + ".pdf".
emailaddr = cm_user2.
mailfile = "mail -s " + """" + "Statement for Customer: " + CAPS(STRING(cm_addr)) + " as of " + STRING(effdate1, "99/99/99") + """" + " -r noreply@sun.com.my " + " -a " + "/home/mfg/email/stmt/" + CAPS(STRING(cm_addr)) + "_" + yr + mth + ".pdf" + " -c account@sunrisepaper.com.my " + TRIM(emailaddr) + " < /home/mfg/email/stmt/stmtbody.txt".
UNIX VALUE(pdffile).
UNIX VALUE(pdfconv).
UNIX VALUE(mailfile).
Anyone have a good solution to output to a file or pdf with LOGO and Headers ?
Thanks all.