ModifyPathRequest
Kind: class
Module/package: models
SDK: pdfdancer-client-python 2.0.0
Request to modify path stroke and fill colors.
Parameters:
- object_ref: Reference to the path to modify.
- stroke_color: New stroke color (optional - null means don't change).
- fill_color: New fill color (optional - null means don't change).
Example:
req = ModifyPathRequest(object_ref=path_ref, stroke_color=Color(255, 0, 0), fill_color=None)
payload = req.to_dict()
Declaration
ModifyPathRequest(object_ref: pdfdancer.models.ObjectRef, stroke_color: pdfdancer.models.Color | None = None, fill_color: pdfdancer.models.Color | None = None) -> None
Members
__init__
__init__(self, object_ref: pdfdancer.models.ObjectRef, stroke_color: pdfdancer.models.Color | None = None, fill_color: pdfdancer.models.Color | None = None) -> None
Initialize self. See help(type(self)) for accurate signature.
to_dict
to_dict(self) -> Dict[str, Any]
Convert to dictionary for JSON serialization.