<?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 : Remove white spaces</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 : Remove white spaces]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 13:19:52 +0000</pubDate>
  <lastBuildDate>Wed, 04 Dec 2013 10:39:57 +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=2792</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[Remove white spaces : Thanks. ]]></title>
   <link>http://www.quickpdf.org/forum/remove-white-spaces_topic2792_post11375.html#11375</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> 2792<br /><strong>Posted:</strong> 04 Dec 13 at 10:39AM<br /><br />Thanks. &nbsp;]]>
   </description>
   <pubDate>Wed, 04 Dec 2013 10:39:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/remove-white-spaces_topic2792_post11375.html#11375</guid>
  </item> 
  <item>
   <title><![CDATA[Remove white spaces : kk,There is no simple solution...]]></title>
   <link>http://www.quickpdf.org/forum/remove-white-spaces_topic2792_post11373.html#11373</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2792<br /><strong>Posted:</strong> 04 Dec 13 at 8:05AM<br /><br />kk,<div><br></div><div>There is no simple solution as it depends on your PDF file.</div><div><br></div><div>One option would be to call QP.RenderPageToFile with a low DPI value to a Bitmap and then use code to read the pixels line by line searching for the 1st non white pixel. &nbsp;You would need to search from 4 different directions to detect the top, left, right and bottom margins. &nbsp;You then convert this pixel position back to points. &nbsp;If you render at 72dpi then pixels = points.</div><div><br></div><div>Andrew.</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 04 Dec 2013 08:05:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/remove-white-spaces_topic2792_post11373.html#11373</guid>
  </item> 
  <item>
   <title><![CDATA[Remove white spaces : Andrew,Thanks for the response....]]></title>
   <link>http://www.quickpdf.org/forum/remove-white-spaces_topic2792_post11372.html#11372</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> 2792<br /><strong>Posted:</strong> 03 Dec 13 at 10:32AM<br /><br />Andrew,<div><br></div><div>Thanks for the response. &nbsp;I need to determine this programmatically. &nbsp;How would I do that?<div><br></div><div>KK Aw</div></div>]]>
   </description>
   <pubDate>Tue, 03 Dec 2013 10:32:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/remove-white-spaces_topic2792_post11372.html#11372</guid>
  </item> 
  <item>
   <title><![CDATA[Remove white spaces : kk,You could always adjust the...]]></title>
   <link>http://www.quickpdf.org/forum/remove-white-spaces_topic2792_post11369.html#11369</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2792<br /><strong>Posted:</strong> 03 Dec 13 at 6:22AM<br /><br /><div><span style="line-height: 1.4;">kk,</span></div><div><br></div>You could always adjust the CropBox and make it smaller. &nbsp;Technically it doesn't remove any content from the PDF file but it adjusts the visiblee rectangle that is used for displaying the PDF in Acrobat and other viewers.<div><br></div><div>This would assume you know how big the borders are in the first place. &nbsp;Depending on the PDF there could be ways to determine this programmatically.<br><div><br></div><div>&nbsp; QP.LoadFromFile ....</div><div>&nbsp; QP.SetPageBox(2, left, top, width, height); &nbsp;// 2 = CropBox.</div><div>&nbsp; QP.SaveToFile ..<br><div><br></div><div>Andrew.</div></div></div>]]>
   </description>
   <pubDate>Tue, 03 Dec 2013 06:22:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/remove-white-spaces_topic2792_post11369.html#11369</guid>
  </item> 
  <item>
   <title><![CDATA[Remove white spaces : Is it possible to remove the white...]]></title>
   <link>http://www.quickpdf.org/forum/remove-white-spaces_topic2792_post11364.html#11364</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> 2792<br /><strong>Posted:</strong> 01 Dec 13 at 12:19PM<br /><br />Is it possible to remove the white spaces (along the borders) of the PDF document using the QuickPDF library?<div></div>]]>
   </description>
   <pubDate>Sun, 01 Dec 2013 12:19:02 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/remove-white-spaces_topic2792_post11364.html#11364</guid>
  </item> 
 </channel>
</rss>