akwe-xavante,
I just did this last week, and I have to say it was quite complicated. I haven't had to move the "cursor" on paper since plotter days. Not to discourage you, but you are taking on a difficult task.
Since you're on Linux and your creating the html already, why not use a system utility to convert the html to pdf. I 'googled' and 'duckduckgo.com' and found several linux utilities that convert html to pdf. If you test it from the command line, then you could call the 'system' function or 'qx//' then use the output(file) to attach in the email.
I did use PDF::API2 and it worked great. I created a template by using an array:
Each element in the array represents a line in the pdf document. That way the subroutine could process each line in a while loop. All the variables were initialized before the call to the PDF_Create subroutine, which is what I think you want to do.my @document = ( " ", " ", "Email Address: $Email", "Company Name: $Company", ... );
Good Luck
"Well done is better than well said." - Benjamin Franklin
In reply to Re: PDF::API2 Questions
by flexvault
in thread PDF::API2 Questions
by akwe-xavante
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |