Skip to content

Commit

Permalink
feat: 0.2.0
Browse files Browse the repository at this point in the history
This update adds support for RunLengthDecode and encryption. It also corrects issues in the PNG predictor functions.
  • Loading branch information
aescarias committed May 5, 2024
1 parent 9059e59 commit 1edc2be
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

from pdfnaut import __version__

project = 'pdfnaut'
copyright = '2024, Angel Carias'
author = 'Angel Carias'
release = '0.1.1'
release = __version__

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
26 changes: 25 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,30 @@ Features

- Low level PDF manipulation
- Encryption (AES/ARC4)
- Serialization of basic documents
- Document building/serializations

Install
-------

``pdfnaut`` can be installed from PyPI:

.. tab-set::

.. tab-item:: Linux/Mac

.. code-block:: sh
python3 -m pip install pdfnaut
.. tab-item:: Windows

.. code-block:: sh
python -m pip install pdfnaut
.. important::
While ``pdfnaut`` supports encryption, it does not implement these algorithms. You must either supply your own implementations or preferably install a package like ``pycryptodome``
that includes these algorithms.

Examples
--------
Expand Down Expand Up @@ -51,6 +74,7 @@ The next example illustrates how ``pdfnaut`` can currently be used to read an ex
PDF Tokenizer <reference/parsers/simple>
PDF Parser <reference/parsers/pdf>
PDF Serializer <reference/serializer>
Standard Security Handler <reference/security_handler>
Objects <reference/objects>
Exceptions <reference/exceptions>
Filters <reference/filters>
Expand Down
6 changes: 6 additions & 0 deletions docs/source/reference/security_handler.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Standard Security Handler
=========================

.. automodule:: pdfnaut.security_handler
:undoc-members:
:members:
2 changes: 1 addition & 1 deletion pdfnaut/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
__all__ = ("PdfParser", "PdfSerializer")

__name__ = "pdfnaut"
__version__ = "0.1.1"
__version__ = "0.2.0"
__description__ = "Explore PDFs with ease"
__license__ = "Apache 2.0"
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[project]
name = "pdfnaut"
version = "0.1.1"
description = "Explore PDFs with ease"
authors = [
{ name = "Angel Carias" }
Expand All @@ -21,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
dynamic = ["version"]
dependencies = []

[project.urls]
Expand All @@ -38,6 +38,9 @@ pythonpath = ["."]
where = ["."]
include = ["pdfnaut*"]

[tool.setuptools.dynamic]
version = { attr = "pdfnaut.__version__" }

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

0 comments on commit 1edc2be

Please sign in to comment.