<?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 : FlattenAnnot</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 : FlattenAnnot]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 23:28:07 +0000</pubDate>
  <lastBuildDate>Tue, 15 Sep 2015 04:19:51 +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=3169</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[FlattenAnnot : Hi all,I have found a different...]]></title>
   <link>http://www.quickpdf.org/forum/flattenannot_topic3169_post12719.html#12719</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1681">CrazyTIm</a><br /><strong>Subject:</strong> 3169<br /><strong>Posted:</strong> 15 Sep 15 at 4:19AM<br /><br />Hi all,<div><br></div><div>I have found a different pdf where calling NormalizePage() before flattening annotations results in no annotations at all. This is frustrating, because the solution to the first issue raised a second issue :)</div><div><br></div><div>Can someone help me understand why calling&nbsp;<span style="line-height: 16.8px;">NormalizePage() and then flatten d</span><span style="line-height: 1.4;">oesn't work on this pdf. How I can solve this new problem?</span></div><div><br></div><div>pdf #2 before flattening:&nbsp;<a href="http://tinyurl.com/nu6gw42" target="_blank" rel="nofollow">http://tinyurl.com/nu6gw42</a><br></div><div><br></div><div>pdf #2 after flattening (no annotations!):&nbsp;<a href="http://tinyurl.com/qhwd2g7" target="_blank" rel="nofollow">http://tinyurl.com/qhwd2g7</a></div><div><br></div><div>Thanks, Jason</div><div><br></div><span style="font-size:10px"><br /><br />Edited by CrazyTIm - 15 Sep 15 at 5:29AM</span>]]>
   </description>
   <pubDate>Tue, 15 Sep 2015 04:19:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flattenannot_topic3169_post12719.html#12719</guid>
  </item> 
  <item>
   <title><![CDATA[FlattenAnnot : Ok folks, so there is this useful...]]></title>
   <link>http://www.quickpdf.org/forum/flattenannot_topic3169_post12695.html#12695</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1681">CrazyTIm</a><br /><strong>Subject:</strong> 3169<br /><strong>Posted:</strong> 31 Aug 15 at 2:29AM<br /><br />Ok folks, so there is this useful function called&nbsp;NormalizePage(), not sure if anyone has heard about it :P<div><br></div><div>Turns out calling this before flattening annotations will prevent the text from being mirrored. I don't know if it works in all cases, but for now this seems to be working for a few different pdfs I've tested with.</div><div><br></div><div>Cheers, Jason.</div>]]>
   </description>
   <pubDate>Mon, 31 Aug 2015 02:29:55 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flattenannot_topic3169_post12695.html#12695</guid>
  </item> 
  <item>
   <title><![CDATA[FlattenAnnot : Ok that solves the problem of...]]></title>
   <link>http://www.quickpdf.org/forum/flattenannot_topic3169_post12694.html#12694</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1681">CrazyTIm</a><br /><strong>Subject:</strong> 3169<br /><strong>Posted:</strong> 31 Aug 15 at 1:21AM<br /><br />Ok that solves the problem of only half of them flattening! Thanks mate.<div><br></div><div>We still have the issue where the text is reversed (mirrored), any thoughts about this? Its not readable as the characters sometimes overlap each other and this is a real issue.</div><div><br></div><div>Jason.</div>]]>
   </description>
   <pubDate>Mon, 31 Aug 2015 01:21:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flattenannot_topic3169_post12694.html#12694</guid>
  </item> 
  <item>
   <title><![CDATA[FlattenAnnot :  Try looping backwards, or with...]]></title>
   <link>http://www.quickpdf.org/forum/flattenannot_topic3169_post12689.html#12689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 3169<br /><strong>Posted:</strong> 28 Aug 15 at 11:13PM<br /><br />Try looping backwards, or with your current loop call Q.FlattenAnnot(1, 0) instead of (a, 0). I think when you flatten an annotation the count changes, so you are only going to flatten half the annotations using your current approach.<br>]]>
   </description>
   <pubDate>Fri, 28 Aug 2015 23:13:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flattenannot_topic3169_post12689.html#12689</guid>
  </item> 
  <item>
   <title><![CDATA[FlattenAnnot : Hi guys, we found some issues...]]></title>
   <link>http://www.quickpdf.org/forum/flattenannot_topic3169_post12686.html#12686</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1681">CrazyTIm</a><br /><strong>Subject:</strong> 3169<br /><strong>Posted:</strong> 28 Aug 15 at 6:34AM<br /><br /><span style="line-height: 16.7999992370605px;">Hi guys, we found some issues with FlattenAnnot... (v11.15)</span><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;">Here is the pdf:</div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;">Before:&nbsp;<a href="http://tinyurl.com/ok8j2rd" target="_blank" rel="nofollow">http://tinyurl.com/og3hffn</a></div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;">When we loop over each annotation, only 4 out of 8 annotations are actually flattened (returns 1), the other 4 are not (returns 0), and as you can see, after flattening one of the annotations has jumbled text:</div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;">After:&nbsp;<a href="http://tinyurl.com/p9r23hu" target="_blank" rel="nofollow">http://tinyurl.com/p9r23hu</a>&nbsp;(note: looks fine when rendered in Chrome, but in Adobe Reader you can see the jumbled text)</div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;"><span style="line-height: 16.7999992370605px;">The jumbled text is really causing a problem, need to prevent this.</span></div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;">Code (VB.NET):</div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;"><div>Q.LoadFromFile(PathToPDF, "")</div><div>Dim pc As Integer = Q.PageCount</div><div><br></div><div>' loop over pages</div><div>For i = 1 To pc</div><div><br></div><div>Dim ac As Integer = Q.AnnotationCount</div><div><br></div><div>' flatten each annotation on this page</div><div>For a = 1 To ac</div><div>Dim f = Q.FlattenAnnot(a, 0)</div><div>Dim g = ""</div><div>Next</div><div><br></div><div>Next</div><div><br></div><div>' save</div><div>Q.SaveToFile(PathToPDF)</div></div><span style="font-size:10px"><br /><br />Edited by CrazyTIm - 15 Sep 15 at 5:04AM</span>]]>
   </description>
   <pubDate>Fri, 28 Aug 2015 06:34:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flattenannot_topic3169_post12686.html#12686</guid>
  </item> 
 </channel>
</rss>