eeb2b659aa
``` > python pdf-image-extractor.py ..\PDF_Samples\GeoBase_NHNC1_Data_Model_UML_EN.pdf Traceback (most recent call last): File "pdf-image-extractor.py", line 33, in <module> img = Image.frombytes(mode, size, data) File "C:\Python27\ArcGIS10.3\lib\site-packages\PIL\Image.py", line 2047, in frombytes im.frombytes(data, decoder_name, args) File "C:\Python27\ArcGIS10.3\lib\site-packages\PIL\Image.py", line 731, in frombytes raise ValueError("not enough image data") ValueError: not enough image data ``` Source: http://ftp2.cits.rncan.gc.ca/pub/geobase/official/nhn_rhn/doc/ """ All distributed data are subject to the Open Government Licence – Canada. Canada grants to the licensee a non-exclusive, fully paid, royalty-free right and licence to exercise all intellectual property rights in the data. This includes the right to use, incorporate, sublicense (with further right of sublicensing), modify, improve, further develop, and distribute the Data; and to manufacture or distribute derivative products. -- http://www.nrcan.gc.ca/earth-sciences/geography/topographic-information/free-data-geogratis/licence/17285 """ |
||
---|---|---|
PDF_Samples | ||
PyPDF2 | ||
Resources | ||
Sample_Code | ||
Scripts | ||
Tests | ||
.gitignore | ||
CHANGELOG | ||
LICENSE | ||
MANIFEST.in | ||
README.md | ||
setup.py |
README.md
#PyPDF2
PyPDF2 is a pure-python PDF library capable of splitting, merging together, cropping, and transforming the pages of PDF files. It can also add custom data, viewing options, and passwords to PDF files. It can retrieve text and metadata from PDFs as well as merge entire files together.
Homepage
http://mstamy2.github.io/PyPDF2/
##Examples
Please see sample code
folder
##Documentation
Documentation is available at
https://pythonhosted.org/PyPDF2/
##FAQ
Please see
http://mstamy2.github.io/PyPDF2/FAQ.html
##Tests PyPDF2 includes a test suite built on the unittest framework. All tests are located in the "Tests" folder. Tests can be run from the command line by:
python -m unittest Tests.tests