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.2.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.3.0
Choose a head ref
  • 11 commits
  • 57 files changed
  • 4 contributors

Commits on Jun 17, 2022

  1. TST: Add mutmut config

    MartinThoma committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    c540896 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2022

  1. DOC: Fix typos (#1007)

    kianmeng authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    d3fe4b7 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2022

  1. Configuration menu
    Copy the full SHA
    c57e59b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d426a0 View commit details
    Browse the repository at this point in the history
  3. ENH: Add decrypt support for V5 and AES-128, AES-256 (R5 only) (#749)

    This is a rewrite of the encryption part to support V4 and AES-128 encryption (ONLY decrypt for now)
    PyCryptodome was added as an optional dependency for AES.
    
    It does NOT add support for encryption R=6 as introduced by PDF 2.0
    
    Closes #528
    exiledkingcc authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    868f977 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    797963a View commit details
    Browse the repository at this point in the history
  5. DEP: Rename names to be PEP8-compliant (#967)

    All of the following get in [the deprecation process](https://pypdf2.readthedocs.io/en/latest/dev/deprecations.html). This means the old parameters will work for a while to give users a chance to migrate without service disruptions.
    
    `PdfWriter.get_page`: the pageNumber parameter is renamed to page_number
    
    `PyPDF2.filters`:
    
    * For all classes, a parameter rename: decodeParms ➔ decode_parms
    * decodeStreamData ➔ decode_stream_data
    
    `PyPDF2.xmp`:
    
    * XmpInformation.rdfRoot ➔ XmpInformation.rdf_root
    * XmpInformation.xmp_createDate ➔ XmpInformation.xmp_create_date
    * XmpInformation.xmp_creatorTool ➔ XmpInformation.xmp_creator_tool
    * XmpInformation.xmp_metadataDate ➔ XmpInformation.xmp_metadata_date
    * XmpInformation.xmp_modifyDate ➔ XmpInformation.xmp_modify_date
    * XmpInformation.xmpMetadata ➔ XmpInformation.xmp_metadata
    * XmpInformation.xmpmm_documentId ➔ XmpInformation.xmpmm_document_id
    * XmpInformation.xmpmm_instanceId ➔ XmpInformation.xmpmm_instance_id
    
    `PyPDF2.generic`:
    
    * readHexStringFromStream ➔ read_hex_string_from_stream
    * initializeFromDictionary ➔ initialize_from_dictionary
    * createStringObject ➔ create_string_object
    * TreeObject.hasChildren ➔ TreeObject.has_children
    * TreeObject.emptyTree ➔ TreeObject.empty_tree
    MartinThoma authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    953a11d View commit details
    Browse the repository at this point in the history
  6. ROB: Fix corrupted (wrongly) linear PDF (#1008)

    Fix: Rescan the whole PDF and update/rebuild the trailer
    
    Closes #989
    pubpub-zz authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    f62e051 View commit details
    Browse the repository at this point in the history
  7. STY: Put pure data mappings in separate files (#1005)

    Created a private codecs module
    MartinThoma authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    2c53813 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ad6e941 View commit details
    Browse the repository at this point in the history
  9. REL: 2.3.0

    The highlight of this release is improved support for file encryption
    (AES-128 and AES-256, R5 only). See #749 for the amazing work of
    @exiledkingcc 🎊 Thank you 🤗
    
    Deprecations (DEP):
    -  Rename names to be PEP8-compliant (#967)
      - `PdfWriter.get_page`: the pageNumber parameter is renamed to page_number
      - `PyPDF2.filters`:
        * For all classes, a parameter rename: decodeParms ➔ decode_parms
        * decodeStreamData ➔ decode_stream_data
      - `PyPDF2.xmp`:
        * XmpInformation.rdfRoot ➔ XmpInformation.rdf_root
        * XmpInformation.xmp_createDate ➔ XmpInformation.xmp_create_date
        * XmpInformation.xmp_creatorTool ➔ XmpInformation.xmp_creator_tool
        * XmpInformation.xmp_metadataDate ➔ XmpInformation.xmp_metadata_date
        * XmpInformation.xmp_modifyDate ➔ XmpInformation.xmp_modify_date
        * XmpInformation.xmpMetadata ➔ XmpInformation.xmp_metadata
        * XmpInformation.xmpmm_documentId ➔ XmpInformation.xmpmm_document_id
        * XmpInformation.xmpmm_instanceId ➔ XmpInformation.xmpmm_instance_id
      - `PyPDF2.generic`:
        * readHexStringFromStream ➔ read_hex_string_from_stream
        * initializeFromDictionary ➔ initialize_from_dictionary
        * createStringObject ➔ create_string_object
        * TreeObject.hasChildren ➔ TreeObject.has_children
        * TreeObject.emptyTree ➔ TreeObject.empty_tree
    
    New Features (ENH):
    -  Add decrypt support for V5 and AES-128, AES-256 (R5 only) (#749)
    
    Robustness (ROB):
    -  Fix corrupted (wrongly) linear PDF (#1008)
    
    Maintenance (MAINT):
    -  Move PDF_Samples folder into ressources
    -  Fix typos (#1007)
    
    Testing (TST):
    -  Improve encryption/decryption test (#1009)
    -  Add merger test cases with real PDFs (#1006)
    -  Add mutmut config
    
    Code Style (STY):
    -  Put pure data mappings in separate files (#1005)
    -  Make encryption module private, apply pre-commit (#1010)
    
    Full Changelog: 2.2.1...2.3.0
    MartinThoma committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    d5bc278 View commit details
    Browse the repository at this point in the history
Loading