Class CmsPdfFormatterUtils

java.lang.Object
org.opencms.pdftools.CmsPdfFormatterUtils

public final class CmsPdfFormatterUtils extends Object
Utility class for PDF formatting.

  • Method Details

    • executeJsp

      public static byte[] executeJsp(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CmsResource jsp, CmsResource content) throws Exception
      Executes a JSP with a given content as input and returns the output of the JSP.

      Parameters:
      cms - the current CMS context
      request - the current request
      response - the current response
      jsp - the jsp resource to execute
      content - the content to render with the JSP
      Returns:
      the output of the JSP
      Throws:
      Exception - if something goes wrong