Welcome to LEAD Support Forum Login | Register | Faq  

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

Yet another PDF Capability Required post
Started by johnreichert at 03-03-2008 10:31. Topic has 21 replies.

Print Search « Previous Thread Next Thread »
  03-03-2008, 10:31
johnreichert is not online. Last active: 1/3/2008 11:41:32 AM johnreichert

Top 75 Posts
Joined on 06-06-2007
Posts 31
Re: Yet another PDF Capability Required post
Reply Quote
Maen -

Were you able to look at this issue any further?  I am not able to deploy a web service with PDF cababilities to a stand alone web server.

Thanks -

John

   Report 
  03-04-2008, 7:41
Maen Hasan is not online. Last active: 10/13/2008 7:35:45 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,748
Re: Yet another PDF Capability Required post
Reply Quote
Hello,

I found a work around as follows:
1. Put PDFDLL32.DLL in the application's root folder, such as D:\SimpleImageServer
2. Before calling our codecs.Load("pdf file"), call this VB code:
ChDir("D:\SimpleImageServer")
 
This lets our PDF codec find the PDFDLL32.DLL file, and loading succeeds.

Please let me know if this helps.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  03-04-2008, 13:32
johnreichert is not online. Last active: 1/3/2008 11:41:32 AM johnreichert

Top 75 Posts
Joined on 06-06-2007
Posts 31
Re: Yet another PDF Capability Required post
Reply Quote
Maen - I can confirm this does work.

   Report 
  03-06-2008, 16:30
johnreichert is not online. Last active: 1/3/2008 11:41:32 AM johnreichert

Top 75 Posts
Joined on 06-06-2007
Posts 31
Re: Yet another PDF Capability Required post
Reply Quote
Maen - can you log this issue as a bug?  The file really should go in the bin folder.

Thanks -

John

   Report 
  03-09-2008, 11:16
Maen Hasan is not online. Last active: 10/13/2008 7:35:45 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,748
Re: Yet another PDF Capability Required post
Reply Quote
Hello,

Did you try to put the PdfDll32.dll on the bin folder, and then use the ChDir function to change the working directory to the bin folder?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  03-10-2008, 10:11
johnreichert is not online. Last active: 1/3/2008 11:41:32 AM johnreichert

Top 75 Posts
Joined on 06-06-2007
Posts 31
Re: Yet another PDF Capability Required post
Reply Quote
Maen -

Putting the file in bin folder and changing the working directory to the bin folder does work.

However, I am concerned that changing the working folder will have an (yet unknown) unintended consequence.

If there is a known place to store DLL files, and the file is in that place, then LEAD should be able to find the file without any workaround.  I would still like you to log this issue as a bug.

Thanks,

John


   Report 
  03-12-2008, 7:44
Maen Hasan is not online. Last active: 10/13/2008 7:35:45 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,748
Re: Yet another PDF Capability Required post
Reply Quote
John,

Normally, you don't need to change the current directory. You can put the DLL in one of 3 places:
1. The application EXE's folder
2. A folder in the system PATH.
3. The SYSTEM32 folder (special case of 2 above)

However, in your case, there is no application EXE and you don't want to put it on the SYSTEM32 folder.
Is it possible to add the DLL location to the system's PATH environment variable? If not, you will need a workaround, such as changing the Current Dir, or some other workaround if you don't like this one.

In general, unless some other part of your code relies on the current directory, for example to load or save files without specifying absolute path, changing the current directory should not cause any problems. If you are not sure, you can always reset it to the previous value after you load the DLL. The code will be something like this:

Dim oldDir As String
oldDir = CurDir()
ChDir(.. location of PDFDLL32.DLL ..)
.. do PDF initializing, such as load any PDF page ..
ChDir(oldDir)

Again, if you don't want this workaround, let me know and I will think of another one.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
Post
 Page 2 of 2 (22 items) « 1 2
LEAD Support Fo... » Developer » PDF » Yet another PDF Capability Required post

Powered by Community Server, by Telligent Systems