Skip to content

Commit b530194

Browse files
committed
fix and clean doc
1 parent f2b11da commit b530194

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pypdf/_writer.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,14 @@ def __exit__(
250250
@property
251251
def pdf_header(self) -> str:
252252
"""
253+
Read/Write Property
253254
Header of the PDF document that is written.
254255
255-
This should be something like ``b'%PDF-1.5'``. It is recommended to set
256+
This should be something like ``'%PDF-1.5'``. It is recommended to set
256257
the lowest version that supports all features which are used within the
257258
PDF file.
259+
260+
Note: `pdf_header` returns a string but accepts bytes or str for writing
258261
"""
259262
return self._header.decode()
260263

@@ -351,7 +354,7 @@ def remove_page(
351354
int : page number to be removed
352355
353356
clean: replace PageObject with NullObject to prevent destination,
354-
annotation to reference a detached page
357+
annotation to reference a detached page
355358
"""
356359
if self.flattened_pages is None:
357360
return

0 commit comments

Comments
 (0)