Closed LockedOnNone closed 6 years ago
I'm not sure what part you consider the issue here: The unhandled exception - or that merging the files did not work due to unicode?
The unhandled exception would be because of missing .catch
handler.
This lib makes no assumption of input being unicode or not, it simply passes it along to pdftk.
Yes, I forgot to indicate that the issue is the Unicode handling. I'll try and report this to pdftk, since it's a bug on their end. Thank you.
Code used.
Unhandled rejection Error: Command failed: pdftk "íñdigó çu+ - 中文平が Cómpênsã_1.pdf" "íñdigó çu+ - 中文平が Cómpênsã_2.pdf" cat output C:\Users\user\AppData\Local\Temp\tmp-185604IMduvgo3lhl Error: Unable to find file. Error: Failed to open PDF file: íñdigó çu+ - 中文平が Cómpênsã_1.pdf Error: Unable to find file. Error: Failed to open PDF file: íñdigó çu+ - 中文平が Cómpênsã_2.pdf Errors encountered. No output created. Done. Input errors, so no output created.