<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : Extract Metadata</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : Extract Metadata]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 17:45:17 +0000</pubDate>
  <lastBuildDate>Fri, 07 Mar 2014 09:28:25 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=2845</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[Extract Metadata :   This solution is For VB6.One...]]></title>
   <link>http://www.quickpdf.org/forum/extract-metadata_topic2845_post11546.html#11546</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2360">AndyD</a><br /><strong>Subject:</strong> 2845<br /><strong>Posted:</strong> 07 Mar 14 at 9:28AM<br /><br /><div>This solution is For VB6.</div><div>&nbsp;</div>One example of this would be if you wanted to read the Title data from a list of PDF's and display them in a Listbox.<div>&nbsp;</div><div>I use this personally in a program because many PDF filenames are quite random whereas you can store meaningful info in the title and use that instead.</div><div>&nbsp;</div><div>First I have a form with a basic listbox on it.</div><div>&nbsp;</div><div>Then at runtime just set the column headers.</div><div>&nbsp;</div><div><strong>Private Sub Form_Load()</strong></div><div><strong></strong>&nbsp;</div><div><strong>&nbsp;&nbsp;&nbsp; Set colX = ListView1.ColumnHeaders.add()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; colX.Text = "Filename"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; colX.Width = 1 </strong></div><div><strong>' I set this to 1 to hide this column as the Filename isn't useful to me visually but is used elsewhere.<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Set colX = ListView1.ColumnHeaders.add()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; colX.Text = "Document Description"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; colX.Width = 9100</strong></div><div><strong></strong>&nbsp;</div><div><strong>End Sub</strong></div><div>&nbsp;</div><div>Then either within the form load or from a button call, the following routine will loop through all the PDF's in a specific folder, using the Call ReadPDF function it extracts the Title information from each PDF and displays it in the listbox.</div><div>&nbsp;</div><div>&nbsp;</div><div><strong>Dim sFile As String</strong></div><div><strong>Dim FullPath as String</strong></div><div><strong></strong>&nbsp;</div><div><strong>sFile = Dir$("PDFLocation\*.*")<br>&nbsp;&nbsp;&nbsp;&nbsp;</strong></div><p><strong>Do Until sFile = ""</strong></p><div><strong>If Left$(sFile, 1) &lt;&gt; "." Then<br>&nbsp;&nbsp;&nbsp;&nbsp; FullPath = "PDFLocation\" &amp; sFile<br>&nbsp;&nbsp;&nbsp;&nbsp; Call ReadPDF(FullPath)<br>&nbsp;&nbsp;&nbsp;&nbsp; Set ItmX = ListView1.ListItems.add(, , sFile)<br>&nbsp;&nbsp;&nbsp;&nbsp; ItmX.SubItems(1) = msTitle<br>End If</strong></div><div><strong>sFile = Dir$<br>Loop</strong></div><div><strong>ListView1.Sorted = True<br>ListView1.SortOrder = lvwAscending ' This just sorts the titles alphabetically<br>ListView1.SortKey = 1</strong></div><div>&nbsp;</div><div>&nbsp;</div><div><strong>Function ReadPDF(ByVal sFile As String) As Boolean</strong></div><div><strong>&nbsp;&nbsp;&nbsp; ClassName = "DebenuPDFLibraryAX0914.PDFLibrary"<br>&nbsp;&nbsp;&nbsp; LicenseKey = "Your Licence info here"<br>&nbsp;&nbsp;&nbsp; Set QP = CreateObject(ClassName)<br>&nbsp;&nbsp;&nbsp; Result = QP.UnlockKey(LicenseKey)<br>If result = 1 then&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp; Call QP.LoadFromFile(sFile, "")<br>&nbsp;&nbsp;&nbsp; msTitle = QP.GetInformation(2)<br>&nbsp;&nbsp;&nbsp; Set QP = Nothing</strong></div><div><strong>End If</strong></div><div><strong>End Function</strong></div><div>&nbsp;</div><div>&nbsp;</div><div>Using the .GetInformation() function you can retrieve the following info:</div><div>&nbsp;</div><div>(0) = PDF Version</div><div>(1) = Author</div><div>(2) = Title</div><div>(3) = Subject</div><div>(4) = Keywords</div><div>(5) = Creator</div><div>(6) = Producer</div><div>(7) = Creation Date</div><div>(8) = Modification Date</div><div>&nbsp;</div><div>&nbsp;</div><div>Hopefully this will help someway to achieving what you need.</div><span style="font-size:10px"><br /><br />Edited by AndyD - 08 Mar 14 at 9:19AM</span>]]>
   </description>
   <pubDate>Fri, 07 Mar 2014 09:28:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extract-metadata_topic2845_post11546.html#11546</guid>
  </item> 
  <item>
   <title><![CDATA[Extract Metadata : Hi,I want to know how to create...]]></title>
   <link>http://www.quickpdf.org/forum/extract-metadata_topic2845_post11545.html#11545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2538">Guna</a><br /><strong>Subject:</strong> 2845<br /><strong>Posted:</strong> 06 Mar 14 at 5:12PM<br /><br />Hi,<div><br></div><div>I want to know how to create a specific action to extract metadata from the PDF. This action must be automated so that I can extract 100 document titles. Please help!!&nbsp;</div><div><br></div><div>Regards,</div><div>Guna</div>]]>
   </description>
   <pubDate>Thu, 06 Mar 2014 17:12:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extract-metadata_topic2845_post11545.html#11545</guid>
  </item> 
 </channel>
</rss>