PDF button similar to quote

Hi,

I am making a custom object that has a generate plan(pdf) button. This object has a related list called where Deliverables__c exist. Deliverables__c is a child object in master detailed relationship to the parent object; Plan__c.

Master Object: Plan__cDetailed/child object: Deliverables__c

For the PDF button I need it to have a similar functionality to Quote object, where each line item of Deliverables__c will be displayed in the PDF. Basically I would need to get information from its related list items from Deliverable__c into this PDF in Plan__c object. How can I do this?