Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to clear existing bookmarks, fixed pdftk bookmark file importation, unescaped HTML entities from pdftk data_dump #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

smfukaya
Copy link

Summary:

Made three changes:

  • I added the option -c or --clear-bookmarks to remove the existing bookmarks before importing new ones (because --collapse-level was duplicating them).
  • I fixed the importation of pdfk bookmark file if specified.
  • Unescaped HTML entities (very common in Latin languages) exported in bookmark titles by pdftk data_dump

I'm not a python programmer (indeed, this was my first try) so perhaps something need to be reviewed (I only tested it with python 3.10.0 on Windows).

Also, I made my changes based on 1.1.0 published at https://pypi.org/project/pdf-bookmark/1.1.0/ and that have the following differences with the latest github code.

image

image

Sergio Minoru Fukaya added 3 commits July 25, 2022 12:04
… before importing (it was duplicating)

- Added support to bookmark file importation in pdftk format
… before importing (it was duplicating).

- Added support to bookmark file importation in pdftk format.
- Unescaped HTML entities from pdftk bookmarks.
… before importing (it was duplicating).

- Added support to bookmark file importation in pdftk format.
- Unescaped HTML entities from pdftk bookmarks dump_data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant