<?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 : Create bookmark tree using Delphi</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 : Sample Code : Create bookmark tree using Delphi]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 11 May 2026 22:15:21 +0000</pubDate>
  <lastBuildDate>Thu, 21 Jul 2016 05:09:32 +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=2199</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[Create bookmark tree using Delphi : Having a problem with this code...It...]]></title>
   <link>http://www.quickpdf.org/forum/create-bookmark-tree-using-delphi_topic2199_post13356.html#13356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2881">Guy</a><br /><strong>Subject:</strong> 2199<br /><strong>Posted:</strong> 21 Jul 16 at 5:09AM<br /><br />Having a problem with this code...<div><br></div><div>It adds the first node of each parent twice...any clues.</div><div><br></div><div>Guy</div>]]>
   </description>
   <pubDate>Thu, 21 Jul 2016 05:09:32 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/create-bookmark-tree-using-delphi_topic2199_post13356.html#13356</guid>
  </item> 
  <item>
   <title><![CDATA[Create bookmark tree using Delphi : HiI was wondering if it was possible...]]></title>
   <link>http://www.quickpdf.org/forum/create-bookmark-tree-using-delphi_topic2199_post10240.html#10240</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2078">ginganinja1</a><br /><strong>Subject:</strong> 2199<br /><strong>Posted:</strong> 25 Oct 12 at 1:58PM<br /><br />Hi<div><br></div><div>I was wondering if it was possible to make the page number displayed in the tree view invisible as I don't wont them to show as the page numbers on my bookmarks do not correspond the the page numbers displayed in the PDF document.</div><div><br></div><div>Thanks</div>]]>
   </description>
   <pubDate>Thu, 25 Oct 2012 13:58:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/create-bookmark-tree-using-delphi_topic2199_post10240.html#10240</guid>
  </item> 
  <item>
   <title><![CDATA[Create bookmark tree using Delphi : This sample code has been contributed...]]></title>
   <link>http://www.quickpdf.org/forum/create-bookmark-tree-using-delphi_topic2199_post9383.html#9383</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 2199<br /><strong>Posted:</strong> 27 Mar 12 at 8:50AM<br /><br /><div>This sample code has been contributed by a Quick PDF Library customer.</div><div><br></div><div>//=================== START &nbsp;Delphi 7 OutLine Code</div><div><br></div><div>tvOutLine:TTreeView;</div><div><br></div><div>// calling code is:&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GetAllOutlines(nil, QP.GetFirstOutline, 1, 3);</div><div><br></div><div>// this function is only needed to get the selected page number when dblclicking on the node</div><div>function FindLastChar(const S: AnsiString; Ch: Char = #32): Integer;</div><div>asm</div><div>&nbsp; test &nbsp;eax, eax</div><div>&nbsp; jz &nbsp; &nbsp;@@30</div><div>&nbsp; mov &nbsp;ecx, &#091;eax - 4&#093;</div><div>&nbsp; test &nbsp;ecx, ecx</div><div>@@10:</div><div>&nbsp; jz &nbsp; &nbsp;@@30</div><div>&nbsp; mov &nbsp;dh, &#091;eax + ecx&#093;</div><div>&nbsp; cmp &nbsp;dl, dh</div><div>&nbsp; jne &nbsp;@@20</div><div>&nbsp; mov &nbsp;eax, ecx</div><div>&nbsp; inc &nbsp;eax</div><div>&nbsp; ret</div><div>@@20:</div><div>&nbsp; dec &nbsp;ecx</div><div>&nbsp; jmp &nbsp;@@10</div><div>@@30:</div><div>&nbsp; xor &nbsp;eax, eax</div><div>&nbsp; dec &nbsp;eax</div><div>end;</div><div><br></div><div><br></div><div>procedure TfrmPdfReader.GetAllOutlines(nNode: TTreeNode; id, level, maxlevel: Integer);</div><div>var</div><div>&nbsp; inPage, inID: Integer;</div><div>&nbsp; rNode, cNode: TTreeNode;</div><div>begin</div><div>&nbsp; if (level &gt; maxlevel) then</div><div>&nbsp; &nbsp; exit;</div><div>&nbsp; while (id &lt;&gt; 0) do</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; inPage := QP.GetOutlinePage(id);</div><div>&nbsp; &nbsp; rNode := tvOutLine.Items.Add(nNode, QP.OutlineTitle(id) + ' ' + ' p.' + IntToStr(inPage));</div><div>&nbsp; &nbsp; inID := QP.GetFirstChildOutline(ID);</div><div>&nbsp; &nbsp; if (inID &lt;&gt; 0) then</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; cNode := tvOutLine.Items.AddChild(rNode, QP.OutlineTitle(inid) + ' ' + ' p.' + IntToStr(inPage));</div><div>&nbsp; &nbsp; &nbsp; GetAllOutlines(cNode, QP.GetFirstChildOutline(id), level + 1, maxlevel);</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; id := QP.GetNextOutline(id);</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>procedure TfrmPdfReader.tvOutlineDblClick(Sender: TObject);</div><div>var</div><div>&nbsp; inPos, inPage: Integer;</div><div>&nbsp; stPage: AnsiString;</div><div>begin</div><div>&nbsp; inPos := FindLastChar(tvOutLine.Selected.Text, '.');</div><div>&nbsp; stPage := copy(tvOutLine.Selected.Text, inPos + 1, 4);</div><div>&nbsp; if TryStrToInt(stPage, inPage) then</div><div>&nbsp; &nbsp; RenderPageToImage(QP,inPage,ImgPreview,ZoomPercentage: Integer);</div><div>end;</div><div><br></div><div>// ============= END Delphi Outline code &nbsp;===========</div>]]>
   </description>
   <pubDate>Tue, 27 Mar 2012 08:50:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/create-bookmark-tree-using-delphi_topic2199_post9383.html#9383</guid>
  </item> 
 </channel>
</rss>