You need to sign in to do that
Don't have an account?
Lukasz Piziak
Displaying a PDF attachment on a record as a Visual Page
Hi All,
I'm trying to achieve the preview of my related content attached to my record (always PDF document) on my custom object as a section with Visual Page. So far I was able to create a simple visual page and embedded to my record page layout but I don't know of how to make that page will preview my PDF document taken from related content section.
I appriciate any help.
Thank you
I'm trying to achieve the preview of my related content attached to my record (always PDF document) on my custom object as a section with Visual Page. So far I was able to create a simple visual page and embedded to my record page layout but I don't know of how to make that page will preview my PDF document taken from related content section.
I appriciate any help.
Thank you
You can utilize the built-in pdf viewing capabilities of modern browsers.
Example:
Visualforce Page
Controller :
Thanks,
Amritesh
Thank you for VP and Controller.
I have a question if this PDF preview capability will work with PDF docuemnts attached to RELATED CONTENT section in my custom object record?
Regards,
Lukasz
I have started from creating an controller. I'm new to salesforce apex coding. PLease see ans error after trying to save proposed code:
[Error] Error: Compile Error: expecting a right parentheses, found 'contentPdf' at line 19 column 16
Could yopu please advise of how I can correct this code to work in my org?
Thank you.