Package io.github.enxign.component.pdf
Class Html2PDF
java.lang.Object
io.github.enxign.component.pdf.Html2PDF
HTML을 받아서 PDF로 변환해주는 클래스
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Html2PDF
public Html2PDF()
-
-
Method Details
-
converted
public static org.json.simple.JSONObject converted(javax.servlet.http.HttpServletRequest request, String downloadPath, String baseUrl, String pdfName, String html) throws IOException HTML을 받아서 PDF로 변환해주는 메서드- Parameters:
request
- - 프로젝트 경로를 알기 위해downloadPath
- - 다운로드 받기 위한 경로baseUrl
- - Server의 기본 경로(루트 경로)pdfName
- - 다운로드할 PdfNamehtml
- - Pdf에 그릴 HTML- Returns:
- outJSON - {res: boolean, pdfName: 다운로드 된 Pdf명, originPdfName: 인코딩 되기 전의 파일명}
- Throws:
IOException
- 예외 발생 시
-