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
Ahmed AdelAhmed Adel 

Generate not Editable PDF from visualforce page

I need to make the PDF generated from visualforce page to be not editable for security reasons. is it doable?

Ankit AroraAnkit Arora

Yes, you can create PDF from visualforce page. You just need to use the " renderAs="PDF" "  in your page.

 

Here is the code :

 

<apex:page renderAs="PDF">
    <apex:outputLabel value="This is your PDF which is not editable"/>
</apex:page>

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

Ahmed AdelAhmed Adel

I mean I need to prevent the user from copy any content inside this generated PDF file. is it doable and how?