Skip to content
@archipel/platform-documents Auto-generated

@breadstone/archipel-platform-documents

Classes

ClassDescription
BaseDocumentRendererBase class for document renderers. Provides common functionality for template loading, parsing, and image processing.
DocumentEngineDocumentEngine orchestrates document generation workflow. Coordinates resource loading and renderer components.
DocumentErrorBase class for document-related domain errors.
DocumentModuleDocumentModule provides services for document generation and image processing. Uses abstract base classes and interfaces for extensibility.
DocumentRenderErrorThrown when document rendering fails.
DocumentValidationErrorThrown when document input validation fails.
DocxDocumentRenderer2DOCX document renderer. Delegates template processing to the configured parser (Encodian, Mustache, etc.). The parser handles all template syntax logic via its processXml() method.
ImageProcessingErrorThrown when image processing fails.
PdfDocumentRendererPDF document renderer using pdf-lib. Supports placeholder overlay and table rendering.
SharpImageProcessorSharp-based image processor. Handles image resizing and format conversion.

Interfaces

InterfaceDescription
IDocumentModuleOptionsConfiguration options for the DocumentModule.
IDocumentPlaceholderDetailPlaceholder detail for document probe report.
IDocumentProbeReportDocument probe report.
IDocumentRendererBase interface for document renderers. Each renderer handles specific document formats.
IImagePayloadImage payload for templates.
IImageProcessorBase interface for image processors. Handles image manipulation and format conversion.
IRenderOptionsOptions for rendering a document.
IRenderResultDocument render result.

Type Aliases

Type AliasDescription
DocumentFormatDocument output format types.
EngineTypeTemplate engine type.
ImageMimeTypeImage MIME type.
TemplateFormatTemplate format type (parser syntax).
TemplateTypeTemplate type.

Variables

VariableDescription
DOCUMENT_MODULE_OPTIONSInjection token for DocumentModule options.
DOCUMENT_PARSER_TOKENInjection token for IDocumentParser.
DOCUMENT_RENDERER_TOKENInjection token for IDocumentRenderer (multi-provider).
IMAGE_PROCESSOR_TOKENInjection token for IImageProcessor.

Released under the MIT License.