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
trictric 

Creation of PDF from an even object object

Hi Friends,

 

I want to create PDF file from the record of an event object.Does anyone know how to go about it?

Can somebody please help?

 

If there is some example of how they have done it?

 

Thanks,

Trick

 

 

JeffStevensJeffStevens

Use a Visualforce page, with renderAs="PDF" in the header.

 

ex. 

<apex:page controller="ctrl_CustomControllerName" showHeader="False" Sidebar="false" renderAs="PDF"  >

trick1trick1

Thanks for the reply Jeffstevens,

 

Below I have mentioned business requirement:-

 

We are developing an "Event Briefing Process, and would be looking for assistance in taking an existing record ("an event record") and translating it into a preformated PDF document.

 

So as per you, I  should create controller class in which I should write some queries to fetch the event records and show that record as PDF.

 

Do I need to create another button something known as PDF  on the event object so when somebody click on the button a PDF will be created  and shown to the user.How will I save that PDF.

 

I am trying to put the entire thing together.

 

Thanks,

Trick