pdfls
pdfls is a small utility to debug a PDF file.
pdftitle uses pdfminer.six project to parse PDF document.
Installation
pip install pdfls
Usage
pdfls -p <pdf-file> displays the structure of the PDF file.
For example:
$ pdfls -p knuth65.pdf
catalog.objnum: 713
outlines:
pagetree.objnum: 709
page[1].objnum: 715
xobject.types: [ Im1=XObject.Image/CCITTFaxDecode.1710x2580 ]
content.length: [ 654/2094 548/2092 556/2090 600/2094 605/2103 595/2090 560/2096 615/2066 ]
page[2].objnum: 1
xobject.types: [ Im1=XObject.Image/CCITTFaxDecode.1710x2580 ]
content.length: [ 113/134 4054/22698 41/39 11/3 ]
page[3].objnum: 13
xobject.types: [ Im1=XObject.Image/CCITTFaxDecode.1710x2580 ]
content.length: [ 172/332 2784/14487 79/80 41/39 11/3 ]
...
...
shows the catalog, page tree and first 3 page objects. For each page object, xobjects and contents (content streams) are shown. For each XObject, its type.subtype/filter.widthxheight is shown. For each content stream, its raw data len/decoded data len is shown.
If -i option is given, it also shows the instructions.
More info can be seen in verbose mode with -v. This is mostly for development and debugging of pdfls.
Changes
0.1:
- first public release.
- probably unstable version, only for testing.
Metadata
Release files for pdfls 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdfls-0.1.tar.gz | 4.2 kB | Without provenance | Details for pdfls-0.1.tar.gz |
Release files / pdfls-0.1.tar.gz
| Download URL | pdfls-0.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dde35e9df51b9107eab2fc2288b6044d49582e25be0887789b8506e63fe23744
|
|
BLAKE2b-256 checksum How to use checksums |
c7631ed504c29c3695badb6437ff999e5c383023ca15afc92554bbabf684b04f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Security for pdfls 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.