<?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 : crop marks</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 : crop marks]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 04 Jun 2026 20:57:47 +0000</pubDate>
  <lastBuildDate>Tue, 23 Feb 2016 12:31:54 +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=3220</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[crop marks : Add: &amp;#034;this.Library.&amp;#034;...]]></title>
   <link>http://www.quickpdf.org/forum/crop-marks_topic3220_post13020.html#13020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2835">martin.weigl</a><br /><strong>Subject:</strong> 3220<br /><strong>Posted:</strong> 23 Feb 16 at 12:31PM<br /><br /><p>Add: "this.Library." is the reference you normally find as "QP.". Guess you might already have figured that out <img src="http://www.quickpdf.org/forum/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /></p>]]>
   </description>
   <pubDate>Tue, 23 Feb 2016 12:31:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/crop-marks_topic3220_post13020.html#13020</guid>
  </item> 
  <item>
   <title><![CDATA[crop marks :  Don&amp;#039;t know if it&amp;#039;s...]]></title>
   <link>http://www.quickpdf.org/forum/crop-marks_topic3220_post13019.html#13019</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2835">martin.weigl</a><br /><strong>Subject:</strong> 3220<br /><strong>Posted:</strong> 23 Feb 16 at 12:26PM<br /><br /><font color="#000000"></font><div><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">Don't know if it's still interesting for you, but I had the same problem in here - adding a trimbox and cropmarks after the content has been drawn before.</font></div><div><font color="#000000"></font><font face="Arial, Helvetica, sans-serif" size="2">&nbsp;</font></div><div><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">My solution (C#):</font></div><div><div><em><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">Let' suppose, the variable trimBoxInches holds the width of the trim box</font></em></div><div><font color="#000000"></font><font face="Arial, Helvetica, sans-serif" size="2">&nbsp;</font></div></div><div><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">iterate through the pages, add a new page for every page and capture the (first) page (which removes it, so the next page is always the first):</font></div><div><font color="#000000"><font face="Courier New, Courier, mono"></font></font></div><div><p><font color="#000000"><font color="#0000ff"><font size="1"><font face="C&#111;nsolas"><font face="C&#111;nsolas"><font face="C&#111;nsolas">IDictionary</font></font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas">&lt;</font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas"><font face="C&#111;nsolas">int</font></font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas">, </font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas"><font face="C&#111;nsolas">int</font></font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas">&gt; pageIds = </font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas"><font face="C&#111;nsolas">new</font></font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas"> </font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas"><font face="C&#111;nsolas">Dictionary</font></font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas">&lt;</font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas"><font face="C&#111;nsolas">int</font></font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas">, </font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas"><font face="C&#111;nsolas">int</font></font></font><font face="C&#111;nsolas"><font face="C&#111;nsolas">&gt;();</font></font></font></font></font></p></div><div><font color="#000000"><font face="C&#111;nsolas"><font face="C&#111;nsolas"><font color="#0000ff" face="C&#111;nsolas" size="1">int nrOfPages = this.Library.PageCount();</font></font></font></font></div><div><font color="#000000"><font face="C&#111;nsolas"><font face="C&#111;nsolas"><font color="#0000ff" face="C&#111;nsolas" size="1">for (int page = 1; page &lt;= nrOfPages; page++)<br>{ <br>&nbsp; this.Library.NewPage();<br>&nbsp; this.Library.SelectPage(1);<br>&nbsp; int pageId = this.Library.CapturePage(1);<br>&nbsp; pageIds.Add(page, pageId);</font></font></font></font></div><div><font color="#000000"><font face="C&#111;nsolas" size="2"><font face="C&#111;nsolas" size="2"><font color="#000000" face="C&#111;nsolas" size="2"><font color="#0000ff"><font size="1">}</font><br></font></font></font></font></font></div><div><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">Afterwards you can calculate the&nbsp;new&nbsp;dimensions of your pages and&nbsp;resize them:</font></div><font face="C&#111;nsolas" size="2"><div><font face="C&#111;nsolas" size="2"><font face="C&#111;nsolas" size="2"><font face="C&#111;nsolas" size="2"><div><font color="#000000"><font face="Courier New, Courier, mono"></font></font></div><div><font color="#000000"><font color="#0000ff" face="Courier New, Courier, mono" size="1">double pageWidth = this.Library.PageWidth();<br>double pageHeight = this.Library.PageHeight();<br>double newPageWidth = pageWidth + 2 * trimBoxInches;<br>double newPageHeight = pageHeight + 2 * trimBoxInches;</font></font></div><div><font color="#000000"><font color="#0000ff"></font><font face="Courier New, Courier, mono" size="1">&nbsp;</font></font></div></font></font></font></div><div><font color="#0000ff"><font face="Courier New, Courier, mono" size="1">this.Library.SetPageDimensions(newPageWidth, newPageHeight);</font></font></div></font><div>&nbsp;</div><div><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">After this the captured pages can be redrawn again:</font></div><div><font color="#000000"><font face="Courier New, Courier, mono"></font></font></div><div><font color="#000000"><font color="#0000ff" face="Courier New, Courier, mono" size="1">foreach (KeyValuePair&lt;int, int&gt; entry in pageIds)<br>{<br>&nbsp; int pageNr = entry.Key;<br>&nbsp; int pageId = entry.Value;</font></font></div><div><font color="#000000"><font color="#0000ff" face="Courier New, Courier, mono" size="1">&nbsp; this.Library.SelectPage(pageNr);<br>&nbsp; this.Library.DrawCapturedPage(pageId, trimBoxInches, trimBoxInches + pageHeight, pageWidth, pageHeight);<br></font></font></div><div><font size="1"></font>&nbsp;</div><div><font color="#000000" face="C&#111;nsolas"><font size="1"><font color="#0000ff">&nbsp; double trimBoxLength = trimBoxInches; </font><font color="#009900">// eventually you want to make the lines a little bit shorter here</font></font></font></div><div><font color="#000000" face="C&#111;nsolas"><font color="#0000ff"><font size="1"><font color="#009900">&nbsp; // prepare drawing</font><br>&nbsp; this.Library.SetLineColorCMYK(0, 0, 0, 1);<br>&nbsp; this.Library.SetLineWidth(...); <font color="#009900">// set the width of your cropmarks here</font></font></font></font></div><div><font color="#000000" face="C&#111;nsolas"><font color="#0000ff"><font size="1"><font color="#009900">&nbsp; // bottom left corner</font><br>&nbsp; this.Library.DrawLine(0, trimBoxInches, trimBoxLength, trimBoxInches);<br>&nbsp; this.Library.DrawLine(trimBoxInches, 0, trimBoxInches, trimBoxLength);</font></font></font></div><div><font color="#000000" face="C&#111;nsolas"><font color="#0000ff"><font size="1"><font color="#009900">&nbsp; // bottom right corner</font><br>&nbsp; this.Library.DrawLine(newPageWidth, trimBoxInches, newPageWidth - trimBoxLength, trimBoxInches);<br>&nbsp; this.Library.DrawLine(newPageWidth - trimBoxInches, 0, newPageWidth - trimBoxInches, trimBoxLength);</font></font></font></div><div><font color="#000000" face="C&#111;nsolas"><font color="#0000ff"><font size="1"><font color="#009900">&nbsp; // top right corner</font><br>&nbsp; this.Library.DrawLine(newPageWidth, newPageHeight - trimBoxInches, newPageWidth - trimBoxLength, newPageHeight - trimBoxInches);<br>&nbsp; this.Library.DrawLine(newPageWidth - trimBoxInches, newPageHeight, newPageWidth - trimBoxInches, newPageHeight - trimBoxLength);</font></font></font></div><div><font color="#000000" face="C&#111;nsolas"><font color="#0000ff"><font size="1"><font color="#009900">&nbsp; // top left corner</font><br>&nbsp; this.Library.DrawLine(0, newPageHeight - trimBoxInches, trimBoxLength, newPageHeight - trimBoxInches);<br><font color="#0000ff">&nbsp; this.Library.DrawLine(trimBoxInches, newPageHeight, trimBoxInches, newPageHeight - trimBoxLength);</font></font></font></font></div><div><font face="C&#111;nsolas"><font color="#0000ff" size="1">}</font></font></div><div><font color="#000000" face="C&#111;nsolas" size="2"></font>&nbsp;</div><div><font color="#000000" face="C&#111;nsolas" size="2"></font>&nbsp;</div><div><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">And, of course, you want to add a trimbox for the print office:</font></div><div><font color="#000000" face="C&#111;nsolas" size="2"><font face="Courier New, Courier, mono"></font></font></div><font color="#000000" face="C&#111;nsolas" size="2"><font face="C&#111;nsolas" size="2"><div><font color="#0000ff"><font face="Courier New, Courier, mono" size="1">this.Library.SetPageBox(4, trimBoxInches, trimBoxInches, pageWidth, pageHeight);</font></font></div></font></font><div><p><font color="#000000" size="2"></font></p></div><font face="C&#111;nsolas" size="2"><font color="#000000" face="C&#111;nsolas" size="2"><div><font face="Arial, Helvetica, sans-serif">Hth,</font></div><div><font face="Arial, Helvetica, sans-serif">Martin</font></div></font></font><font color="#000000"></font><span style="font-size:10px"><br /><br />Edited by martin.weigl - 23 Feb 16 at 12:35PM</span>]]>
   </description>
   <pubDate>Tue, 23 Feb 2016 12:26:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/crop-marks_topic3220_post13019.html#13019</guid>
  </item> 
  <item>
   <title><![CDATA[crop marks : New Debenu user here.I&amp;#039;ve...]]></title>
   <link>http://www.quickpdf.org/forum/crop-marks_topic3220_post12839.html#12839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2787">pdfer</a><br /><strong>Subject:</strong> 3220<br /><strong>Posted:</strong> 30 Nov 15 at 10:31PM<br /><br />New Debenu user here.<br><br>I've been publishing books using PDF files for some years now, but the latest twist my publisher is throwing at me (after personnel changes there) is that they want me to add crop marks to my master files. In the past, I've presented the master files without margins or crop marks, and they did whatever they needed. Now, it seems, with the personnel changes, they've forgotten how... and I never knew how...because I didn't need to know.<br><br>So lets say I generate a page of data 180mm × 110mm in image size. I want to add a margin of 9mm fore edge and 11mm gutter, and 9mm top and bottom. I further want to add enough space for crop marks... is there a standard somewhere for the distance from the trim edge where the crop mark should start, how long it should be, what line weight, etc.?<br><br>And so where would I start to do this as I create my PDF file?&nbsp; Some pages will be full-page graphics (no bleed required, though), others text, if the handling should be different.<br>]]>
   </description>
   <pubDate>Mon, 30 Nov 2015 22:31:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/crop-marks_topic3220_post12839.html#12839</guid>
  </item> 
 </channel>
</rss>