Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Getting the problem while loading the PDF file
Started by aluvalavijay at 11-20-2008 5:56. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  11-20-2008, 5:56
aluvalavijay is not online. Last active: 12/5/2008 2:27:43 PM aluvalavijay

Not Ranked
Joined on 11-20-2008
Posts 3
Getting the problem while loading the PDF file
Reply Quote

Hi

I am developing the application using LeadTools 16 in C#. I am getting the following error while loading the PDF file.

“PDF Error - Either the files required for initializing the PDF engine were not found or they were found but incorrect".

This is my code:

 

_image = codecs.Load(FileName, 0, CodecsLoadByteOrder.BgrOrGray, _firstPage, _lastPage);

 

Do I need to add any extra files or dll?.

My registry structure given below

“C:\Program Files\LEAD Technologies\LEADTOOLS 16\Bin\Common\PDF\LIB;C:\Program Files\LEAD Technologies\LEADTOOLS 16\Bin\Common\PDF\FONTS;C:\Program Files\LEAD Technologies\LEADTOOLS 16\Bin\Common\PDF\RESOURCE”.

Please reply. It is urgent.


   Report 
  11-20-2008, 10:18
Adam Boulad is not online. Last active: 1/6/2009 1:25:47 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 540
Re: Getting the problem while loading the PDF file
Reply Quote
Ramesh,
Does this happen on the development machine? If yes, run one of our pre-built demos (like the Main C# demo) and try to load a PDF file with it, does it load correctly? If not, this means that the PDF engine plug-in is not installed correctly on your machine and you should re-install the PDF engine plug in from the link through our website at www.leadtools.com.

If you are able to open the PDF files in the demo, make sure of the following:
1- Specify the RasterCodecs.Options.Pdf.InitialPath directory and point it the [LEADTOOLS 16]\Bin\Common\PDF directory.
2- Make sure that you reference the following DLLs in your project:
Leadtools.Codecs.Pdf.dll
Leadtools.Pdf.dll
3- Make sure that you have PdfDll32.dll in your SYSTEM32 folder.
Adam Boulad
LEADTOOLS Technical Support

   Report 
  11-21-2008, 1:46
aluvalavijay is not online. Last active: 12/5/2008 2:27:43 PM aluvalavijay

Not Ranked
Joined on 11-20-2008
Posts 3
Re: Getting the problem while loading the PDF file
Reply Quote

Hi

I followed al l the three steps which you mentioned correctly.

1) I added LeadTools.Codecs.PDF dll and Codecs.PDF

2) I placed the PdfDll32.dll file in C:\Windows\System32 folder

3) Initial path defined like this:

 _codecs.Options.Pdf.InitialPath = "C:\\Program Files\\LEAD Technologies\\LEADTOOLS 16\\Bin\\Common\\PDF";

_image = codecs.Load(FileName, 0, CodecsLoadByteOrder.BgrOrGray, _firstPage, _lastPage);

But still it is throwing the same error. Is it related with Service Pack or GAC or Any other setup required?.

Kindly suggest me.

Thanks

Aluvala

 


   Report 
  11-23-2008, 9:27
Adam Boulad is not online. Last active: 1/6/2009 1:25:47 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 540
Re: Getting the problem while loading the PDF file
Reply Quote
Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

Please answer the first part of my previous post:
1. Does this happen on the development machine?
2. If yes, run one of our pre-built demos (like the Main C# demo) and try to load a PDF file with it, does it load correctly?
If not, this means that the PDF engine plug-in is not installed correctly on your machine and you should re-install the PDF engine plug in from the link through our website at www.leadtools.com.


Adam Boulad
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » PDF » Getting the problem while loading the PDF file

Powered by Community Server, by Telligent Systems