RenderModelBuilder
Vue de l’ensemble
‘RenderModelBuilder’ est une classe dans Aspose.Page FOSS pour Python.
Faites des documents de manière incrementale.
Cette classe fournit 14 méthodes pour travailler avec les objets RenderModelBuilder dans des programmes Python. Les méthodologies disponibles comprennent: __init__, add_image , add_path ، ad_text ; begin_page; ‘clip : document . end_ page ! register_color_space ? regist_function., 'register-pattern et 2 méthode supplémentaires. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation de la paire Aspose.Page FOSS pour PyThone.
méthodes
| Signature | Description |
|---|---|
__init__() | |
set_default_page_size(width: float, height: float) | Set the default page size for implicit page creation. |
begin_page(width: float, height: float) | Begin a new page with explicit size. |
end_page() | End the current page and append it to the document. |
| `add_path(path: Path, stroke: StrokeStyle | None, fill: Paint |
| `add_text(text: str, font_ref: str, font_size: float, matrix: Matrix, fill: Paint | None)` |
| `add_image(image_id: str, width: int, height: int, matrix: Matrix, mask: bool, mask_paint: Paint | None)` |
clip(path: Path, fill_rule: str) | Add a clipping path command to the current page. |
save_state() | Save the current graphics state. |
restore_state() | Restore the previous graphics state. |
document() → RenderDocument | Return the current render document. |
register_color_space(color_space: ColorSpace) → str | Register a color space resource and return its ID. |
register_pattern(pattern: Pattern) → str | Register a pattern resource and return its ID. |
register_function(function: Function) → str | Register a function resource and return its ID. |
Voir aussi
- Aspose.Page pour Python — API d’entreprise référence