<?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 : Remove ouline, move children</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 : Remove ouline, move children]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 11:56:46 +0000</pubDate>
  <lastBuildDate>Wed, 25 Apr 2012 21:43:05 +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=2244</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[Remove ouline, move children :  Actually just figured this out...]]></title>
   <link>http://www.quickpdf.org/forum/remove-ouline-move-children_topic2244_post9525.html#9525</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1827">CThomp2009</a><br /><strong>Subject:</strong> 2244<br /><strong>Posted:</strong> 25 Apr 12 at 9:43PM<br /><br />Actually just figured this out myself - although is pretty structured for my own situation...<br><br>Loop starts with the FirstOutline's ID, and also captures its Title and FirstChildID in variables.<br><br>Then checks the Title of the NextOutline (which will be the next outline at the same <i>root</i> level).&nbsp; If they match, it MovesAfter the "NextOutline"'s FirstChildID to the (current) Outline's FirstChildID.&nbsp; The ChildID variable is updated to the one moved (so it's the last in the current hierarchy).&nbsp; The "NextOutline" (the duplicate root outline) is removed.<br><br>Keeps going like this until NextOutlineID = 0 (no next outline).<br><br>If the Titles between the current Outline and next Outline don't match, up updates the ID, Title and FirstChildID variables to the "Next" ones (which then become the "current" ones in the next loop).<br><br>Is very short and sweet code, in the end, and easier to figure out from the code than my explanation.<br><br>Note, this process is only set up to find dupes that occur right after each other (such is my case), but not dupes that occur further down - anywhere else in the file.&nbsp; I could spend some time doing that, but am good for now with this solution.<br><br>Thanks to anyone who took a look at this!<br><span style="font-size:10px"><br /><br />Edited by CThomp2009 - 25 Apr 12 at 9:45PM</span>]]>
   </description>
   <pubDate>Wed, 25 Apr 2012 21:43:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/remove-ouline-move-children_topic2244_post9525.html#9525</guid>
  </item> 
  <item>
   <title><![CDATA[Remove ouline, move children :   I have an outline situation...]]></title>
   <link>http://www.quickpdf.org/forum/remove-ouline-move-children_topic2244_post9522.html#9522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1827">CThomp2009</a><br /><strong>Subject:</strong> 2244<br /><strong>Posted:</strong> 25 Apr 12 at 5:46PM<br /><br />I have an outline situation that's driving me crazy.&nbsp; We generate reports where the end results are pdf files with outlines already in them.&nbsp; Once all the reports are generated, we compile/merge groups of them together into another file (with the outlines combined).&nbsp; This, however, creates duplicate entries in the outlines that I need to remove, and move the child outlines "up"...<br><br>Example, the outline structure of a merged file would look like:<br><br>Cover<br>Table of Contents<br>Bob<br>&nbsp;&nbsp; Dept A<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 2<br>Joe<br>&nbsp;&nbsp; Dept C<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 2<br>Joe<br>&nbsp;&nbsp; Dept D<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 2<br><br>So the goal here is to remove the second "top-level" instance of "Joe" (because it's duplicated) and move his children up under the children of Joe's first occurrence.&nbsp; The result would be:<br><br>Cover<br>Table of Contents<br>Bob<br>&nbsp;&nbsp; Dept A<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 2<br>Joe<br>&nbsp;&nbsp; Dept C<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 2<br>&nbsp;&nbsp; Dept D<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section 2<br><br>I've been coding through several different methods, but can't seem to figure out how to do it.&nbsp; Note, there may be multiple instances of several people in a file, and there may be numerous occurrences of a single person within a file.&nbsp; <b>All</b> the dupes would need to be removed with their children moved up under the children of the first occurrence.<br><br>Additionally, these duplicates will <b>only </b>occur at the top-most (root) level, not below.<br><br>Any and all help/suggestions would be greatly appreciated!&nbsp; (Day 2 for me trying to make this work correctly!)&nbsp; I'm coding in VB, but can figure out other languages if posted in them.<br><br>--- UPDATE ---<br>I thought I could just reassign the Parent ID of the second-level child outline to the first instance of the top-level outline, but it doesn't appear that an outline's ParentOutlineID is changeable once set (?)<br><br>Additionally, when creating an outline, root items get a ParentID of 0, so I thought I could just look for this to detect top-level outlines, but I actually get an ID from something - and it appears to be a different ID for each top-level/root outline.&nbsp; What does this "object" (Parent) ID come from?<br><br><br><span style="font-size:10px"><br /><br />Edited by CThomp2009 - 25 Apr 12 at 7:20PM</span>]]>
   </description>
   <pubDate>Wed, 25 Apr 2012 17:46:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/remove-ouline-move-children_topic2244_post9522.html#9522</guid>
  </item> 
 </channel>
</rss>