<?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 : Saving highlighted content automatically as images</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 : Saving highlighted content automatically as images]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 22:15:11 +0000</pubDate>
  <lastBuildDate>Mon, 23 Jan 2012 23:53:58 +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=2108</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[Saving highlighted content automatically as images : Here is some C# code that does...]]></title>
   <link>http://www.quickpdf.org/forum/saving-highlighted-content-automatically-as-images_topic2108_post8979.html#8979</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2108<br /><strong>Posted:</strong> 23 Jan 12 at 11:53PM<br /><br />Here is some C# code that does the job.<div><br></div><div><pre style="margin-top: 0px; margin-bottom: 10px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-: initial; font-size: 14px; vertical-align: line; -: initial; -attachment: initial; -origin: initial; -clip: initial; font-family: C&#111;nsolas, Menlo, M&#111;naco, 'Lucida C&#111;nsole', 'Liberati&#111;n Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow-x: auto; overflow-y: auto; width: auto; max-height: 600px; line-height: 17px; text-align: left; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-: initial; vertical-align: line; -: initial; -attachment: initial; -origin: initial; -clip: initial; : rgb238, 238, 238; font-family: C&#111;nsolas, Menlo, M&#111;naco, 'Lucida C&#111;nsole', 'Liberati&#111;n Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">private void ExtractAnnots_Click(object sender, EventArgs e)    {        int dpi = 300;        Rectangle r;        List&lt;Rectangle&gt; annotList = new List&lt;Rectangle&gt;();        QP.LoadFromFile("samplefile.pdf", "");        for (int p = 1; p &lt;= QP.PageCount(); p++)        {            QP.SelectPage(p);  // Select the current page.            QP.SetOrigin(1);   // Set origin to top left.            annotList.Clear();            for (int i = 1; i &lt;= QP.AnnotationCount(); i++)            {                if (QP.GetAnnotStrProperty(i, 101) == "Highlight")                {                    r = new Rectangle((int)(QP.GetAnnotDblProperty(i, 105) * dpi / 72.0),  // x                                      (int)(QP.GetAnnotDblProperty(i, 106) * dpi / 72.0),  // y                                      (int)(QP.GetAnnotDblProperty(i, 107) * dpi / 72.0),  // w                                      (int)(QP.GetAnnotDblProperty(i, 108) * dpi / 72.0)); // h                    annotList.Add(r); // Add the bounding box to the annotation list for this page.                    string s = String.Format("page={0}: x={1} y={2} w={3} h={4}\n", p, r.X, r.Y, r.Width, r.Height);                    OutputTxt.AppendText(s);                }            }            // Now we have a list of annotations for the current page.            // Delete the annotations from the PDF in memory so we don't render them.            for (int i = QP.AnnotationCount(); i &gt;= 0;  i--)                   QP.DeleteAnnotation(i);            QP.RenderPageToFile(dpi, p, 0, "page.bmp");   // 300 dpi, 0=bmp            Bitmap bmp = Image.FromFile("page.bmp") as Bitmap;             for (int i=0;i&lt;annotList.Count;i++)            {                Bitmap cropped = bmp.Clone(annotList<em>, bmp.PixelFormat);                string filename = String.Format("annot_p{0}_{1}.bmp", p, i+1);                cropped.Save(filename);            }            bmp.Dispose();        }        QP.RemoveDocument(QP.SelectedDocument());    }</code></pre></div>]]>
   </description>
   <pubDate>Mon, 23 Jan 2012 23:53:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/saving-highlighted-content-automatically-as-images_topic2108_post8979.html#8979</guid>
  </item> 
  <item>
   <title><![CDATA[Saving highlighted content automatically as images : Hi,i think you are on a wrong...]]></title>
   <link>http://www.quickpdf.org/forum/saving-highlighted-content-automatically-as-images_topic2108_post8976.html#8976</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1569">edvoigt</a><br /><strong>Subject:</strong> 2108<br /><strong>Posted:</strong> 23 Jan 12 at 4:58PM<br /><br />Hi,<br><br>i think you are on a wrong way. <br><br>Instead of using a tool to highlight areas of interest use easy a screenshot-programm and you get images. I use for this <a href="http://screenpresso.com" target="_blank">http://screenpresso.com</a>. A powerfull easy to use solution. <br><br>To extract the highlighted areas directly from PDF is a hard nut.<br><br>Cheers,<br><br>Werner<br>]]>
   </description>
   <pubDate>Mon, 23 Jan 2012 16:58:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/saving-highlighted-content-automatically-as-images_topic2108_post8976.html#8976</guid>
  </item> 
  <item>
   <title><![CDATA[Saving highlighted content automatically as images :  Hi!No. It&amp;#039;s not possible...]]></title>
   <link>http://www.quickpdf.org/forum/saving-highlighted-content-automatically-as-images_topic2108_post8974.html#8974</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2108<br /><strong>Posted:</strong> 21 Jan 12 at 9:57PM<br /><br />Hi!<br><br>No. It's not possible with a QuickPDF-function and i fear <br>you won't find any pdf-library on the world offering this <br>functionality. You can try to do it yourself WITH QuickPDF. <br>It will be the hardest stuff you ever done developing ;-)<br>Sorry...<br><br>Cheers and welcome here,<br>Ingo<br><br><span style="font-size:10px"><br /><br />Edited by Ingo - 21 Jan 12 at 9:58PM</span>]]>
   </description>
   <pubDate>Sat, 21 Jan 2012 21:57:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/saving-highlighted-content-automatically-as-images_topic2108_post8974.html#8974</guid>
  </item> 
  <item>
   <title><![CDATA[Saving highlighted content automatically as images : Hello Everyone,I have a pdf file...]]></title>
   <link>http://www.quickpdf.org/forum/saving-highlighted-content-automatically-as-images_topic2108_post8973.html#8973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1822">vg2786</a><br /><strong>Subject:</strong> 2108<br /><strong>Posted:</strong> 21 Jan 12 at 11:53AM<br /><br /><div><span style="font-family: Arial, 'Liberati&#111;n Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; text-align: left; ">Hello Everyone,</span></div><span style="font-family: Arial, 'Liberati&#111;n Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; text-align: left; ">I have a pdf file in which some text and images are highlighted using highlight text(U) tool. Is there a way to automatically extract all the highlighted content as separate images and save it to a folder? I dont want readable text. I just want all the highlighted content as images. Thanks</span><div><span style="font-family: Arial, 'Liberati&#111;n Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; text-align: left; ">I want to upload the sample file. But here there is no option to upload the sample file.</span></div><div><span style="text-align: left; font-size: 14px; line-height: 18px;"><font face="Arial, 'Liberati&#111;n Sans', 'DejaVu Sans', sans-serif"><a href="http://www.sendspace.com/file/hejhkp" target="_blank">http://www.sendspace.com/file/hejhkp</a></font></span></div>]]>
   </description>
   <pubDate>Sat, 21 Jan 2012 11:53:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/saving-highlighted-content-automatically-as-images_topic2108_post8973.html#8973</guid>
  </item> 
 </channel>
</rss>