Skip to content

Instantly share code, notes, and snippets.

@szahn
szahn / TiffToPDFConverter
Last active September 18, 2017 15:24
Converting a tiff to pdf using iText.
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.List;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Image;
import com.itextpdf.text.io.FileChannelRandomAccessSource;