Package org.imixs.archive.importer.mail
Class GotenbergClient
- java.lang.Object
-
- org.imixs.archive.importer.mail.GotenbergClient
-
public class GotenbergClient extends Object
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 Constructor Description GotenbergClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]convertHTML(String gotenbertEndpoint, InputStream inputStream)
-
-
-
Method Detail
-
convertHTML
public static byte[] convertHTML(String gotenbertEndpoint, InputStream inputStream) throws IOException
- Throws:
IOException
-
-