Package org.opencms.pdftools
Class CmsPdfFormatterUtils
- java.lang.Object
-
- org.opencms.pdftools.CmsPdfFormatterUtils
-
public final class CmsPdfFormatterUtils extends java.lang.Object
Utility class for PDF formatting.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
executeJsp
public static byte[] executeJsp(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CmsResource jsp, CmsResource content) throws java.lang.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:
java.lang.Exception
- if something goes wrong
-
-