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
vlad_BLvlad_BL 

Unite PDF documents in one

Hello there.

 

I have got a very interesting developing problem.

 

There is a page in our system that takes a Contact ID and renders a PDF with different information about the contact.

 

By some criteria I can get a list of such PDF documents for different contacts, each PDF contains 5 pages of text/image information (~2.5 MB).

 

I'm wondering if there is any way to get such list of PDF documents and join them into one big document, using Apex and Visual Force like reading content from PageReference() and join it with another one into the result PDF document.

 

I will appreciate any help that can help me to solve this puzzle.

Best Answer chosen by Admin (Salesforce Developers) 
Pradeep_NavatarPradeep_Navatar

In my opinion, you need to develop a seperate vf page for this. Take all contacts in a list and put your logic in apex repeat. It will generate a multiple page pdf document.

 

Hope this helps.

All Answers

Pradeep_NavatarPradeep_Navatar

In my opinion, you need to develop a seperate vf page for this. Take all contacts in a list and put your logic in apex repeat. It will generate a multiple page pdf document.

 

Hope this helps.

This was selected as the best answer
vlad_BLvlad_BL

Thanks,

 

I also found this solution the most reasonable.