mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 22:14:50 +00:00
feat(transcode): add PDF preview, sprite generation, and annotation support
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user