Versions in this module Expand all Collapse all v0 v0.1.1 Dec 24, 2025 v0.1.0 Dec 22, 2025 Changes in this version + const DefaultMaxRecentFiles + const MaxDPI + const MaxPDFFileSizeBytes + const MinDPI + const PDFOpenTimeout + const PDFRenderTimeout + func RestoreMuPDFWarnings() + func SuppressMuPDFWarnings() + type PDFMetadata struct + Author string + Creator string + FilePath string + PageCount int + Subject string + Title string + type PDFService struct + func NewPDFService(configService *config.Service) *PDFService + func (s *PDFService) ClosePDF() error + func (s *PDFService) GenerateThumbnail(filePath string, maxWidth int) (string, error) + func (s *PDFService) GetMetadata() (*PDFMetadata, error) + func (s *PDFService) GetPageCount() int + func (s *PDFService) GetPageDimensions(pageNum int) (*PageDimensions, error) + func (s *PDFService) OpenPDF() (*PDFMetadata, error) + func (s *PDFService) OpenPDFByPath(filePath string) (*PDFMetadata, error) + func (s *PDFService) RenderPage(pageNum int, dpi float64) (*PageInfo, error) + func (s *PDFService) Startup(ctx context.Context) + type PageDimensions struct + Height float64 + Width float64 + type PageInfo struct + Height int + ImageData string + PageNumber int + Width int + type RecentFile struct + FileName string + FilePath string + LastOpened time.Time + PageCount int + type RecentFilesService struct + func NewRecentFilesService() *RecentFilesService + func (s *RecentFilesService) AddRecent(filePath string, pageCount int) error + func (s *RecentFilesService) ClearRecent() error + func (s *RecentFilesService) GetRecent() []RecentFile + func (s *RecentFilesService) RemoveRecent(filePath string) error + func (s *RecentFilesService) Shutdown(timeout time.Duration) error + func (s *RecentFilesService) Startup(ctx context.Context)