I've installed the module and enabled it.
Under site/all/libraries i've copied the related "mpdfXX Lib" in a "mpdf" directory.
such as site/all/libraries/mpdf contains the downloaded library tree (I.E /classes, / includes, /mpdfi...)

All i see now, is two new views, one for line-item and one for orders with their name in relation to that module.

For the moment , i havent configued those views to set my specific informations or change anything to display.

On the view default "user list of orders", i ve added a "download pdf order" field in the table.

When i display the view of the user list of order and click on the download link, i ve a error :
"Fatal error: Class 'mPDF' not found in " a path related to the commerce_order2pdf.module

How can i ensure that the mpdf library is correctly installed ?
Does the link must be somewhere else, is there another thing to do ?

Thx

Comments

yorguey31’s picture

Category: Feature request » Support request
Priority: Major » Critical
kaido.toomingas’s picture

I did build it on top of mpdf 5.4 and the module expects the lib name to be MPDF54 as it is after you download it.

yorguey31’s picture

It works !
Thx a lot.

And if i want to send the pdf in an email with rules (for instance) what do i have to do ?

kaido.toomingas’s picture

With this module you will get a special token for pdf link. So just edit send email rule and add link token. [commerce-order:hashed_pdf_link]

yorguey31’s picture

Great !

Easy to use, and it does the job.

You've done a good work on this module.

Perhaps just some documentation/installation details to add on the front page of this module to make it as popular as it deserve to.

Thx again.

kaido.toomingas’s picture

Status: Active » Closed (fixed)