web stats
Convert RTF to PDF - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2015, 07:09 AM
bhesler bhesler is offline
Mirth Newb
 
Join Date: Jul 2015
Posts: 11
bhesler is on a distinguished road
Default Convert RTF to PDF

I am trying to convert the contents of OBX.5.5 that is a base 64 encoded RTF string to a PDF string to place back in OBX.5.5.

I found the forum article https://www.mirthcorp.com/community/...ad.php?t=14184 and that told me to do the following steps.

Convert RTF to plain text
Use Document Writer to create PDF from Text Store as attachment
Include attachment token in OBX.5

When I try converting to RTF using the function rtfToPlain text my variable is empty.

My code is below. I have seen many questions on converting RTF to PDF but no real solution. I am on Connect version 3.2.2.7694. Thanks for the help.

var RTFcontent = '';
var ToText = '';

RTFcontent = msg['OBX']['OBX.5']['OBX.5.5'].toString()

ToText = FileUtil.rtfToPlainText(RTFcontent, null);
Reply With Quote
  #2  
Old 04-09-2017, 06:22 AM
va3uv va3uv is offline
What's HL7?
 
Join Date: Apr 2017
Posts: 1
va3uv is on a distinguished road
Default

Hello:

I am new to Mirth.... just assessing feasibility to see if this product will do what I am expecting of it.

I have an HL7 message with an embedded RTF in OBX5 (as denoted by '{\rtf...' - can someone please provide me with a definitive set of steps or even better a Youtube video, etc., to show how I'd go about converting the embedded RTF into a PDF?

Many, Many thanks!

va3uv
Reply With Quote
Reply

Tags
pdf, rtf

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:22 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation