<?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 : Cropping pages with QuickPDF Library</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 : Cropping pages with QuickPDF Library]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 05:31:38 +0000</pubDate>
  <lastBuildDate>Sat, 07 Apr 2018 14:58:14 +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=3445</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[Cropping pages with QuickPDF Library : I know this is a bit late, but...]]></title>
   <link>http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post14166.html#14166</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1532">HNRSoftware</a><br /><strong>Subject:</strong> 3445<br /><strong>Posted:</strong> 07 Apr 18 at 2:58PM<br /><br />I know this is a bit late, but I needed to do some "cropping" work and based it on ukobsa's example.&nbsp; I have discovered a few less-than-obvious things.&nbsp; <br><br>First is that the example code only changes the first page.&nbsp; It is necessary to use a page selection loop to change all of the pages -- that seems to work fine.<br><br>Second - this does not actually "crop" anything out of the file -- all of the existing data on each page is still there and the file remains about the same size.&nbsp; I am guessing that the "SetCropBox" call just adds a small thing to each page telling it where the "useful" data is.<br><br>Adobe Acrobat does recognize the "CropBox" and does more or less what you would expect.&nbsp; I'm not sure of exactly how it treats the cropbox on printing, but it is at least reasonable.<br><br>Thanks - Howard<br><span style="font-size:10px"><br /><br />Edited by HNRSoftware - 07 Apr 18 at 2:59PM</span>]]>
   </description>
   <pubDate>Sat, 07 Apr 2018 14:58:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post14166.html#14166</guid>
  </item> 
  <item>
   <title><![CDATA[Cropping pages with QuickPDF Library : I haven&#226;&#8364;&#8482;t applied your advice...]]></title>
   <link>http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13712.html#13712</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2937">Richard Langin</a><br /><strong>Subject:</strong> 3445<br /><strong>Posted:</strong> 27 Mar 17 at 2:44PM<br /><br /><span style="font-size: 12pt;">I haven’t applied your advice yet; in the meanwhile let me thank you all (<b>Ukobsa</b>first) for your help. Gratefully.</span><p ="Ms&#111;normal"><span style="font-size:12.0pt;line-height:115%;mso-ansi-:  EN-US"><o:p></o:p></span></p>]]>
   </description>
   <pubDate>Mon, 27 Mar 2017 14:44:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13712.html#13712</guid>
  </item> 
  <item>
   <title><![CDATA[Cropping pages with QuickPDF Library : I should add that your code works...]]></title>
   <link>http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13711.html#13711</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 3445<br /><strong>Posted:</strong> 24 Mar 17 at 10:38AM<br /><br />I should add that your code works for me. &nbsp;I tried it on an A4 PDF and got a PDF 174.6mm by 261.8mm, with the edge strips of the original document missing.]]>
   </description>
   <pubDate>Fri, 24 Mar 2017 10:38:24 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13711.html#13711</guid>
  </item> 
  <item>
   <title><![CDATA[Cropping pages with QuickPDF Library : If you see only the intersection,...]]></title>
   <link>http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13710.html#13710</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 3445<br /><strong>Posted:</strong> 24 Mar 17 at 10:23AM<br /><br />If you see only the intersection, that is exactly what I would expect. &nbsp;Is it not what you expect? &nbsp;Here is an explanation from an Adobe manual I have (for PDF 1.7, dated 2008):<div><br></div><div>"The page object dictionary specifies these boundaries in the MediaBox, CropBox, BleedBox, TrimBox, and ArtBox entries, respectively (see Table 30). All of them are rectangles expressed in default user space units. The crop, bleed, trim, and art boxes shall not ordinarily extend beyond the boundaries of the media box. If they do, they are effectively reduced to their intersection with the media box. Figure 86 illustrates the relationships among these boundaries. (The crop box is not shown in the figure because it has no defined relationship with any of the other boundaries.)"</div>]]>
   </description>
   <pubDate>Fri, 24 Mar 2017 10:23:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13710.html#13710</guid>
  </item> 
  <item>
   <title><![CDATA[Cropping pages with QuickPDF Library : Richard,here&amp;#039;s a very simple...]]></title>
   <link>http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13706.html#13706</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=370">ukobsa</a><br /><strong>Subject:</strong> 3445<br /><strong>Posted:</strong> 23 Mar 17 at 4:11PM<br /><br />Richard,<br><br>here's a very simple sample:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>pdf := TDebenuPDFLibrary.Create;<br>&nbsp; try<br>&nbsp;&nbsp;&nbsp; pdf.LoadFromFile('d:\downloads\testseite.pdf', '');<br><br>&nbsp;&nbsp;&nbsp; pdf.SetOrigin(0);<br>&nbsp;&nbsp;&nbsp; dLeft := pdf.GetPageBox(2,0);<br>&nbsp;&nbsp;&nbsp; dTop := pdf.GetPageBox(2, 1);<br>&nbsp;&nbsp;&nbsp; dWidth := pdf.GetPageBox(2,2);<br>&nbsp;&nbsp;&nbsp; dHeight:= pdf.GetPageBox(2,3);<br><br>&nbsp;&nbsp;&nbsp; // CropBox :=&nbsp; (dLeft, dTop, dLeft + dWidth, dTop - dHeight)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; // reduze size by 50 PDF units<br>&nbsp;&nbsp;&nbsp; pdf.SetPageBox(2, dLeft + 50, dTop - 50, dWidth - 2 * 50, dHeight - 2 * 50);<br>&nbsp;&nbsp;&nbsp; pdf.SaveToFile('d:\downloads\testseite_red.pdf')<br>&nbsp; finally<br>&nbsp;&nbsp;&nbsp; pdf.Free;<br>&nbsp; end;<br></pre></td></tr></table><br><br>But please be aware that visually you will see only a change, when crop box is inside or equal media box (simplified said).<br>More general: what you see on screen is the intersection of Crop and Media box.<br><br>HTH,<br>Uli<br>]]>
   </description>
   <pubDate>Thu, 23 Mar 2017 16:11:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13706.html#13706</guid>
  </item> 
  <item>
   <title><![CDATA[Cropping pages with QuickPDF Library : Sorry, though I have worked with...]]></title>
   <link>http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13704.html#13704</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 3445<br /><strong>Posted:</strong> 21 Mar 17 at 11:29PM<br /><br />Sorry, though I have worked with crop boxes I do not have to hand an example which does just what you need, and at the moment do not have time to create one specially. &nbsp;If you are able to post a very simple piece of your own code, to load, apply a crop, and save a file, then someone here may be able to spot what is causing it not to achieve the result you expect.]]>
   </description>
   <pubDate>Tue, 21 Mar 2017 23:29:32 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13704.html#13704</guid>
  </item> 
  <item>
   <title><![CDATA[Cropping pages with QuickPDF Library : First, thank you for your reply.That&#226;&#8364;&#8482;s...]]></title>
   <link>http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13703.html#13703</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2937">Richard Langin</a><br /><strong>Subject:</strong> 3445<br /><strong>Posted:</strong> 20 Mar 17 at 8:40PM<br /><br />First, thank you for your reply.<div><br></div><div>That’s the problem: I <i>do</i> understand that the crop box is an “invisible” setting, yet I can’t put it to work <i>effectively</i>. I tried to set a crop box in a document, but after closing the application supposed to change this box, I opened the document back in Acrobat Reader and could see no change in the pages.</div><div><br></div><div>Getting straight to the point, may I ask you <b>any</b> example (or just a code snippet) which is supposed to <i>actually</i> crop the page, so that the document <i>appears cropped</i> next time I open it in a reader?</div><div><br></div><div>Thank you for your attention &amp; support.</div>]]>
   </description>
   <pubDate>Mon, 20 Mar 2017 20:40:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13703.html#13703</guid>
  </item> 
  <item>
   <title><![CDATA[Cropping pages with QuickPDF Library : Adding a crop box to a page does...]]></title>
   <link>http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13701.html#13701</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 3445<br /><strong>Posted:</strong> 20 Mar 17 at 6:33PM<br /><br />Adding a crop box to a page does not change the underlying page, or delete any part of it from the file. As the documentation says, SetCropBox simply defines what part you want to be visible when you later display or print it. &nbsp;So there is no visible evidence that a crop box exists until you actually render the page to screen or file, or print it. &nbsp;That's how PDF cropping is done. &nbsp;Does that explanation help?]]>
   </description>
   <pubDate>Mon, 20 Mar 2017 18:33:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13701.html#13701</guid>
  </item> 
  <item>
   <title><![CDATA[Cropping pages with QuickPDF Library : I&#226;&#8364;&#8482;m quite sure I&#226;&#8364;&#8482;ve carefully...]]></title>
   <link>http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13698.html#13698</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2937">Richard Langin</a><br /><strong>Subject:</strong> 3445<br /><strong>Posted:</strong> 18 Mar 17 at 12:00PM<br /><br /><p ="Ms&#111;normal"><font color="#1d2129"><span style="font-size: 16px;">I’m quite sure I’ve carefully perused QuickPDF’s documentation, examples, references (both developer’s and functions’), yet I could find neither a simple explanation nor an example of a simple and straightforward operation: <b>cropping pages</b>. I’ve read the definition of methods like <b>SetCropBox</b> and <b>SetRenderCropType</b>, still I couldn’t understand <i>how actually cropping is performed</i>, where “actually cropping” trivially means, e.g. : “QuickPDF, take page three in the document loaded into the library and crop it with these top, left, height, width parameters I’m giving you”.</span></font></p><p ="Ms&#111;normal"><font color="#1d2129"><span style="font-size: 16px;">I assume this must be a <i>very</i> simple operation, hence I think / hope helping me will be easy and requiring a very short reply.</span></font></p><p ="Ms&#111;normal"><font color="#1d2129"><span style="font-size: 16px;">Thank you very much.</span></font></p><div><br></div>]]>
   </description>
   <pubDate>Sat, 18 Mar 2017 12:00:02 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/cropping-pages-with-quickpdf-library_topic3445_post13698.html#13698</guid>
  </item> 
 </channel>
</rss>