LEADTOOLS Support
Document
Document SDK Questions
ERROR: Feature not supported. While converting pdf to image
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, December 12, 2013 12:02:06 AM(UTC)
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);
}
#2
Posted
:
Thursday, December 12, 2013 3:17:48 AM(UTC)
Groups: Registered
Posts: 2
Am i missing something? I am using v17. Please help me. [:(]
#3
Posted
:
Monday, December 16, 2013 2:23:25 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
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
LEADTOOLS Support
Document
Document SDK Questions
ERROR: Feature not supported. While converting pdf to image
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.