Documentation
¶
Index ¶
- type InternalApplicationAdapter
- func (iaa *InternalApplicationAdapter) GeneratePDF(cfg *config.Config, template config.Template, debugEnabled bool, ...) ([]byte, map[string]string, error)
- func (iaa *InternalApplicationAdapter) GeneratePDFContext(ctx context.Context, cfg *config.Config, template config.Template, ...) ([]byte, map[string]string, error)
- func (iaa *InternalApplicationAdapter) GeneratePDFWithWorkingDir(cfg *config.Config, template config.Template, debugEnabled bool, ...) ([]byte, map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalApplicationAdapter ¶
type InternalApplicationAdapter struct {
// contains filtered or unexported fields
}
InternalApplicationAdapter bridges the API layer with the internal application layer This adapter follows the Adapter pattern from GoF and maintains separation of concerns
func NewInternalApplicationAdapter ¶
func NewInternalApplicationAdapter(cfg *config.Config) *InternalApplicationAdapter
NewInternalApplicationAdapter creates a new adapter
func NewInternalApplicationAdapterWithLogger ¶
func NewInternalApplicationAdapterWithLogger(cfg *config.Config, logger autopdfports.Logger) *InternalApplicationAdapter
NewInternalApplicationAdapterWithLogger creates a new adapter with logger
func (*InternalApplicationAdapter) GeneratePDF ¶
func (iaa *InternalApplicationAdapter) GeneratePDF(cfg *config.Config, template config.Template, debugEnabled bool, workingDir string) ([]byte, map[string]string, error)
GeneratePDF generates a PDF using the internal application layer This method maintains the same signature as the original GeneratePDF function workingDir is optional - if empty, uses default behavior
func (*InternalApplicationAdapter) GeneratePDFContext ¶
func (iaa *InternalApplicationAdapter) GeneratePDFContext(ctx context.Context, cfg *config.Config, template config.Template, debugEnabled bool, workingDir string) ([]byte, map[string]string, error)
GeneratePDFContext runs one generation in an isolated workspace and propagates ctx through template processing, compilation, conversion, and cleanup.
func (*InternalApplicationAdapter) GeneratePDFWithWorkingDir ¶
func (iaa *InternalApplicationAdapter) GeneratePDFWithWorkingDir(cfg *config.Config, template config.Template, debugEnabled bool, workingDir string) ([]byte, map[string]string, error)
GeneratePDFWithWorkingDir generates a PDF using the internal application layer with custom working directory