Create multiple positions in PDF from custom module

Hello everyone,

I’m trying to implement multiple positions (Lines) for a generated PDF in a custom module. (Just like invoices)
With help from old forum posts, i was able to implement the pdf generation feature for a custom module, but now it seems I’m a bit stuck.

Is there a guide anywhere on how to do this?
I’d rather avoid using line_items.js but would like to achieve this, by creating a new module e.g. “Positions” and put a link on it. (one to many)

In my PDF I would need to get all the data from the link.

Any suggestions? Any help is greatly appreciated :slight_smile:

Is this what you’re looking for?

https://suitecrm.com/suitecrm/media/kunena/attachments/50755/AddingPrintPDFtocustomModule.pdf

It’s the only tutorial related to PDFs in SuiteCRM that I know about…

Thank you, unfortunately this PDF only describes the steps to implement standard PDF printing in a custom module. Not how to print multiple positions in a PDF =/

You might want to try looking at the documentation (if there is any) about the PDF package that SuiteCRM uses. I think it’s called mPDF, search around the code to confirm.

Thank you, will do as soon I have time.