function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kris HankinsKris Hankins 

Listing Multiple Opportunity Products on a VF page rendered as PDF

I am looking for a way to render a VF page as a PDF that displays the OpportunityLineItem(s) from a given opportunity in the same VF page having a page break with every product. 

Rendering the Opportunity Product detail page as a pdf is not the issue. The issue I can't seem to resolve is when we have more than one Product on the Opportunity. How can I iterate through this list of Opportunity products and add each of them to the VF page? 

Our company sells serialized products and the prices on these products change from time to time depending on the manufacturer's pricing parameters. I am trying to create a button on the Opportunity page that brings up a new page (rendered as PDF) that list each Opportunity Product so our finance personnel can save this document to a shared drive as one document instead of printing out each individual Opportunity Product detail page. Any ideas on how I can do this?