Package org.opencms.pdftools
Class CmsPdfFormatterUtils
java.lang.Object
org.opencms.pdftools.CmsPdfFormatterUtils
Utility class for PDF formatting.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
executeJsp
(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CmsResource jsp, CmsResource content) Executes a JSP with a given content as input and returns the output of the JSP.
-
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 contextrequest
- the current requestresponse
- the current responsejsp
- the jsp resource to executecontent
- the content to render with the JSP- Returns:
- the output of the JSP
- Throws:
Exception
- if something goes wrong
-