<?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 : Flatten annotation in a PDF document</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 : Flatten annotation in a PDF document]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 15:13:03 +0000</pubDate>
  <lastBuildDate>Tue, 07 Jan 2014 02:25: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=2806</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[Flatten annotation in a PDF document : Hi Andrew,Yes, my previewer is...]]></title>
   <link>http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11422.html#11422</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1239">kk aw</a><br /><strong>Subject:</strong> 2806<br /><strong>Posted:</strong> 07 Jan 14 at 2:25AM<br /><br />Hi Andrew,<div><br></div><div>Yes, my previewer is based on Debenu Quick PDF Library and I use the RenderPageTo.. functions. &nbsp;</div><div><br></div><div>I am using version 9.16, as you can see from the codes. &nbsp;</div><div><br></div><div>I will send you the sample PDF for your testing.</div><div><br></div><div>KK Aw</div>]]>
   </description>
   <pubDate>Tue, 07 Jan 2014 02:25:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11422.html#11422</guid>
  </item> 
  <item>
   <title><![CDATA[Flatten annotation in a PDF document : KK Aw,Is your PDF previewer based...]]></title>
   <link>http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11421.html#11421</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2806<br /><strong>Posted:</strong> 06 Jan 14 at 10:50PM<br /><br /><div>KK Aw,</div><div>Is your PDF previewer based on Debenu Quick PDF Library and RenderPageTo... type functions ?</div><div><br></div><div>The current 10.11 version of Debenu Quick PDF Library doesn't fully support the rendering of transparency and this is most likely the cause of your problems. &nbsp;The soon to be released 10.12 version of the library will have much improved support for transparency rendering.</div><div><br></div><div>If you would like to send us the PDF to support@debenu.com then we can do some further testing with the soon to be released 10.12 version.</div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Mon, 06 Jan 2014 22:50:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11421.html#11421</guid>
  </item> 
  <item>
   <title><![CDATA[Flatten annotation in a PDF document : Thanks Andrew, I get the drift.Now,...]]></title>
   <link>http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11420.html#11420</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1239">kk aw</a><br /><strong>Subject:</strong> 2806<br /><strong>Posted:</strong> 06 Jan 14 at 3:52AM<br /><br />Thanks Andrew, I get the drift.<div><br></div><div>Now, my application recognizes all the highlights but on the first page, the highlights are not displayed. &nbsp;On the second page, both the highlights are now opaque.</div><div><br></div><div>KK Aw</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 06 Jan 2014 03:52:22 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11420.html#11420</guid>
  </item> 
  <item>
   <title><![CDATA[Flatten annotation in a PDF document : KK Aw,When you flatten Annot 1...]]></title>
   <link>http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11419.html#11419</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2806<br /><strong>Posted:</strong> 06 Jan 14 at 3:14AM<br /><br /><div><span style=": rgb251, 251, 253;">KK Aw,</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">When you flatten Annot 1 then Annot 4 becomes Annot 3, Annot 4 becomes Annot 2 and so on. You are calling FlattenAnnot(1); and then moving onto FlattenAnnot(2) not realising that the old Annot 2 is now Annot 1 and has been skipped.</span></div><div><br></div><div>Try this instead<div><br></div><div><span style=": rgb251, 251, 253;">&nbsp;for j:= iAnnotCount down 1 do</span></div></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">Andrew</span></div>]]>
   </description>
   <pubDate>Mon, 06 Jan 2014 03:14:34 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11419.html#11419</guid>
  </item> 
  <item>
   <title><![CDATA[Flatten annotation in a PDF document : I use the following routine to...]]></title>
   <link>http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11418.html#11418</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1239">kk aw</a><br /><strong>Subject:</strong> 2806<br /><strong>Posted:</strong> 05 Jan 14 at 2:57PM<br /><br />I use the following routine to flatten the annotations. &nbsp;<div><br><div><div>procedure TMainform.FlattenHighlights(Qp: TDebenuPDFLibrary0916);</div><div>var</div><div>&nbsp; iPagecount: Integer;</div><div>&nbsp; iAnnotCount: Integer;</div><div>&nbsp; i, j: Integer;</div><div>&nbsp; s1: string;</div><div>&nbsp; retval: Integer;</div><div>begin</div><div>&nbsp; iPageCount:= Qp.PageCount;</div><div>&nbsp; With Qp do</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; For i:= 1 to iPagecount do</div><div>&nbsp; &nbsp; &nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SelectPage(i);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iAnnotCount:= qp.AnnotationCount;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for j:= 1 to iAnnotCount do</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s1:= qp.GetAnnotStrProperty(j, 101);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If sm.equalIC(s1,'Highlight') then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; retval:= qp.FlattenAnnot(j, 0);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if retval = 0 then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(Format('Annotation No. %d cannot be flattened',&#091;j&#093;));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; end;</div><div>end;</div></div><div><br></div><div>I have 4 highlights on the first page and two on the second. &nbsp;</div></div><div>The results of my test are as follows:</div><div>a) &nbsp;Four annotation were found on the first page. &nbsp;The annotation type of 1 and 3 were blank.</div><div>b) &nbsp;Annotation 2 and 4 were displayed correctly in my PDF previewer.</div><div>c) &nbsp;On the second page, the first highlight covers the text. &nbsp;The second highlight was displayed correctly.</div><div><br></div><div>What have I done wrong or are there bugs in&nbsp;<span style="line-height: 1.4;">GetAnnotStrProperty and&nbsp;</span><span style="line-height: 1.4;">FlattenAnnot?</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">KK Aw</span></div><div><span style="line-height: 1.4;"><br></span></div>]]>
   </description>
   <pubDate>Sun, 05 Jan 2014 14:57:27 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11418.html#11418</guid>
  </item> 
  <item>
   <title><![CDATA[Flatten annotation in a PDF document : How do I flatten all the annotations...]]></title>
   <link>http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11417.html#11417</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1239">kk aw</a><br /><strong>Subject:</strong> 2806<br /><strong>Posted:</strong> 04 Jan 14 at 11:39AM<br /><br /><div>How do I flatten all the annotations (highlights) on a PDF document? &nbsp;There are so many different functions, and I am not sure about the sequence of using them.</div><div><br></div><div>Any help would be appreciated.</div><div><br></div><div>KK Aw</div>]]>
   </description>
   <pubDate>Sat, 04 Jan 2014 11:39:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flatten-annotation-in-a-pdf-document_topic2806_post11417.html#11417</guid>
  </item> 
 </channel>
</rss>