We currently have pypdf.generic._data_structures.StreamObject.get_data and pypdf.generic._data_structures.StreamObject.set_data to get and update stream data.
This is not really Pythonic, which usually has a property data with a getter and setter implementation instead.
For this reason, we should evaluate replacing this function accordingly, including a deprecation process.
We currently have
pypdf.generic._data_structures.StreamObject.get_dataandpypdf.generic._data_structures.StreamObject.set_datato get and update stream data.This is not really Pythonic, which usually has a property
datawith a getter and setter implementation instead.For this reason, we should evaluate replacing this function accordingly, including a deprecation process.