Documentation
¶
Index ¶
- type ExternalPDFServiceAdapter
- func (epsa *ExternalPDFServiceAdapter) Generate(ctx context.Context, req generation.PDFGenerationRequest) (generation.PDFGenerationResult, error)
- func (epsa *ExternalPDFServiceAdapter) GenerateWithWorkingDir(ctx context.Context, req generation.PDFGenerationRequest, workingDir string) (generation.PDFGenerationResult, error)
- func (epsa *ExternalPDFServiceAdapter) GetSupportedEngines() []string
- func (epsa *ExternalPDFServiceAdapter) GetSupportedFormats() []string
- func (epsa *ExternalPDFServiceAdapter) ValidateRequest(req generation.PDFGenerationRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalPDFServiceAdapter ¶
type ExternalPDFServiceAdapter struct {
// contains filtered or unexported fields
}
TODO: This file needs to be updated after internal application layer restructuring ExternalPDFServiceAdapter implements domain.PDFGenerationService This adapter bridges the API layer with the internal application layer
func NewExternalPDFServiceAdapter ¶
func NewExternalPDFServiceAdapter(cfg *config.Config, debugEnabled bool) *ExternalPDFServiceAdapter
NewExternalPDFServiceAdapter creates a new external PDF service adapter
func NewExternalPDFServiceAdapterWithLogger ¶
func NewExternalPDFServiceAdapterWithLogger(cfg *config.Config, debugEnabled bool, logger autopdfports.Logger) *ExternalPDFServiceAdapter
NewExternalPDFServiceAdapterWithLogger creates a new external PDF service adapter with logger
func (*ExternalPDFServiceAdapter) Generate ¶
func (epsa *ExternalPDFServiceAdapter) Generate(ctx context.Context, req generation.PDFGenerationRequest) (generation.PDFGenerationResult, error)
Generate generates a PDF using the internal application layer
func (*ExternalPDFServiceAdapter) GenerateWithWorkingDir ¶
func (epsa *ExternalPDFServiceAdapter) GenerateWithWorkingDir(ctx context.Context, req generation.PDFGenerationRequest, workingDir string) (generation.PDFGenerationResult, error)
GenerateWithWorkingDir generates a PDF using the internal application layer with custom working directory
func (*ExternalPDFServiceAdapter) GetSupportedEngines ¶
func (epsa *ExternalPDFServiceAdapter) GetSupportedEngines() []string
GetSupportedEngines returns supported LaTeX engines
func (*ExternalPDFServiceAdapter) GetSupportedFormats ¶
func (epsa *ExternalPDFServiceAdapter) GetSupportedFormats() []string
GetSupportedFormats returns supported output formats
func (*ExternalPDFServiceAdapter) ValidateRequest ¶
func (epsa *ExternalPDFServiceAdapter) ValidateRequest(req generation.PDFGenerationRequest) error
ValidateRequest validates a PDF generation request