Package org.imixs.archive.importer.mail
Class GotenbergClient
java.lang.Object
org.imixs.archive.importer.mail.GotenbergClient
Gotenberg is a Docker-powered stateless API for converting HTML, Markdown and
Office documents to PDF.
This java client can be used to send a HTML file to the docker service to receive a PDF file based on the Gotenberg API. This implementation uses pure java based on JDK 1.8 and did not depend on any external library. You can use this client on your own code base or as a scaffold for a custom implementation.
The data is expected in UTF-8 encoding
- Version:
- 1.0
- Author:
- rsoika
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]convertHTML(String gotenbertEndpoint, InputStream inputStream)
-
Constructor Details
-
GotenbergClient
public GotenbergClient()
-
-
Method Details
-
convertHTML
public static byte[] convertHTML(String gotenbertEndpoint, InputStream inputStream) throws IOException - Throws:
IOException
-