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 File/Open File Differences |
Post Reply
|
| Author | |
chrisreed
Team Player
Joined: 29 Apr 13 Location: Australia Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Topic: Load File/Open File DifferencesPosted: 02 May 13 at 4:33AM |
|
I understand the difference between the LoadFromFile and DAOpenFile functions, but what I don't understand is that once the PDF file has been loaded/opened why do other functions used afterwards produce different results:
eg. HasFontResources
LoadFromFile = 1
DAOpenFile = 0
eg. GetInformation
LoadFromFile -> Author = Administrator, Title = Old Report
DAOpenFile -> Author = "", Title = ""
Plus Creator, Producer, Creation Date and Modification Date are all different.
Isn't the format/contents of the PDF exactly the same regardless of how you Load/Open the PDF File?
Chris |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 13 at 7:25AM |
|
Hi Chris!
Perhaps the problem will be clearer if you can offer the document anywhere for test download. Or is it a common prob with any document? Cheers, Ingo
|
|
![]() |
|
chrisreed
Team Player
Joined: 29 Apr 13 Location: Australia Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 13 at 8:10AM |
|
No it happens on ANY PDF File I load or open.
What is strange is that if I use the LoadFile function first followed by the DAOpenFile function the two GetInformation function both get the correct information, but not the other way around.
I would show you my code, but it is in LabVIEW and hence is a picture and I can't upload a picture to this post. Is there a public space on the web where I can upload my pictures to and provide a link to that?
Chris
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 13 at 12:24PM |
|
Hi Chris!
For free upload-space you can search on Google. There are many file hoster offering their services. The other thing: You can't use LoadFromFile and DAOpenFile together. It doesn't matter if one way round it works and the other way round not - Don't mix it. Still from your first post: If you're using DALoadFromFile it's absolutely necessary to use the DA-functions to get the metadata like "author", "subject", and so on. Again: Don't mix DA- and non-DA in one code part between create and free. Cheers, Ingo Edited by Ingo - 02 May 13 at 12:26PM |
|
![]() |
|
chrisreed
Team Player
Joined: 29 Apr 13 Location: Australia Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 May 13 at 11:09AM |
|
Hi Ingo,
Here is the link to my code in LabVIEW..... http://postimg.org/gallery/6uafpxai/
I get what you're saying, but even when I did use the DAGetInformation function with the other DA Functions I still didn't get exactly the same results, but that's OK GetAnalysisInfo function matches.
P.S. Is there such a function as DALoadFromFile, because I couldn't find it?
Chris
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 May 13 at 2:04PM |
|
Chris,
As Ingo says, when you load a file using DAOpenFile then you can only use functions starting with DA to work with this file. The standard functions will not work with a file that has been opened with DAOpen file. Basically, you cannot mix DA and standard calls and expect them to work. Both sets of functions use completely different methods to work with a PDF file. GetAnalysisInfo is a 3rd way of working with a PDF file as it uses a filename - the function automatically opens the file, gets the required information and closes the file for you. There is of DALoadFromFile - only DAOpenFile. Most people use QP.LoadFromFile. You really only need the DA functions for quite large PDF files. Andrew.
|
|
![]() |
|
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