Skip to main content
July 26, 2021
Question

Convert DOCX to PDF and show in document view on the fly

  • July 26, 2021
  • 1 reply
  • 0 views

Hi,

I have a requirement to read uploaded DOCX file from appian uploads folder convert it to PDF and show in document viewer on richtext icon click on the fly. I have been able to convert DOCX file to PDF but not able to show it in document viewer.

Please help.

    1 reply

    gayathris111098
    July 26, 2021

    Hi,

    What is the error you are getting? if you are able convert DOCX file to PDF, you can just pass the converted PDF document to documentViewerField it should work.

    a!documentViewerField(
      document: ri!document,
      showWhen: ri!visibility
    )