Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: py-pdf/pypdf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.8.1
Choose a base ref
...
head repository: py-pdf/pypdf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.9.0
Choose a head ref
  • 14 commits
  • 31 files changed
  • 4 contributors

Commits on Jul 27, 2022

  1. BUG: Incomplete Graphic State save/restore (#1172)

    Graphic state shall store also the font, font size, ...
    
    See #1142
    pubpub-zz authored Jul 27, 2022
    Configuration menu
    Copy the full SHA
    d8bd12f View commit details
    Browse the repository at this point in the history
  2. BUG: Named Dest in PDF1.1 (#1174)

    Named destinations are stored in a dictionary in PDF 1.1
    
    Closes #1173
    pubpub-zz authored Jul 27, 2022
    Configuration menu
    Copy the full SHA
    9c8252d View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2022

  1. Configuration menu
    Copy the full SHA
    7b852ac View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2022

  1. Configuration menu
    Copy the full SHA
    8d5037c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85ca871 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2d48068 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2022

  1. MAINT: Consistent terminology for outline items (#1156)

    This PR makes sure PyPDF2 uses a consistent nomenclature for the outline:
    
    * **Outline**: A document has exactly one outline (also called "table of contents", in short toc). That outline might be empty.
    * **Outline Item**: An element within an outline. This is also called a "bookmark" by some PDF viewers.
    
    This means that some names will be deprecated to ensure consistency:
    
    ## PdfReader
    
    * `outlines` ➔ `outline`
    * `_build_outline()` ➔ `_build_outline_item()`
    
    ## PdfWriter
    
    * Keep `get_outline_root()`
    * `add_bookmark_dict()` ➔ `add_outline()` 
    * `add_bookmark()` ➔ `add_outline_item()`
    
    
    ## PdfMerger
    
    * `find_bookmark()` ➔ `find_outline_item()`
    * `_write_bookmarks()` ➔ `_write_outline()`
    * `_write_bookmark_on_page()` ➔ `_write_outline_item_on_page()`
    * `_associate_bookmarks_to_pages()` ➔ `_associate_outline_items_to_pages()`
    * Keep `_trim_outline()`
    
    ## generic.py
    
    * `Bookmark` ➔ `OutlineItem`
    
    Closes #1048
    Closes #1098
    mtd91429 authored Jul 30, 2022
    Configuration menu
    Copy the full SHA
    8c532a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8a27fa4 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2022

  1. Configuration menu
    Copy the full SHA
    89033cb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2a5a199 View commit details
    Browse the repository at this point in the history
  3. ENH: Add link annotation (#1189)

    * Add AnnotationBuilder.link(...)
    * Allow creating a RectangleObject from a RectangleObject. This is useful to create a copy or to ensure we have a RectangleObject with little code.
    * Deprecate `writer.add_link` by `writer.add_annotation(AnnotationBuilder.link(...))`.
    * Add test for reading an external link annotation.
    
    Closes #284
    MartinThoma authored Jul 31, 2022
    Configuration menu
    Copy the full SHA
    ab01f14 View commit details
    Browse the repository at this point in the history
  4. ENH: Add support for pathlib.Path in PdfMerger.merge (#1190)

    Replace many os.path usages with pathlib
    MartinThoma authored Jul 31, 2022
    Configuration menu
    Copy the full SHA
    42ae312 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7c7ef77 View commit details
    Browse the repository at this point in the history
  6. REL: 2.9.0

    New Features (ENH):
    -  Add ability to add hex encoded colors to outline items (#1186)
    -  Add support for pathlib.Path in PdfMerger.merge (#1190)
    -  Add link annotation (#1189)
    -  Add capability to filter text extraction by orientation  (#1175)
    
    Bug Fixes (BUG):
    -  Named Dest in PDF1.1 (#1174)
    -  Incomplete Graphic State save/restore (#1172)
    
    Documentation (DOC):
    -  Update changelog url in package metadata (#1180)
    -  Table extraction (#1179)
    -  Mention pyHanko for signing PDF documents (#1178)
    -  We now have CMAP support (#1177)
    
    Maintenance (MAINT):
    -  Consistant usage of warnings / log messages (#1164)
    -  Consistent terminology for outline items (#1156)
    
    Code Style (STY):
    -  Apply pre-commit (#1188)
    
    Full Changelog: 2.8.1...2.9.0
    MartinThoma committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    0a6676f View commit details
    Browse the repository at this point in the history
Loading