opengovsg / pdf2md

A PDF to Markdown converter
https://www.npmjs.com/package/@opendocsg/pdf2md
MIT License
195 stars 39 forks source link

output filenames are omitting the last letter #60

Closed mroswell closed 1 year ago

mroswell commented 2 years ago

I'm so pleased to find this project. Seeking one bug fix.

I'm using the following command:

npx @opendocsg/pdf2md --inputFolderPath=. --outputFolderPath=conditionsmd

The last character of each filename has been omitted in the output files.

Examples:

anxiety.pdf >> anxiet.md peripheral-neuropathies.pdf >> peripheral-neuropathie.md

mroswell commented 2 years ago

UPDATE: I've figured out that if I use

... --inputFolderPath=./ ...

I get the proper output filename.