Skip to main content
Known Participant
Jul 26, 2021 12:47 PM UTC
Question

Convert DOCX to PDF and show in document view

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
    Participating Frequently
    Jul 26, 2021 12:51 PM UTC

    Hi [mention:cfadbc563f224325a997ab34a848fcc9:e9ed411860ed4f2ba0265705b8793d05],

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

    Known Participant
    Jul 26, 2021 12:52 PM UTC

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

    selvakumark
    Participating Frequently
    Jul 26, 2021 12:57 PM UTC

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

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

    Known Participant
    Feb 9, 2024 3:29 AM UTC

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

    chiarag0001
    Known Participant
    Feb 9, 2024 9:22 AM UTC

    [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

    Known Participant
    Feb 9, 2024 9:51 AM UTC

    thank you