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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Load File/Open File Differences
  FAQ FAQ  Forum Search   Register Register  Login Login

Load File/Open File Differences

 Post Reply Post Reply
Author
Message
chrisreed View Drop Down
Team Player
Team Player
Avatar

Joined: 29 Apr 13
Location: Australia
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisreed Quote  Post ReplyReply Direct Link To This Post Topic: Load File/Open File Differences
    Posted: 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
chrisreed View Drop Down
Team Player
Team Player
Avatar

Joined: 29 Apr 13
Location: Australia
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisreed Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
chrisreed View Drop Down
Team Player
Team Player
Avatar

Joined: 29 Apr 13
Location: Australia
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisreed Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store