<?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 : Bates Stamping Question</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 : Bates Stamping Question]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 08 Jul 2026 08:07:42 +0000</pubDate>
  <lastBuildDate>Fri, 01 Nov 2019 15:22:31 +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=3757</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[Bates Stamping Question : Hi Ken,additionally to NormalizePage...]]></title>
   <link>http://www.quickpdf.org/forum/bates-stamping-question_topic3757_post14999.html#14999</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3757<br /><strong>Posted:</strong> 01 Nov 19 at 3:22PM<br /><br /><div>Hi Ken,</div><div><br></div><div>additionally to NormalizePage you can use CombineContentStream in cases if you don't see your numbers.</div><div>What i couldn't find is the SetMeasurementUnits (this could fix your issue?):<br></div><div>https://www.debenu.com/docs/pdf_library_reference/SetMeasurementUnits.php</div><div><br></div><div>Cheers and welcome here,</div><div>Ingo<br></div>]]>
   </description>
   <pubDate>Fri, 01 Nov 2019 15:22:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/bates-stamping-question_topic3757_post14999.html#14999</guid>
  </item> 
  <item>
   <title><![CDATA[Bates Stamping Question : Hi,Does anyone know if there is...]]></title>
   <link>http://www.quickpdf.org/forum/bates-stamping-question_topic3757_post14998.html#14998</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3159">Ken_SF</a><br /><strong>Subject:</strong> 3757<br /><strong>Posted:</strong> 01 Nov 19 at 3:08PM<br /><br />Hi,<div><br></div><div>Does anyone know if there is an 'official' way to bates stamp (serialize individual pdf pages with a numeric (and possibly a prefix or suffix))?<br><div><br></div><div>I am trying to bates stamp some already-existing PDF documents with multiple pages.</div><div><br></div><div>I was able to do this using the DrawText function in Quick PDF Library (function written for powerbasic is shown below).</div><div><br></div><div>The problem I am having is that my program doesn't erase bates stamping on pages created by third party programs.&nbsp; My experience is, from using a few third party bates stamping programs, is that stamping with one program erases the bates stamp added with another, so they all seem to be adding serialized page numbers using the same technique and that appears to be something different than using drawtext.</div><div><br></div><div>Here is the function I am using, in case someone needs to add something that looks like bates stamping.&nbsp; I did have to fiddle a bit with the location (note where I had to add 150 to the page height) to get the text to draw in the lower right hand corner of the page. It would be good to understand why that extra + 150 was needed.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Ken</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>FUNCTION AddPageNumberPDF() AS LONG</div><div>'http://www.quickpdf.org/forum/add-page-numbers-to-existing-pdf_topic2096.htm</div><div>LOCAL myid AS LONG, i AS LONG</div><div>LOCAL ph,pw AS DOUBLE</div><div><br></div><div>dplLoadFromFile( gLibInstance1&amp;,"sample1_bates.pdf","")</div><div>myid = dplAddStandardFont( glibinstance1&amp;,4)</div><div><br></div><div>FOR i = 1 TO dplpagecount(gLibInstance1&amp;)</div><div><br></div><div>'https://www.debenu.com/docs/pdf_library_reference/SelectedPage.php</div><div>&nbsp; dplSelectPage( gLibInstance1&amp;,i)</div><div><br></div><div>'https://www.debenu.com/docs/pdf_library_reference/NormalizePage.php</div><div>&nbsp; dplNormalizePage( gLibInstance1&amp;,0)</div><div><br></div><div>'https://www.debenu.com/docs/pdf_library_reference/SetOrigin.php</div><div>&nbsp; dplSetOrigin(gLibInstance1&amp;,1)&nbsp; 'Specifies which page corner to use for the origin: 0 = Bottom left (default), 1 = Top left, 2 = Top right, 3 = Bottom right, Anything else = Bottom left</div><div><br></div><div>'https://www.debenu.com/docs/pdf_library_reference/Fonts.php</div><div>'https://www.debenu.com/docs/pdf_library_reference/Text.php</div><div><br></div><div>'DPLFontType(int InstanceID)&nbsp; 'https://www.debenu.com/docs/pdf_library_reference/FontType.php</div><div><br></div><div>'selectfont: Select one of the fonts which have been added to the selected document. The FontID must be a valid ID as returned by one of the Add*Font functions or returned by GetFontID .</div><div><br></div><div>&nbsp;dplSelectFont(gLibInstance1&amp;,myid)</div><div><br></div><div>'https://www.debenu.com/docs/pdf_library_reference/SetTextSize.php</div><div>&nbsp;dplSetTextSize(gLibInstance1&amp;,12) 'Set the size of the text to use for any subsequently drawn text. The text size is always measured in points, even if the measurement units have been changed with SetMeasurementUnits.</div><div>&nbsp;dplSetTextColor(gLibInstance1&amp;,1,0,0)&nbsp; &nbsp;'sets text color to red.&nbsp; &nbsp;NOTE : Each color component has a range of 0.0 to 1.0&nbsp; &nbsp;and not 0 to 255 like many other libraries.</div><div><br></div><div>&nbsp;ph = dplPageWidth(gLibInstance1&amp;)</div><div>&nbsp;pw = dplPageHeight(gLibInstance1&amp;)</div><div><br></div><div>'for some reason I had to use 70% of pw to get correct width and + 150 to get correct vertical location on bottom of page (else was too high or too far to right to be visible)</div><div>&nbsp; dplDrawText( gLibInstance1&amp;,pw *.70 ,ph + 150,"pg1 " &amp; FORMAT$(i)) 'pw - 30, ph - 20, "Page" +&nbsp; format$(i))</div><div>NEXT i</div><div><br></div><div>dplSaveToFile( gLibInstance1&amp;,"newfile.pdf")</div><div>END FUNCTION</div><div><br></div></div><div></pre></td></tr></table></div><div><br></div><div><div><br></div></div></div>]]>
   </description>
   <pubDate>Fri, 01 Nov 2019 15:08:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/bates-stamping-question_topic3757_post14998.html#14998</guid>
  </item> 
 </channel>
</rss>