Spring Boot/Unit Code (3) 썸네일형 리스트형 [spring boot] PDF 출력 - iText7_01(TEXT) import java.io.File; import java.io.FileNotFoundException; import com.itextpdf.io.IOException; import com.itextpdf.kernel.pdf.PdfDocument; import com.itextpdf.kernel.pdf.PdfWriter; import com.itextpdf.layout.Document; import com.itextpdf.layout.element.Paragraph; public class Itext7_03 { public static void main(String[] args) throws IOException { try { File file = new File("Hello_PDF.pdf"); PdfW.. [spring boot] PDF 출력 - iText7_02(Image) 이미지를byte[]로 만들어 PDF 문서에 추가합니다. import java.io.File; import java.io.FileInputStream; import com.itextpdf.io.IOException; import com.itextpdf.io.image.ImageData; import com.itextpdf.io.image.ImageDataFactory; import com.itextpdf.io.source.ByteArrayOutputStream; import com.itextpdf.kernel.pdf.PdfDocument; import com.itextpdf.kernel.pdf.PdfWriter; import com.itextpdf.layout.Document; import com.itex.. [spring boot] PDF 출력 - iText7_01(Image) import java.io.File; import com.itextpdf.io.image.ImageData; import com.itextpdf.io.image.ImageDataFactory; import com.itextpdf.kernel.pdf.PdfDocument; import com.itextpdf.kernel.pdf.PdfWriter; import com.itextpdf.layout.Document; import com.itextpdf.layout.element.Image; public class Itext7_01 { public static void main(String[] args) throws Exception { File file = new File("iText7_Image_01.pdf".. 이전 1 다음