public class GotenbergClient extends Object
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
https://github.com/thecodingmachine/gotenberg/,
https://www.codejava.net/java-se/networking/upload-files-by-sending-multipart-request-programmatically| Constructor and Description |
|---|
GotenbergClient() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
convertHTML(String gotenbertEndpoint,
InputStream inputStream) |
public static byte[] convertHTML(String gotenbertEndpoint, InputStream inputStream) throws IOException
IOExceptionCopyright © 2016–2021 Imixs Software Solutions GmbH. All rights reserved.