Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/link2004/pdf2md
/ functions
Functions
47 in github.com/link2004/pdf2md
⨍
Functions
47
◇
Types & classes
2
↓ 4 callers
Function
isValidLanguage
(lang: string)
app/lib/i18n.ts:939
↓ 3 callers
Function
getBucketName
* Get S3 bucket name from environment
app/action/s3.ts:38
↓ 3 callers
Function
getS3Client
* Get S3 client instance
app/action/s3.ts:15
↓ 2 callers
Function
downloadAsZip
( ocrResult: OCRResponse, fileName: string = "ocr-export", markdownOnly: boolean = false )
app/action/downloadHelper.ts:15
↓ 2 callers
Function
getMistralClient
* Get Mistral client instance
app/action/mistral.ts:10
↓ 2 callers
Function
getPreferredLanguage
(request: NextRequest)
middleware.ts:64
↓ 2 callers
Function
handleProcess
(selectedFile?: File)
app/[lang]/page.tsx:132
↓ 2 callers
Function
isValidFileSize
(file: File)
app/[lang]/page.tsx:58
↓ 2 callers
Function
isValidFileType
(file: File)
app/[lang]/page.tsx:53
↓ 1 callers
Function
copyToClipboard
(text: string, pageIndex?: number | null)
app/components/OcrResultView.tsx:26
↓ 1 callers
Function
copyToClipboard
(text: string, pageIndex?: number | null)
app/[lang]/page.tsx:212
↓ 1 callers
Function
deleteFileFromS3
( key: string )
app/action/s3.ts:124
↓ 1 callers
Function
fileToBase64
(file: File)
app/[lang]/page.tsx:118
↓ 1 callers
Function
formatTranslation
( template: string, params: Record<string, string | number> )
app/lib/i18n.ts:960
↓ 1 callers
Function
generateMetadataForLanguage
(lang: Language)
app/lib/metadata.ts:524
↓ 1 callers
Function
generateStructuredDataForLanguage
(lang: Language)
app/lib/metadata.ts:599
↓ 1 callers
Function
getExtensionFromMimeType
* Get appropriate file extension from MIME type
app/action/downloadHelper.ts:111
↓ 1 callers
Function
getFileType
(file: File)
app/[lang]/page.tsx:64
↓ 1 callers
Function
getImageFormat
(base64String: string)
app/components/OcrResultView.tsx:287
↓ 1 callers
Function
getLanguageCode
(lang: Language)
app/lib/metadata.ts:646
↓ 1 callers
Function
getS3SignedUrl
( key: string, expiresIn: number = 3600 )
app/action/s3.ts:94
↓ 1 callers
Function
getTranslations
(lang: Language)
app/lib/i18n.ts:926
↓ 1 callers
Function
processImageWithMistral
( imageData: string, mimeType: string, includeImageBase64: boolean = true )
app/action/mistral.ts:83
↓ 1 callers
Function
processPdfWithMistral
( fileData: string, fileName: string, includeImageBase64: boolean = true )
app/action/mistral.ts:25
↓ 1 callers
Function
uploadFileToS3
( fileData: string, fileName: string, contentType: string = "application/pdf" )
app/action/s3.ts:53
Function
FileUploader
()
app/[lang]/page.tsx:22
Function
Footer
({ translations }: FooterProps)
app/components/Footer.tsx:7
Function
Header
({ isInitialUpload = false, onReset, translations, activeTab, onTabChange, ocrResult, onCopyAll,
app/components/Header.tsx:22
Function
LangLayout
({ children, params }: Props)
app/[lang]/layout.tsx:43
Function
OcrResultView
({ ocrResult, analyzing, translations }: OcrResultViewProps)
app/components/OcrResultView.tsx:20
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/layout.tsx:8
Function
RootPage
()
app/page.tsx:4
Function
UploadResult
({ uploadResult, analyzing, onAnalyze, translations, }: UploadResultProps)
app/components/UploadResult.tsx:18
Function
copyAllMarkdown
()
app/[lang]/page.tsx:229
Function
generateMetadata
({ params }: Props)
app/[lang]/layout.tsx:37
Function
generateStaticParams
()
app/[lang]/layout.tsx:33
Function
getLanguageFromPath
(pathname: string)
app/lib/i18n.ts:943
Function
getLanguageFromSearchParams
(searchParams: URLSearchParams)
app/lib/i18n.ts:955
Function
handleClickOutside
(event: MouseEvent)
app/components/Header.tsx:40
Function
handleDownloadMarkdown
()
app/[lang]/page.tsx:269
Function
handleDownloadZip
()
app/[lang]/page.tsx:254
Function
handleFileChange
(e: React.ChangeEvent<HTMLInputElement>)
app/[lang]/page.tsx:97
Function
handleReset
()
app/[lang]/page.tsx:283
Function
middleware
(request: NextRequest)
middleware.ts:95
Function
onDrop
(acceptedFiles: File[])
app/[lang]/page.tsx:69
Function
robots
()
app/robots.ts:4
Function
sitemap
()
app/sitemap.ts:4