sec_interp.exporters.pdf_exporter module¶
PDF exporter module for PDF documents.
- class sec_interp.exporters.pdf_exporter.PDFExporter(settings: dict[str, Any])¶
Bases:
BaseExporterExporter for PDF format.
Initialize the exporter with settings.
- Parameters:
settings – Dictionary containing export settings such as: - width: Output width in pixels - height: Output height in pixels - dpi: Dots per inch for resolution - background_color: Background color (QColor) - legend_renderer: Optional renderer for legend overlay
- get_supported_extensions() list[str]¶
Get supported PDF extension.
- export(output_path: Path, map_settings: qgis.core.QgsMapSettings) bool¶
Export map to PDF.
- Parameters:
output_path – Output file path
map_settings – QgsMapSettings instance configured for rendering
- Returns:
True if export successful, False otherwise