<?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 : Adding pages</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 : Adding pages]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 08 May 2026 06:04:35 +0000</pubDate>
  <lastBuildDate>Thu, 18 Mar 2010 12:38:26 +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=1371</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[Adding pages : After using much time trying to...]]></title>
   <link>http://www.quickpdf.org/forum/adding-pages_topic1371_post6241.html#6241</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1269">einar</a><br /><strong>Subject:</strong> 1371<br /><strong>Posted:</strong> 18 Mar 10 at 12:38PM<br /><br />After using much time trying to use&nbsp;ClonePages() and CapturePage()/DrawCapturedPage() without luck,&nbsp;I found that using MergeDocument() did what I needed. So I like to add this function to this forum. The code is in Foxpro.<DIV>&nbsp;</DIV><DIV>The task is to create a letter using a template with two pages. (The template is created with MS-Word) One page with header/footer for the first page and one page as a template for rest of the pages. The idea is to add template page 2 as many times as needed.</DIV><DIV>&nbsp;</DIV><DIV>Function NewPage(N) &amp;&amp; N is template page 1 or 2.<BR>&nbsp;Local nLast, nDoc2<BR>&nbsp;With This<BR>&nbsp;&nbsp;If N==1<BR>&nbsp;&nbsp;&nbsp;result=.oPDF.LoadFromFile(.templatefile)<BR>&nbsp;&nbsp;&nbsp;This.DocId=.oPDF.SelectedDocument()<BR>&nbsp;&nbsp;&nbsp;nLast=This.oPDF.PageCount()<BR>&nbsp;&nbsp;&nbsp;.oPDF.DeletePages(2,nLast-1)<BR>&nbsp;&nbsp;Else<BR>&nbsp;&nbsp;&nbsp;result=.oPDF.LoadFromFile(.templatefile)<BR>&nbsp;&nbsp;&nbsp;nDoc2=.oPDF.SelectedDocument()<BR>&nbsp;&nbsp;&nbsp;.oPDF.DeletePages(1,1)<BR>&nbsp;&nbsp;&nbsp;.oPDF.SelectDocument(.DocId)<BR>&nbsp;&nbsp;&nbsp;.oPDF.MergeDocument(nDoc2)<BR>&nbsp;&nbsp;Endif<BR>&nbsp;&nbsp;nLast=This.oPDF.PageCount()<BR>&nbsp;&nbsp;.oPDF.SelectPage(nLast)<BR>&nbsp;&nbsp;Return result<BR>&nbsp;Endwith<BR>&nbsp;Endfunc</DIV>]]>
   </description>
   <pubDate>Thu, 18 Mar 2010 12:38:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/adding-pages_topic1371_post6241.html#6241</guid>
  </item> 
 </channel>
</rss>