* Create a formatted message for PDF content
(pageCount: number, size: number, path?: string)
| 1140 | * Create a formatted message for PDF content |
| 1141 | */ |
| 1142 | function createPdfFallbackMessage(pageCount: number, size: number, path?: string): string { |
| 1143 | const formattedPath = path || 'Unknown path' |
| 1144 | |
| 1145 | return `PDF document - ${pageCount} page(s), ${prettySize(size)} |
| 1146 | Path: ${formattedPath} |
| 1147 | |
| 1148 | This file appears to be a PDF document that could not be fully processed as text. |
| 1149 | Please use a PDF viewer for best results.` |
| 1150 | } |
| 1151 | |
| 1152 | /** |
| 1153 | * Create error message for PDF parsing failure and make it more readable |
no test coverage detected