Print Page | Close Window

Extract Title from PDF File

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3125
Printed Date: 14 Feb 26 at 3:05PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Extract Title from PDF File
Posted By: New User
Subject: Extract Title from PDF File
Date Posted: 05 Jun 15 at 6:13PM
Could anybody show me how to extract title from a PDF file?



Replies:
Posted By: erico
Date Posted: 05 Jun 15 at 7:32PM
docId = LoadFromFile("fileName", "password");

analysisId = AnalyzeFile(docId);                     // Obtains a plethora of detail about the document

title = GetAnalysisInfo(docId, analysisId, 3);   // 3 is the index for the Title string

You can obtain quite a lot of information about documents with these functions.


-------------
Eric O


Posted By: mLipok
Date Posted: 05 Jun 15 at 10:40PM
is there was any changes or AnalyseFile() need as parameters:

InputFileName The path and name of the file to analyse.
Password The password to use when opening the file. This can be either the owner or the user password. This parameter can be left blank if the file does not require a password to be opened.


-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: New User
Date Posted: 05 Jun 15 at 11:39PM
I've succeeded by applying this:

    int analysisId = qp.AnalyseFile(filename, "password")
    str Title = qp.GetAnalysisInfo(analysisId,3)

Thanks for the tip.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk