List of usage examples for com.itextpdf.text.pdf.codec GifImage getFrameCount
public int getFrameCount()
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));/* w w w .ja v a 2s .c o m*/ } }