Package io.pdfapi.client
Class PdfApiClient
java.lang.Object
io.pdfapi.client.PdfApiClient
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPdfApiClient(PdfApiClientConfig config, HttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()convert(ConversionRequest request) Convert HTML to PDF using the provided conversion request.
-
Constructor Details
-
PdfApiClient
-
-
Method Details
-
convert
Convert HTML to PDF using the provided conversion request.- Parameters:
request- conversion request containing all necessary data- Returns:
- PDF content as input stream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-