@@ -353,16 +353,16 @@ def __init__(self, id, len, file, extra=None, png=None):
353
353
----------
354
354
355
355
id : int
356
- object id of the stream
356
+ Object id of the stream.
357
357
len : Reference or None
358
- an unused Reference object for the length of the stream;
359
- None means to use a memory buffer so the length can be inlined
358
+ An unused Reference object for the length of the stream;
359
+ None means to use a memory buffer so the length can be inlined.
360
360
file : PdfFile
361
- the underlying object to write the stream to
361
+ The underlying object to write the stream to.
362
362
extra : dict from Name to anything, or None
363
- extra key-value pairs to include in the stream header
363
+ Extra key-value pairs to include in the stream header.
364
364
png : dict or None
365
- if the data is already png encoded, the decode parameters
365
+ If the data is already png encoded, the decode parameters.
366
366
"""
367
367
self .id = id # object id
368
368
self .len = len # id of length object
@@ -440,12 +440,12 @@ def __init__(self, filename, metadata=None):
440
440
----------
441
441
442
442
filename : file-like object or string
443
- output target; if a string, a file will be opened for writing
443
+ Output target; if a string, a file will be opened for writing.
444
444
metadata : dict from strings to strings and dates
445
445
Information dictionary object (see PDF reference section 10.2.1
446
446
'Document Information Dictionary'), e.g.:
447
447
`{'Creator': 'My software', 'Author': 'Me',
448
- 'Title': 'Awesome fig'}`
448
+ 'Title': 'Awesome fig'}`.
449
449
450
450
The standard keys are `'Title'`, `'Author'`, `'Subject'`,
451
451
`'Keywords'`, `'Creator'`, `'Producer'`, `'CreationDate'`,
0 commit comments