Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, August 9, 2007 10:20:29 PM(UTC)

linish  
linish

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.

 

 

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, August 9, 2007 10:44:01 PM(UTC)

linish  
linish

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)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.039 seconds.