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, December 12, 2013 12:07:06 AM(UTC)

Amrit  
Amrit

Groups: Registered
Posts: 2


Hi,
   I am getting Error: Feature not supported. while converting pdf to image.
I had included reference of there dlls in my Bin folder (Aspnet).
1) Leadtools.dll
2) Leadtools.Codecs.dll
3) Leadtools.Pdf.dll
4) Leadtools.Codecs.Pdf.dll
5) Leadtools.PdfEngine.dll
6) PDFTools.dll

  And here is the code i am using for conversion:

                RasterCodecs codecs = new RasterCodecs();
                string input = Path.Combine(Server.MapPath("~/Files/Uploaded/PDFs/"), SourcePdf);
                string output = Path.Combine(Server.MapPath("~/Files/Uploaded/Images/"), SourcePdf.Split('.')[0] + ".png");
                codecs.Options.Pdf.InitialPath = Server.MapPath("~/bin");
                using (RasterImage image = codecs.Load(input)) //getting error at this line
                {
                    codecs.Save(image, output, RasterImageFormat.Png, 8);
                    //codecs.Save(image, FileName, RasterImageFormat.RasPdf, image.BitsPerPixel);
                }
 

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, December 12, 2013 3:22:48 AM(UTC)

Amrit  
Amrit

Groups: Registered
Posts: 2


Am i missing something? I am using v17. Please help me. [:(]
 
#3 Posted : Monday, December 16, 2013 2:28:25 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

You need to add the Leadtools.PdfEngine.dll file directly in the Bin folder. And then set the codecs.Options.Pdf.InitialPath property to the location of the Bin folder as follows:
+-----------+
RasterCodecs codecs = new RasterCodecs();

codecs.Options.Pdf.InitialPath = @"D:\WebFormsDemo\Bin";
+-----------+

If the problem persists, please create a small working project (not your full application) that shows the problem and send it to me in a ZIP or RAR file.
Also, provide me with the exact steps to reproduce the problem.

Thanks,
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-2019, Yet Another Forum.NET
This page was generated in 0.149 seconds.