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.7.0
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.8.0
Choose a head ref
  • 15 commits
  • 26 files changed
  • 6 contributors

Commits on Jul 22, 2022

  1. Configuration menu
    Copy the full SHA
    91357f0 View commit details
    Browse the repository at this point in the history
  2. ENH: Add writer.add_annotation, page.annotations, and generic.Annotat…

    …ionBuilder (#1120)
    
    * Add `page.annotations` (getter and setter)
    * Add `writer.add_annotation(page_number, annotation_dictionary)`
    * Add AnnotationBuilder to generate the `annotation_dictionary` for the different subtypes of annotations. Similarly, we could have an AnnotationsParser.
    
    See #107
    
    Closes #981
    MartinThoma authored Jul 22, 2022
    Configuration menu
    Copy the full SHA
    1a65a46 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aaac604 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f233c1a View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2022

  1. ROB: Handle outlines without valid destination (#1076)

    Adjust `PdfReader._build_outline(...)` and `PdfReader._build_destination(...)` to handle outline items with and without valid destinations
    
    Closes #193 : PdfReadError: Unexpected destination '/__WKANCHOR_2'
    Closes #956 : ValueError: Unresolved bookmark
    
    #1059 no longer throws an exception, but the outlines are not extracted either.
    
    Closes #1068 : Skip NameObject when building outline
    mtd91429 authored Jul 23, 2022
    Configuration menu
    Copy the full SHA
    89c0ff2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a6d27d7 View commit details
    Browse the repository at this point in the history
  3. ROB: Cope with null params for FitH /FitV destination (#1152)

    iaw PDF specifications, page 583
    
    Closes #1145
    pubpub-zz authored Jul 23, 2022
    Configuration menu
    Copy the full SHA
    27702c2 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2022

  1. DEV: Introduce _utils.logger_warning (#1148)

    - Exceptions: User code should handle the issue
    - warnings.warn: User should re-write something, e.g. deprecations
    - _utils.logger_warning: User might want to know in case of errors / post mortem analysis (or for developing PyPDF2 itself)
    MartinThoma authored Jul 24, 2022
    Configuration menu
    Copy the full SHA
    b429b39 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c529884 View commit details
    Browse the repository at this point in the history
  3. MAINT: Add diagnostic output to exception in read_from_stream (#1159)

    Co-authored-by: speedplane <[email protected]>
    MartinThoma and speedplane authored Jul 24, 2022
    Configuration menu
    Copy the full SHA
    102260d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2bf40f4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    35bec40 View commit details
    Browse the repository at this point in the history
  6. BUG: Set /AS for /Btn form fields in writer (#1161)

    Closes #434
    
    Co-authored-by: liuzhuoling <[email protected]>
    MartinThoma and liuzhuoling authored Jul 24, 2022
    Configuration menu
    Copy the full SHA
    fa5e3f7 View commit details
    Browse the repository at this point in the history
  7. MAINT: Break up parse_to_unicode (#1162)

    Just move parts in separate functions for easier readability
    MartinThoma authored Jul 24, 2022
    Configuration menu
    Copy the full SHA
    2de0973 View commit details
    Browse the repository at this point in the history
  8. REL: 2.8.0

    New Features (ENH):
    -  Add writer.add_annotation, page.annotations, and generic.AnnotationBuilder (#1120)
    
    Bug Fixes (BUG):
    -  Set /AS for /Btn form fields in writer (#1161)
    -  Ignore if /Perms verify failed (#1157)
    
    Robustness (ROB):
    -  Cope with utf16 character for space calculation (#1155)
    -  Cope with null params for FitH / FitV destination (#1152)
    -  Handle outlines without valid destination (#1076)
    
    Developer Experience (DEV):
    -  Introduce _utils.logger_warning (#1148)
    
    Maintenance (MAINT):
    -  Break up parse_to_unicode (#1162)
    -  Add diagnostic output to exception in read_from_stream (#1159)
    -  Reduce PdfReader.read complexity (#1151)
    
    Testing (TST):
    -  Add workflow tests found by arc testing (#1154)
    -  Decrypt file which is not encrypted (#1149)
    -  Test CryptRC4 encryption class; test image extraction filters (#1147)
    
    Full Changelog: 2.7.0...2.8.0
    MartinThoma committed Jul 24, 2022
    Configuration menu
    Copy the full SHA
    ec30171 View commit details
    Browse the repository at this point in the history
Loading