Spring PDF Example
@RequestMapping (value="/pdf" ) public void pdfCreate(HttpServletResponse response, OutputStream outputStream){ Document document = new Document(); try { // 파일 출력 - FileOutputStream file = new FileOutputStream(new File("C:/HelloWorld.pdf")); // File Write PdfWriter.getInstance(document, file); // Stream Output PdfWriter.getInstance(document, outputStream); document.open(); // // Create our first paragraph for the pdf document to be // created. We also set the alignment and the font ...