convertToPdf
public static com.litongjava.model.http.response.ResponseVo convertToPdf(byte[] inputBytes,
String fileName)
Converts a supported document to PDF using the LibreOffice API.
Supported formats: DOC, DOCX, PPT, PPTX, XLS, XLSX, ODT, ODS, ODP
- Parameters:
inputBytes - The byte array of the input file to be converted.
fileName - The name of the input file, including its extension (e.g., "document.pptx").
- Returns:
- ResponseVo containing the API response, including headers and the resulting PDF bytes or error message.