Uploaded image for project: 'Nuxeo Documentation'
  1. Nuxeo Documentation
  2. NXDOC-1362

Fix automation chain sample in automating the conversion to PDF

    XMLWordPrintable

    Details

      Description

      In URL https://doc.nuxeo.com/nxdoc/how-to-automatically-convert-a-document-to-pdf/ , the parameters of the Document.setBlob() operatoin are inverted:
      The sample should read:

      - Context.FetchDocument
      - Context.PushDocument
      - Blob.ToPDF
      - Context.SetInputAsVar:
          name: pdfblob
      - Context.PopDocument
      - Document.SetBlob:
          file: "@{Context[\"pdfblob\"}"
          save: "true"
          xpath: "myDocumentSchema:pdffile"
      

      as myDocumentSchema:pdffile refers to the field to which we want to assign the PDF contained in @Context[pdfblob]

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h