feat(transcode): add PDF preview, sprite generation, and annotation support

This commit is contained in:
yiling
2026-07-18 10:32:38 +08:00
parent 3383079787
commit bc1491bed5
31 changed files with 928 additions and 46 deletions
@@ -0,0 +1,14 @@
import { FileTypeDefinition } from '../types'
import PdfViewer from './pdf-viewer'
export const pdfTypeDefinition: FileTypeDefinition = {
id: 'pdf',
name: 'PDF',
match: (file) => file.mediaType === 'application/pdf' || file.name.toLowerCase().endsWith('.pdf'),
viewer: PdfViewer,
commentsConfig: {
hasTimestamp: false,
hasAnnotations: true,
hasAiBots: true,
},
}