<?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 : Retaining OCG / Layers When Merging PDFs</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 : Retaining OCG / Layers When Merging PDFs]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 27 Jun 2026 19:38:56 +0000</pubDate>
  <lastBuildDate>Tue, 14 Feb 2023 19:00:46 +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=4001</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[Retaining OCG / Layers When Merging PDFs : What you can do first is count...]]></title>
   <link>http://www.quickpdf.org/forum/retaining-ocg-layers-when-merging-pdfs_topic4001_post16225.html#16225</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 4001<br /><strong>Posted:</strong> 14 Feb 23 at 7:00PM<br /><br />What you can do first is count the layers.<div>Second step: Copy your file as layercount times (5 layers means 6 copies cause it starts with 0 i think).</div><div>Third step: Remove from each file another layer.</div><div>Fourth step: Compare each file version after layer removed.</div><div>I don't know the value of this procedures but that's all (i think) what you can do with layers (contentstreams) using QuickPDF.</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 14 Feb 2023 19:00:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/retaining-ocg-layers-when-merging-pdfs_topic4001_post16225.html#16225</guid>
  </item> 
  <item>
   <title><![CDATA[Retaining OCG / Layers When Merging PDFs : I tried something like this, but...]]></title>
   <link>http://www.quickpdf.org/forum/retaining-ocg-layers-when-merging-pdfs_topic4001_post16224.html#16224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3325">fellafoo</a><br /><strong>Subject:</strong> 4001<br /><strong>Posted:</strong> 12 Feb 23 at 8:04PM<br /><br /><div><div>I tried something like this, but the layers are gone.</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>if PDF_NewPDFLib(PDFLib, True) then begin</div><div>&nbsp; i := 1;</div><div>&nbsp; while (i &lt;= Files2Merge.Count) do begin</div><div>&nbsp; &nbsp; PDFLib.LoadFromFile(Files2Merge&#091;i - 1&#093;, ''); { Load Existing File }</div><div>&nbsp; &nbsp; PDFLib.SelectDocument(PDFLib.GetDocumentID(1)); { Select 'Blank' Document }</div><div>&nbsp; &nbsp; PDFLib.CopyPageRanges(PDFLib.GetDocumentID(2), '1'); { Copy Page 1 from existing to 'blank' }</div><div>&nbsp; &nbsp; PDFLib.RemoveDocument(PDFLib.GetDocumentID(2)); { Remove existing from list }</div><div>&nbsp; &nbsp; Inc(i);</div><div>&nbsp; end;</div><div>&nbsp; PDFLib.DeletePages(1, 1); { Delete blank page }</div></div><div>&nbsp; PDFLib.SaveToFile(MergeMaster);</div><div>end;</div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Sun, 12 Feb 2023 20:04:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/retaining-ocg-layers-when-merging-pdfs_topic4001_post16224.html#16224</guid>
  </item> 
  <item>
   <title><![CDATA[Retaining OCG / Layers When Merging PDFs : perhaps you can do some experiments...]]></title>
   <link>http://www.quickpdf.org/forum/retaining-ocg-layers-when-merging-pdfs_topic4001_post16222.html#16222</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 4001<br /><strong>Posted:</strong> 12 Feb 23 at 5:14PM<br /><br />perhaps you can do some experiments with MergeDocument or ExtractFilePages?<div>Perhaps with better results?</div><div><br></div>]]>
   </description>
   <pubDate>Sun, 12 Feb 2023 17:14:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/retaining-ocg-layers-when-merging-pdfs_topic4001_post16222.html#16222</guid>
  </item> 
  <item>
   <title><![CDATA[Retaining OCG / Layers When Merging PDFs : Dear Forum Members:Do any of you...]]></title>
   <link>http://www.quickpdf.org/forum/retaining-ocg-layers-when-merging-pdfs_topic4001_post16219.html#16219</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3325">fellafoo</a><br /><strong>Subject:</strong> 4001<br /><strong>Posted:</strong> 09 Feb 23 at 7:00PM<br /><br />Dear Forum Members:<div><br></div><div>Do any of you know how to retain OCG / Layers while merging PDFs?</div><div><br></div><div>I can merge multiple PDFs with PDFLib.MergeFileList or PDFLib.MergeFileListFast but only the first page retains its layers. I've experimented with MergeDocument and MergeFiles and get the same results. I expect behind the scenes these routines do essentially the same thing.</div><div><br></div><div>The PDFs I'm merging are all one page each. Each one has layers and all are created using PDFLib.</div><div><br></div><div>Thanks,</div><div><br></div><div>MFM</div>]]>
   </description>
   <pubDate>Thu, 09 Feb 2023 19:00:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/retaining-ocg-layers-when-merging-pdfs_topic4001_post16219.html#16219</guid>
  </item> 
 </channel>
</rss>