This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, August 9, 2007 10:20:29 PM(UTC)
Groups: Registered
Posts: 4
I'm trying to export an image to pdf but its throwing an error like "Invalid File Format".
Here my code which i have written
Leadtools.Codecs.
RasterCodecs rasterCodecs = new Leadtools.Codecs.RasterCodecs();
Leadtools.
IRasterImage img;
img = rasterCodecs.Load(
@"D:\Address_book1.jpg");
rasterCodecs.Save(img,
"C:\test.pdf", RasterImageFormat.RasPdfG32Dim, 0, 1, 2, 1, CodecsSavePageMode.Append)
when it reaches this line "rasterCodecs.Load(@"D:\Address_book1.jpg");" I'm getting that error.
Any one please tell me how to out from this problem.
#2
Posted
:
Thursday, August 9, 2007 10:44:01 PM(UTC)
Groups: Registered
Posts: 4
While load this image I'm getting an erro like "Invalid Format". Can any one help me to solve this problem.
Here is the code which I have written in .Net.
Leadtools.Codecs.
RasterCodecs rasterCodecs = new Leadtools.Codecs.RasterCodecs();
Leadtools.
IRasterImage img;
img = rasterCodecs.Load(
@"D:\Address_book1.jpg"); // In this line I'm getting error
#3
Posted
:
Sunday, August 12, 2007 9:59:56 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
The problem might be related to a missing filter DLLs in your application.
Please try to set a reference to the Leadtools.Codecs.Cmp.dll in your application to load JPEG images.
Also, if you are using LEADTOOLS v14.5, try to set the RasterCodecs.CodecsPath property to the location of the LEADTOOLS .Net DLLs on your machine before calling the load or save methods.
RasterCodecs.CodecsPath = @"D:\Program Files\LEAD Technologies, Inc\LEADTOOLS 14.5\Redist\Dotnet\v20";
Regards,
Maen Badwan
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.