Announcement

Collapse

Mirth Connect 4.0.1 Released!

Mirth Connect 4.0.1 is now available as an appliance update and on our GitHub page. Mirth Connect 4.0.1 is a patch release containing a bug fix which includes fixing a Jetty keystore regression that caused Connect servers using a PKCS12 keystore containing a wildcard certificate and/or a certificate with a SAN to throw an exception on startup. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Transform base 64 image to base64 pdf

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by odo View Post
    No, they are not identical at the binary level.

    Create a sample PDF/A and post it here (of course w/o sensible data ) and also post your code that calls the imageToPDF() function along w/ the subsequent processing


    Channel image to pdf.xml is my channel
    function_imagetopdf() is my (your) function.
    Source_CDA is the message source with the image
    Base64_intial_function is the PDF that i generate before.
    Base64_pDF_A is the PDF that i generate now and that must be PDF/A but is identical to before.

    Thanks !!!!!
    Last edited by vincentsm33; 05-06-2022, 12:52 AM.

    Comment


    • #32
      Connector "Destination 2"

      change
      PHP Code:
      tmp['component']['nonXMLBody']['text'].toString() == $('base64pdf'
      to
      PHP Code:
      tmp['component']['nonXMLBody']['text'] = $('base64pdf'); 
      and also remove the base64-encoded pdf from your Destination template.

      Comment


      • #33
        Originally posted by odo View Post
        Connector "Destination 2"

        change
        PHP Code:
        tmp['component']['nonXMLBody']['text'].toString() == $('base64pdf'
        to
        PHP Code:
        tmp['component']['nonXMLBody']['text'] = $('base64pdf'); 
        and also remove the base64-encoded pdf from your Destination template.
        Thank you so much you are the king !

        Comment

        Working...
        X