List of usage examples for com.itextpdf.text.pdf.codec GifImage GifImage
public GifImage(InputStream is) throws IOException
From source file:com.pdf.GetPdf.java
public static void addGif(Document document, String path) throws IOException, DocumentException { GifImage img = new GifImage(path); int n = img.getFrameCount(); for (int i = 1; i <= n; i++) { document.add(img.getImage(i));/*from w w w . ja va 2 s . c o m*/ } }