<?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 : Set margins of page</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 : Set margins of page]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 19:06:24 +0000</pubDate>
  <lastBuildDate>Wed, 13 Apr 2011 12:18:13 +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=1804</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[Set margins of page : Hi all again,I&amp;#039;m having some...]]></title>
   <link>http://www.quickpdf.org/forum/set-margins-of-page_topic1804_post7797.html#7797</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1583">rmgdc</a><br /><strong>Subject:</strong> 1804<br /><strong>Posted:</strong> 13 Apr 11 at 12:18PM<br /><br />Hi all again,<br><br>I'm having some problems using the SetPageBox function to define page margins. I know i can do the math but for "cleaner" code porposes i would like to use this kind of "area limiting" functions.<br><br>I'm trying to define the margins using the setPagebox but this is given me unexpected results.<br>Samples:<br><br><b>QuickPDFSetPageBox(This.InstanceID, <br>&nbsp;&nbsp;&nbsp; 1 /* Media box */, <br>&nbsp;&nbsp;&nbsp; This.MarginLeft, <br>&nbsp;&nbsp;&nbsp; This.MarginTop, <br>&nbsp;&nbsp;&nbsp; QuickPDFPageWidth(This.InstanceID) - (This.MarginLeft + This.MarginRight) , <br>&nbsp;&nbsp;&nbsp; QuickPDFPageHeight(This.InstanceID) - (This.MarginTop + This.MarginBottom) <br>)<br></b><br>Correct results. Trim the page size to a smaller area and redifines the base point to This.MarginLeft / This.MarginTop points.<br><br><br><b>QuickPDFSetPageBox(This.InstanceID, <br>&nbsp;&nbsp;&nbsp; 2 /* Crop box */, <br>&nbsp;&nbsp;&nbsp; This.MarginLeft, <br>&nbsp;&nbsp;&nbsp; This.MarginTop, <br>&nbsp;&nbsp;&nbsp; QuickPDFPageWidth(This.InstanceID) - (This.MarginLeft + This.MarginRight) , <br>&nbsp;&nbsp;&nbsp; QuickPDFPageHeight(This.InstanceID) - (This.MarginTop + This.MarginBottom) <br>)<br><br></b>Incorrect results I think. Page size is also cropped (not the visual area). And the base point is not changed. (Drawing on point 0 is cropped). If this is the correct behaviour I thing the page shouldn't be changed by the function.<br><br><b>QuickPDFSetPageBox(This.InstanceID, <br>&nbsp;&nbsp;&nbsp; 3 /* Bleed box */, <br>&nbsp;&nbsp;&nbsp; This.MarginLeft, <br>&nbsp;&nbsp;&nbsp; This.MarginTop, <br>&nbsp;&nbsp;&nbsp; QuickPDFPageWidth(This.InstanceID) - (This.MarginLeft + This.MarginRight) , <br>&nbsp;&nbsp;&nbsp; QuickPDFPageHeight(This.InstanceID) - (This.MarginTop + This.MarginBottom) <br>)<br><br></b>Nothing happens, maybe i'm not in a production environment (don't know how this is defined).. <br>Also with <b>ArtBox </b>and <b>TrimBox </b>nothing visually happens on my PDF. I'm using the 7.23 version.<b><br></b><b><br></b>If i'm missusing the function sorry but by "my logic"&nbsp; this would be the results I was expecting.<b><br><br></b>Thanks again for any valuable information,<br>Rui Cruz<br><b></b><br>]]>
   </description>
   <pubDate>Wed, 13 Apr 2011 12:18:13 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/set-margins-of-page_topic1804_post7797.html#7797</guid>
  </item> 
 </channel>
</rss>