@@ -390,11 +390,10 @@ def xmp_metadata(self) -> Optional[PdfObject]:
390
390
Retrieve XMP (Extensible Metadata Platform) data relevant to the this
391
391
object, if available.
392
392
393
- Stability: Added in v1.12, will exist for all future v1.x releases.
394
- See Table 315 – Additional entries in a metadata stream dictionary
393
+ See Table 347 — Additional entries in a metadata stream dictionary.
395
394
396
395
Returns:
397
- Returns a {@link # xmp.XmpInformation XmlInformation} instance
396
+ Returns a :class:`~pypdf. xmp.XmpInformation` instance
398
397
that can be used to access XMP metadata from the document. Can also
399
398
return None if no metadata was found on the document root.
400
399
"""
@@ -969,20 +968,23 @@ def set_data(self, data: bytes) -> None: # deprecated
969
968
970
969
class ContentStream (DecodedStreamObject ):
971
970
"""
972
- In order to be fast, this datastructure can contain either:
971
+ In order to be fast, this data structure can contain either:
972
+
973
973
* raw data in ._data
974
- * parsed stream operations in ._operations
974
+ * parsed stream operations in ._operations.
975
+
976
+ At any time, ContentStream object can either have both of those fields defined,
977
+ or one field defined and the other set to None.
978
+
979
+ These fields are "rebuilt" lazily, when accessed:
975
980
976
- At any time, ContentStream object can either have one or both of those fields defined,
977
- and zero or one of those fields set to None.
981
+ * when .get_data() is called, if ._data is None, it is rebuilt from ._operations.
982
+ * when .operations is called, if ._operations is None, it is rebuilt from ._data .
978
983
979
- Those fields are "rebuilt" lazily, when accessed:
980
- * when .get_data() is called, if ._data is None, it is rebuilt from ._operations
981
- * when .operations is called, if ._operations is None, it is rebuilt from ._data
984
+ Conversely, these fields can be invalidated:
982
985
983
- On the other side, those fields can be invalidated:
984
- * when .set_data() is called, ._operations is set to None
985
- * when .operations is set, ._data is set to None
986
+ * when .set_data() is called, ._operations is set to None.
987
+ * when .operations is set, ._data is set to None.
986
988
"""
987
989
988
990
def __init__ (
0 commit comments