web stats
Charts / Graphs in PDFs - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2015, 12:24 AM
seaston seaston is offline
OBX.3 Kenobi
 
Join Date: Feb 2010
Location: London, UK
Posts: 168
seaston is on a distinguished road
Default Charts / Graphs in PDFs

I wonder if anyone has tried to produce a graph / chart using some external library and embed it into a PDF using Mirth Connect? Please can you share any experience / suggestions?
Reply With Quote
  #2  
Old 05-11-2015, 07:04 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,117
narupley is on a distinguished road
Default

The obvious solution would be to use a Java or JavaScript library to create the chart and export it to an image of some kind. Then write the image to file, and include it in the PDF with an <img> tag. Right now the Document Writer doesn't support Base64 embedded PDFs, which is why you have to write it to a file first (it could be a temp file though). There's an issue for that: MIRTH-3385
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 05-11-2015, 10:05 PM
seaston seaston is offline
OBX.3 Kenobi
 
Join Date: Feb 2010
Location: London, UK
Posts: 168
seaston is on a distinguished road
Default

Thanks. I had considered using this:
http://www.highcharts.com/docs/expor...rts-serverside

I tried to embed the base64 and found this did not work so will have to go down the file route as you say.
Reply With Quote
Reply

Tags
chart, graph, pdf

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 08:30 AM.


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