Update docstring
This commit is contained in:
parent
2daae3ae9c
commit
a56b9f1f01
@ -262,7 +262,7 @@ class TextDoc(metaclass=ABCMeta):
|
|||||||
self.write_text(piece, links=links)
|
self.write_text(piece, links=links)
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def add_media(self, name, align, w_cm, h_cm, alt='', style_name=None, crop=None):
|
def add_media(self, name, align, w_cm, h_cm, alt='', style_name=None, img_dpi=72.0, crop=None):
|
||||||
"""
|
"""
|
||||||
Add a photo of the specified width (in centimeters).
|
Add a photo of the specified width (in centimeters).
|
||||||
|
|
||||||
@ -273,6 +273,7 @@ class TextDoc(metaclass=ABCMeta):
|
|||||||
:param h_cm: height in centimeters
|
:param h_cm: height in centimeters
|
||||||
:param alt: an alternative text to use. Useful for eg html reports
|
:param alt: an alternative text to use. Useful for eg html reports
|
||||||
:param style_name: style to use for captions
|
:param style_name: style to use for captions
|
||||||
|
:img_dpi: DPI (dots per inch) used for the image
|
||||||
:param crop: image cropping parameters
|
:param crop: image cropping parameters
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user