Skip to content

Instantly share code, notes, and snippets.

Avatar

Keerthi Prasad B V keerthiprasad

  • Bangalore
View GitHub Profile
@gholker
gholker / JpgToPdf.java
Last active Sep 12, 2021
JPG to PDF in Java
View JpgToPdf.java
import com.itextpdf.text.Document;
import com.itextpdf.text.Image;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.pdf.PdfWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.List;