Invalid Argument Error When Using Special Characters in Output Filename #166
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am encountering an error when trying to use
img2pdf
command with a special character in the output filename. Here is the command I ran:And this is the error message I received:
It seems like the tool has issues with filenames that contain special characters. Any help resolving this would be appreciated.
I just ran
img2pdf image.png -o "Umbrella ☂.pdf"
and it works fine on my system.
Which operating system are you using?
I ran it on windows 10
Okay. I do not have access to a Windows machine. Maybe other Windows users like @soheday or @bbbradsmith have some knowledge about encoding problems like this on Windows?
@soheday, @bbbradsmith: I hope it's okay to ping you on a windows issue like this?
Thanks!
Works fine for me, Win10. I suspect that @Anangaya has used a question mark (illegal file name character) instead of umbrella character.
img2pdf could check if specified output file name contains illegal characters and inform user about it.
Thank you for your input. I'm tempted to just close this issue because:
The renaming works file when I ran it inside a windows sandbox. There might be something in my system that's causing this problem with img2pdf (other cli renaming methods with mv and ren works). I can work around it using a intermediate file name so I'll close this issue.