Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Load a PDF File |
Post Reply ![]() |
Author | |
lecameleon ![]() Beginner ![]() Joined: 23 Aug 06 Location: France Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() Posted: 23 Aug 06 at 5:51AM |
Hi,
I've got a little problem using isedQuickPdf Dll version. I try to load a PDF file with LoadFromFile or DAOpenFile. I can do this with no real problem only under conditions. When my PDF got a normal name like "Buy list.pdf", no problem, but when my PDF file has a particulary name like "PDF-78400-100830 Buy list.pdf", impossible to load it ! Each time, the function returns me 0 Is there some restrictions about the name of the PDF file to load ? Thanx |
|
![]() |
|
Michel_K17 ![]() Newbie ![]() ![]() www.exp-systems.com Joined: 25 Jan 03 Status: Offline Points: 297 |
![]() ![]() ![]() ![]() ![]() |
It's always worked for me, even with complex filenames.
|
|
Michel
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3524 |
![]() ![]() ![]() ![]() ![]() |
Hi!
I've tested it with several names (like you described here) - No problems. Perhaps it's having to do with short filenames, missing "" or country code tables...? Good luck, Ingo |
|
![]() |
|
lecameleon ![]() Beginner ![]() Joined: 23 Aug 06 Location: France Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Hi
Thanks for answers. I tried several methods, and since I have a filename a little complex or with numbers in it, I always get an error opening the file. My goal is to read the number of pages in my document. This is what I do : LoadFromFile('Liste des familles du 15072006.pdf') nbPages# = PageCount() Can one of you send an example of opening a file with a 'strange' name please ? Thanks |
|
![]() |
|
JanN ![]() Senior Member ![]() Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
![]() ![]() ![]() ![]() ![]() |
You wrote:
"Buy list.pdf" works "PDF-78400-100830 Buy list.pdf" doesn't --- Have you tested with different string lengths? Perhaps you can find a limit for the length of the filename? Edited by JanN |
|
![]() |
|
hbarclay ![]() Team Player ![]() Joined: 29 Oct 05 Location: United States Status: Offline Points: 39 |
![]() ![]() ![]() ![]() ![]() |
Is the file you are trying to open on a network drive or a local hard drive? Harry |
|
![]() |
|
lecameleon ![]() Beginner ![]() Joined: 23 Aug 06 Location: France Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
The files are on a network drive
But the problem is the same if they are on a local drive c:\ |
|
![]() |
|
lecameleon ![]() Beginner ![]() Joined: 23 Aug 06 Location: France Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
U'r right, I have found a file limit of 30 chars. Can someone confirm this please ? |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3524 |
![]() ![]() ![]() ![]() ![]() |
Hi!
That's not good ... but that's not your problem. "PDF-78400-100830 Buy list.pdf" has only 29 digits ;-) Best regards, Ingo |
|
![]() |
|
lecameleon ![]() Beginner ![]() Joined: 23 Aug 06 Location: France Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
yes it's my problem
When I give the name of file, it was an example all my files start with PDF-78400-100830- so when I wrote my post, I've put only 29 chars. But now, I made some other tests and when I go up to 30 chars, I can read my PDF ! Why do U say it's not good ? U don't have this limit ? |
|
![]() |
|
JanN ![]() Senior Member ![]() Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
![]() ![]() ![]() ![]() ![]() |
As far as I know, the DLL functions themselves are not limited to a number of chars.
Which programming language are you using? Can you post a piece of code? |
|
![]() |
|
Michel_K17 ![]() Newbie ![]() ![]() www.exp-systems.com Joined: 25 Jan 03 Status: Offline Points: 297 |
![]() ![]() ![]() ![]() ![]() |
I just tested sample code up to 50 characters. I also tested the filename you provided (PDF-78400-100830 Buy list.pdf) and it works fine for me. I agree with JanN, please show your sample code: the problem might be elsewhere.
|
|
Michel
|
|
![]() |
|
lecameleon ![]() Beginner ![]() Joined: 23 Aug 06 Location: France Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
my programming language is Clarion from SoftVelocity so I use the dll version
here a sample code Loc:fileToLoad = 'PDF-74800-100830 Buy List from 01082006.pdf' !! I'm locate in the good directory return# = LoadFromFile(clip(Loc:fileToLoad)) message('Return => ' & return#) message(PageCount()) The return variable always contains 0 if I put a file with a name length > 30 chars. Else It works ok. Another sample of code with I've tested : openFile# = DAOpenFile(Loc:fileToLoad, '') message(openFile#) nbPages# = DAGetPageCount(openFile#) message('Nb Pages = ' & nbPages#) closeFile# = DACloseFile(openFile#) Edited by lecameleon |
|
![]() |
|
Michel_K17 ![]() Newbie ![]() ![]() www.exp-systems.com Joined: 25 Jan 03 Status: Offline Points: 297 |
![]() ![]() ![]() ![]() ![]() |
How do you declare the varible Loc:fileToLoad? Is it a fixed length string by any chance? If the variable is limited to 30 characters, it might be ignoring the extra text you are trying to place in the variable.
Can you do a "debug.print" or view the content of that variable after you have loaded the filename into it? |
|
Michel
|
|
![]() |
|
lecameleon ![]() Beginner ![]() Joined: 23 Aug 06 Location: France Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
my variable is a String(255) and when I look at then content, the filename is correctly load in it.
i really don't know where my error is.... |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() 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 |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store