File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -250,11 +250,14 @@ def __exit__(
250
250
@property
251
251
def pdf_header (self ) -> str :
252
252
"""
253
+ Read/Write Property
253
254
Header of the PDF document that is written.
254
255
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
256
257
the lowest version that supports all features which are used within the
257
258
PDF file.
259
+
260
+ Note: `pdf_header` returns a string but accepts bytes or str for writing
258
261
"""
259
262
return self ._header .decode ()
260
263
@@ -351,7 +354,7 @@ def remove_page(
351
354
int : page number to be removed
352
355
353
356
clean: replace PageObject with NullObject to prevent destination,
354
- annotation to reference a detached page
357
+ annotation to reference a detached page
355
358
"""
356
359
if self .flattened_pages is None :
357
360
return
You can’t perform that action at this time.
0 commit comments