Coder Social home page Coder Social logo

em3ndez / hl72pdf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maschhoff/hl72pdf

0.0 2.0 0.0 30.42 MB

This is XML2PDF Renderer which is speacial build up for converting HL7 CDA and HL7 FHIR into PDF and embedding the xml file.

License: Other

Java 100.00%

hl72pdf's Introduction

HL72PDF // CDA2PDF // FHIR2PDF // XML2PDF

This is XML2PDF Renderer which is speacial build up for converting HL7 CDA and HL7 FHIR into PDF and embedding the xml file. This Project is based on my HTMLConverter and the Apache Xalan Projekt. You´ll find examples in the example.zip file.

Run it

To run this Projekt simply set your JAVA_HOME and run

java -jar HL72PDF.jar -c [cda file] [xslt stylesheet] [output filename without path]  

Example

java -jar ./HL72PDF.jar -c ./eLabormeldung.xml ./eLabormeldung.xsl DEeLabormeldung

To extract the attachment on CommandLine use:

java -jar HL72PDF.jar -e [path to pdf file]

Embed it

To embed this into you application simply add HL72PDF.jar to your classpath as library and call the static method convertToPDF(String cda_file, String stylesheet, String output_file)

HL72PDF.convertToPDF("C:/tmp/cda.xml", "C:/tmp/stylesheets/xda.xml", "MyPDFFile");

to extract the content use extractEmbeddedFiles(String filepath)

ExtractEmbeddedFiles.extractEmbeddedFiles("C:/tmp/MyPDFFile.pdf");

hl72pdf's People

Contributors

maschhoff avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.