(outputDir: string, dataSetId: number, fileName: string)
| 77 | } |
| 78 | |
| 79 | function getOutputPath(outputDir: string, dataSetId: number, fileName: string): string { |
| 80 | return path.join(outputDir, `ds${dataSetId}`, `${path.basename(fileName, ".pdf")}.json`); |
| 81 | } |
| 82 | |
| 83 | function isTextQualityPoor(text: string, pageCount: number): boolean { |
| 84 | const totalChars = text.trim().length; |