Commits

Hideo Hattori committed 8d83124

add example

Comments (0)

Files changed (1)

example/writeimages_with_blob.py

+#!/usr/bin/env python
+import pgmagick
+
+im = pgmagick.Image('existing.tif')
+
+pdf = pgmagick.ImageList()
+pdf.append(im)
+pdf.append(im)
+pdf.writeImages('new.pdf')
+
+blob = pgmagick.Blob()
+pdf.writeImages(blob)
+print blob.length()