Skip to main content
July 26, 2021
Question

Convert DOCX to PDF and show in document view

  • July 26, 2021
  • 11 replies
  • 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. I have been able to convert DOCX file to PDF but not able to show it in document viewer.

Please help.

    11 replies

    selvakumark
    July 26, 2021

    Hi [mention:cfadbc563f224325a997ab34a848fcc9:e9ed411860ed4f2ba0265705b8793d05],

    Could you please share the error that you're facing?

    July 26, 2021

    I am not facing any error, I just don't know how to achieve it.

    selvakumark
    July 26, 2021

    I hope this documentation helps you. Just pass your documentId for the document parameter.

    docs.appian.com/.../Document_Viewer_Component.html

    February 9, 2024

    I got the same issue. cannot see the docx document in the document viewer and insted of showing document getting downloaded

    chiarag0001
    February 9, 2024

    [mention:50db1cd8fb304dd499245322b8cbac67:e9ed411860ed4f2ba0265705b8793d05]  that's the expected behavior, you can't preview a docx you must convert it to PDF to show it with the document viewer.

    As to why a docx can't be previewed, it has to do with the browser -> community.appian.com/.../preview-docx-doc-xls-etc-in-browser

    February 9, 2024

    thank you