0

Following code takes me with pdf but i wanted to view this pdf as html because in my pdf some buttons are clickable and i wanted to capture that click event from pdf so it is not possible in pdf and that's why i need that pdf converted into html.

Can anyone guide me how can i achieve this ?

Thanks in advance.

<apex:iframe height="400px" width="800px" src="/servlet/servlet.FileDownload?file=00P0o00001wQYwS"></apex:iframe>
  • Is this pdf rendering Salesforce content like a VF page ? – RedDevil Apr 30 '19 at 15:17
  • @RedDevil, No, i am having one pdf file which needs to be render in vf page but not in pdf mode, in html mode so i can capture click event on that pdf. – Nail David May 1 '19 at 5:35
0

Salesforce doesn't have any built-in PDF to HTML functionality. I would consider using an external service to convert the PDF to HTML, then save those HTMLs as Visualforce pages. Once in VF page format, you have lots of options to work with.

  • Thanks for your answer Brian but can you please tell me what kind of external service i can use to convert pdf to html ? – Nail David Apr 30 '19 at 10:04
  • No clue - start google searching and see what comes up. I haven't had to do something like this before – Brian Miller Apr 30 '19 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.