Class UtilityController


  • public class UtilityController
    extends Object
    • Constructor Detail

      • UtilityController

        public UtilityController()
    • Method Detail

      • convertPdfToDocx

        public io.swagger.oas.inflector.models.ResponseContext convertPdfToDocx​(io.swagger.oas.inflector.models.RequestContext request,
                                                                                File pdfFile,
                                                                                String pdfFileName,
                                                                                String language,
                                                                                String ocrModeValue)
        Convert PDF to DOCX using Adobe PDF Services
        Parameters:
        request - the request context
        pdfFile - the PDF file to convert
        pdfFileName - the original name of the PDF file
        language - the language code (e.g., "en-US", "fr-FR")
        ocrMode - OCR mode: AUTO (default), ENABLED, or DISABLED
        Returns:
        ResponseContext containing the converted DOCX file or error
      • convertDocxToPdf

        public io.swagger.oas.inflector.models.ResponseContext convertDocxToPdf​(io.swagger.oas.inflector.models.RequestContext request,
                                                                                File docxFile,
                                                                                String docxFileName,
                                                                                String language)
        Convert DOCX to PDF using Adobe PDF Services
        Parameters:
        request - the request context
        docxFile - the DOCX file to convert
        docxFileName - the original name of the DOCX file
        language - the language code (e.g., "en-US", "fr-FR")
        Returns:
        ResponseContext containing the converted PDF file or error