The test to reproduce this issue:
[TestMethod]
public void CyrillicFileNameTest() {
string cyrillicFileName = Path.Combine(TestContext.TestDir, "Кириллический файл.pdf");
File.CreateText(cyrillicFileName);
try {
Assert.IsTrue(File.Exists(cyrillicFileName));
using (var images = new ImageMagick.MagickImageCollection()) {
images.Add(cyrillicFileName);
}
} catch (Exception exception) {
Assert.Fail("Exception: {0}", exception.Message);
}
}
This will throw "No such file or directory @ error/pdf.c/ReadPDFImage/713" error when run. Proper pdf file with Cyrillic name will fail the same way.
Comments: ** Comment from web user: ssshuler **
[TestMethod]
public void CyrillicFileNameTest() {
string cyrillicFileName = Path.Combine(TestContext.TestDir, "Кириллический файл.pdf");
File.CreateText(cyrillicFileName);
try {
Assert.IsTrue(File.Exists(cyrillicFileName));
using (var images = new ImageMagick.MagickImageCollection()) {
images.Add(cyrillicFileName);
}
} catch (Exception exception) {
Assert.Fail("Exception: {0}", exception.Message);
}
}
This will throw "No such file or directory @ error/pdf.c/ReadPDFImage/713" error when run. Proper pdf file with Cyrillic name will fail the same way.
Comments: ** Comment from web user: ssshuler **
Sorry, forgot to install Ghostscript in my new environment. This solves the issue however I'd suggest the error message to be more informative.
Thank you!