By adpo on
Hi,
How can I create an action using tokens for printing pdf? I've noticed that I can only send an email, from there. I search for a solution, and I found fillpdf, and stamp pdf modules. which are great, but I want use an PDF action for my workflow. Any sugestions? Thank you for reply.
Kind regards,
Adrian
Comments
depends on where your pdf
depends on where your pdf comes from?
case 1 :
user A upload a pdf, then u send it to user B without modification.
case 2 :
user A upload a pdf, then u send it to user B with modification, say with fields from your webform / token.
case 3 :
system creates a new pdf and send out to user.
what is your case?
My case is 3: system creates
My case is 3: system creates a new tokenized pdf and send out to user. I don't need send my pdf via email. I just want to create PDF.
in this case, if u just need
in this case, if u just need to print out the field values one by one *without* format, then it is easy.
But, if u want to print out the values with format, say field 1 in blue, field 2 in em..
and also print logo in page header and also footer ...
then u have to think of ..how to prepare those info to the printing module.
do u use a default template?
good day.
I think I can live without
I think I can live without format. I need a simple letter like this:
Dear [Author-name]
[address-line-1]
[address-line-2]
[address-line-3]
Lorem ipsummm....
Kind regards,
[user-name]
then this will not be very
then this will not be very difficult.
do u have a budget & schedule in your mind?
I have more time than money
I have more time than money ;) I'm glad to hear that it is not difficult. I can't find good (advanced) documentation and issues for drupal actions.
that's good if u have time
that's good if u have time ...
as I have mentioned, case 1 and 2 may be a little bit difficult.
good day.
I really want to do it by
I really want to do it by myself, beacuse Drupal is my hobby. I'm not looking for freelancer here. I just want to find an answer for my question.
Maybe tcpdf?
TCPDF is an open source library in PHP for generating PDFs. You can find it http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf.
The Storm module uses it for generating PDF output.