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

mm167’s picture

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?

adpo’s picture

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.

mm167’s picture

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.

adpo’s picture

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]

mm167’s picture

then this will not be very difficult.

do u have a budget & schedule in your mind?

adpo’s picture

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.

mm167’s picture

that's good if u have time ...

as I have mentioned, case 1 and 2 may be a little bit difficult.

good day.

adpo’s picture

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.

nevets’s picture

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.