Replies: 1 comment
-
Nevermind - I'm an idiot... I'd moved a debugging console.writeline to a variable and left extra crap that shouldn't have been in there. I'd delete this thread but I don't see where to do it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I'll just put out from the start, I'm not a very good developer - but I can stumble my way through usually for small projects.
I'm trying to combine multiple single-page TIFF files into a single PDF - and the syntax seems pretty straight forward - but my TIFF files actually have .BIN file extensions (they're part of a 3rd party app and I can't change the file names/locations/extensions). I'm kind of assuming that's why I'm getting this error - because it doesn't know what type my source file is:
Header Row:57097
-------------> Detail:276883| \gp01\AXDocuments\GPX-AP\0\270\276883.bin
ImageMagick.MagickBlobErrorException: unable to open image '276883| \gp01\AXDocuments\GPX-AP\0\270\276883.bin': Invalid argument @ error/blob.c/OpenBlob/3537
at ImageMagick.NativeInstance.CheckException(IntPtr exception, IntPtr result) in //src/Magick.NET/Native/NativeInstance.cs:line 60
at ImageMagick.MagickImage.NativeMagickImage.ReadFile(IMagickSettings
1 settings) in /_/src/Magick.NET/Native/MagickImage.cs:line 5248 at ImageMagick.MagickImage.Read(String fileName, IMagickReadSettings
1 readSettings, Boolean ping) in //src/Magick.NET/MagickImage.cs:line 7244at ImageMagick.MagickImage.Read(String fileName, IMagickReadSettings`1 readSettings) in //src/Magick.NET/MagickImage.cs:line 5009
at ImageMagick.MagickImage.Read(String fileName) in //src/Magick.NET/MagickImage.cs:line 4970
at ImageMagick.MagickImage..ctor(String fileName) in /_/src/Magick.NET/MagickImage.cs:line 225
at ExtractCSSIFiles.Program.Main(String[] args) in C:\Users\TB\DD\Development\ExtractCSSIFiles\ExtractCSSIFiles\ExtractCSSIFiles\Program.cs:line 108 Exception Caught.
Can anyone give me a pointer as to how to override the file type at the time I add it to the collection? Or tell me if I'm totally off-base?
EDIT: It's not the file extension... I just duplicated all the .bin files in a folder as .tiff and tried again, and I still got error 3537.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions