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: 3.4.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: 3.5.0
Choose a head ref
  • 20 commits
  • 40 files changed
  • 7 contributors

Commits on Feb 15, 2023

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

Commits on Feb 23, 2023

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

Commits on Feb 24, 2023

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

Commits on Feb 25, 2023

  1. Configuration menu
    Copy the full SHA
    f98ff02 View commit details
    Browse the repository at this point in the history
  2. DOC: merge_transformed_page() (#1647)

    Several issues could have been avoided if the example in this PR existed before, e.g. #1630, #1426
    
    Co-authored-by: Louis <spalax@gresille.org>
    paternal and Louis authored Feb 25, 2023
    Configuration menu
    Copy the full SHA
    cc32b59 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    215df56 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2e4b657 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5173238 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5b4bb27 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5412dd3 View commit details
    Browse the repository at this point in the history
  8. BUG: Let PdfWriter.pages return PageObject after calling `clone_docum…

    …ent_from_reader()` (#1613)
    
    Currently, the PdfWriter.pages attribute returns a `DictionartyObject`. With this fix, the attribute will return Iterable[PageObject].
    
    Fixes #1595
    
    See also:
    * #1650
    * #1654
    pubpub-zz authored Feb 25, 2023
    Configuration menu
    Copy the full SHA
    a2a1275 View commit details
    Browse the repository at this point in the history
  9. BUG: Allow decryption with empty password for AlgV5 (#1663)

    The error message seen before was:
    
        ValueError: Incorrect IV length (it must be 16 bytes long)
    
    Fixes #1659
    christopher5106 authored Feb 25, 2023
    Configuration menu
    Copy the full SHA
    14b61ea View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0a83028 View commit details
    Browse the repository at this point in the history
  11. ROB: Cope with invalid objects in IndirectObject.clone (#1637)

    Cope with invalid PDF files where an object can not be found
    
    Fixes #1631
    pubpub-zz authored Feb 25, 2023
    Configuration menu
    Copy the full SHA
    b14dabb View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2023

  1. Configuration menu
    Copy the full SHA
    44bc1fc View commit details
    Browse the repository at this point in the history
  2. ENH: Add PdfWriter.remove_objects_from_page(page: PageObject, to_dele…

    …te: ObjectDeletionFlag) (#1648)
    
    This fixes remove_text to set contents as indirect_objects in accordance with the PDF specification.
    It wipes out text in XObject forms as well.
    
    The same issues were fixed for remove_images()
    
    Finally, the new method
        PdfWriter.remove_objects_from_page(page: PageObject, to_delete: ObjectDeletionFlag)
    was created. This allows a more fine-granular control of what to delete. It also is easy to expand via the to_delete flag.
    
    Closes #1644
    Closes #1650
    pubpub-zz authored Feb 26, 2023
    Configuration menu
    Copy the full SHA
    67b085b View commit details
    Browse the repository at this point in the history
  3. ENH: Add reader.attachments public interface (#1661)

    Add `PdfReader.attachments -> Mapping[str, List[bytes]] as a public interface.
    
    The heavy-lifting was done by @pubpub-zz in #1611 . This PR only adds the interface for the exiting functions.
    MartinThoma authored Feb 26, 2023
    Configuration menu
    Copy the full SHA
    d343445 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    638903c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b0d4e85 View commit details
    Browse the repository at this point in the history
  6. REL: Version 3.5.0, 2023-02-26

    New Features (ENH)
    -  Add reader.attachments public interface (#1611, #1661)
    -  Add PdfWriter.remove_objects_from_page(page: PageObject, to_delete: ObjectDeletionFlag) (#1648)
    -  Allow free-text annotation to have transparent border/background (#1664)
    
    Bug Fixes (BUG)
    -  Allow decryption with empty password for AlgV5 (#1663)
    -  Let PdfWriter.pages return PageObject after calling `clone_document_from_reader()` (#1613)
    -  Invalid font pointed during merge_resources (#1641)
    
    Robustness (ROB)
    -  Cope with invalid objects in IndirectObject.clone (#1637)
    -  Improve tolerance to invalid Names/Dests (#1658)
    -  Decode encoded values in get_fields (#1636)
    -  Let PdfWriter.merge cope with missing "/Fields" (#1628)
    
    [Full Changelog](3.4.1...3.5.0)
    MartinThoma committed Feb 26, 2023
    Configuration menu
    Copy the full SHA
    5e792c2 View commit details
    Browse the repository at this point in the history
Loading