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.

  Discussion posts and replies are publicly visible

Parents Reply
  • I know how to show PDF file in document viewer. My requirement is to get DOCX file convert it and show it document viewer on the fly, Below is the Interface & Process Model

    Interface

    a!localVariables(
      local!file,
      
      {
      a!fileUploadField(
        label: "File Upload",
        labelPosition: "ABOVE",
        target: cons!TCT_UPLOAD_FILES_FOLD,
        value: local!file,
        saveInto:local!file,
        required: true,
        validations: {}
      ),
        a!buttonArrayLayout(
          buttons: {
            a!buttonWidget(
              label: "Upload",
              icon: "upload",
              saveInto: {
                a!save(ri!file,local!file)
              },
              submit: true,
              style: "PRIMARY"
            )
          },
          align: "START"
        ),
        a!documentViewerField(
          label: "Document Viewer",
          labelPosition: "ABOVE",
          document: ri!pdfFile,
          height: "MEDIUM"
        )
    }
    )

    Process Model

Children