Go to file
Nemo 044d21b8bc Switch to PyPDF3 2021-05-28 21:38:53 +05:30
docs Initial commit 2021-05-26 18:14:02 +05:30
src/pystitcher Switch to PyPDF3 2021-05-28 21:38:53 +05:30
tests Adds back metadata support for PDF 2021-05-28 21:29:02 +05:30
.coveragerc Initial commit 2021-05-26 18:14:02 +05:30
.editorconfig Functionally running, but only for me 2021-05-26 19:24:36 +05:30
.gitignore Initial commit 2021-05-26 18:14:02 +05:30
.readthedocs.yml Initial commit 2021-05-26 18:14:02 +05:30
AUTHORS.rst Initial commit 2021-05-26 18:14:02 +05:30
CHANGELOG.rst Initial commit 2021-05-26 18:14:02 +05:30
LICENSE.txt Initial commit 2021-05-26 18:14:02 +05:30
README.rst Switch to PyPDF3 2021-05-28 21:38:53 +05:30
pyproject.toml Initial commit 2021-05-26 18:14:02 +05:30
setup.cfg Switch to PyPDF3 2021-05-28 21:38:53 +05:30
setup.py Initial commit 2021-05-26 18:14:02 +05:30

README.rst

==========
pystitcher
==========

pystitcher stitches your PDF files together, generating nice customizable bookmarks for you using a declarative input in the form of a markdown file. It is written in pure python and uses `PyPDF3 <https://pypi.org/project/PyPDF3/>`_ for reading and writing PDF files.


Description
===========

Given this input::

	existing_bookmarks: flatten
	title: Complete Guide to the Personal Data Protection Bill
	author: Medianama
	keywords: privacy, surveillance, personal data protection
	subject: Personal Data Protection Bill
	# A Complete Guide to the Personal Data Protection Bill

	- [Cover](cover.pdf)

	# The Bills

	- [Personal Data Protection Bill, 2019](1.a.pdf)
	- [Personal Data Protection Bill, 2018](1.b.pdf)

	# Other key reading material

	- [Srikrishna Committee Report](2.a.pdf)
	- [Dvara Research's Personal Data Protection Bill](2.b.pdf)
	- [MP Shashi Tharoor's Data Protection Bill](2.c.pdf)
	- [MP Jay Panda's Data Protection Bill](2.d.pdf)
	- [SaveOurPrivacy.in bill](2.e.pdf)
	- [TRAI recommendations on privacy](2.f1.pdf)
	- [Comments on TRAI recommendations on privacy](2.f2.pdf)

Will generate a PDF with proper bookmarks:

.. image:: https://i.imgur.com/qPVpZGt.png

And the correct metadata::

	Title:          Complete Guide to the Personal Data Protection Bill
	Subject:        Personal Data Protection Bill
	Keywords:       privacy, surveillance, personal data protection
	Author:         Medianama
	Creator:        pystitcher/0.0.1
	Producer:       pystitcher/0.0.1

Configuration options can be specified with Meta data at the top of the file. These include:

.. _pyscaffold-notes:

Note
====

This project has been set up using PyScaffold 4.0.2. For details and usage
information on PyScaffold see https://pyscaffold.org/.