Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in_dir = "path/to/input_directory"
- pdfs = s2c.list(in_dir, "pdf")
- for p in pdfs:
- pp = p.open()
- pp.save(s2c.FileType.RASTER, s2c.join(in_dir, p.get_name()))
- preset = s2c.Preset()
- imgs = s2c.list(in_dir, "pcx")
- for i in imgs:
- r = i.open()
- v = r.vectorize(preset)
- v.save(r.path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement