Skip to content
/ straw Public

Extract images and other streams from PDF files 🐍.

License

Notifications You must be signed in to change notification settings

oelin/straw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Straw

Extract images and other streams from PDF files 🐍.

Introduction

This library is dedicated to implementing extraction procedures for binary streams in PDF files. Currently this only includes images, however we hope to expand to other streams, and indeed other file formats.

Installation

$ pip install straw

API

>>> import straw

>>> images = straw.extract_images('./file.pdf')

The extract_images method returns an array of image instances, each having a data attribute which holds the raw binary data of the image. The image can be saved to disk by simply writing this data to a file.

Future

  • Pillow integration
  • Support for stream formats other than images
  • Support for other file formats with embedded streams.

About

Extract images and other streams from PDF files 🐍.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages