<?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 : Adding TextBox</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 : Adding TextBox]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 03:52:20 +0000</pubDate>
  <lastBuildDate>Tue, 06 Dec 2005 16:24:08 +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=197</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[Adding TextBox : I am working in vc++6 and am having...]]></title>
   <link>http://www.quickpdf.org/forum/adding-textbox_topic197_post625.html#625</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=177">Stephen0838</a><br /><strong>Subject:</strong> 197<br /><strong>Posted:</strong> 06 Dec 05 at 4:24PM<br /><br /><P>I am working in vc++6 and am having an issue. </P><P>What I am dooing is a batch process. The process is.<BR>Open each PDF<BR>Increse the size of the page by adding .5 inch to the top<BR>Draw a black Square .5 x .5 Inches.<BR>Write the document number in the box in White.<BR>Save The document<BR>Merge all Documents with MergeFast<BR>Open the resulting Document and add a bookmark for each document added to the final PDF.</P><P>The issue affects only some PDF documents the .5 inch header is added but it is gray instead of white (Prints white) and the box and text is not added.</P><P>So far I have seen this mainly with PDF's created with Pixiel Translations.</P><P>Code of the method that is giving issues is below. </P><P>&nbsp;{<BR>CSECiSEDDLL ISED; //Custom Wrapper on methods I use from DLL<BR>&nbsp;DecryptPDF(filename);<BR>&nbsp;long&nbsp; rv;<BR>&nbsp;long doclen; //length of document<BR>&nbsp;long doc1_id; //document ID<BR>&nbsp;double pageh; //pageHeight<BR>&nbsp;double pageW; //pageWidth<BR>&nbsp;long i; <BR>&nbsp;bool rotated;</P><P>&nbsp;<BR>&nbsp;rv = ISED.LoadFromFile(const_cast &lt;char *&gt; (filename.c_str()));<BR>&nbsp;if (rv == 1)<BR>&nbsp;{<BR>&nbsp;&nbsp;doc1_id = ISED.SelectedDocument();<BR>&nbsp;&nbsp;ISED.SetMeasurementUnits(2);<BR>&nbsp;&nbsp;ISED.SetOrigin(origin); //2<BR>&nbsp;&nbsp;doclen = ISED.PageCount();<BR>&nbsp;&nbsp;for(i=1; i &lt;= doclen; i++)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;//select page<BR>&nbsp;&nbsp;&nbsp;ISED.SelectPage(i);<BR>&nbsp;&nbsp;&nbsp;//increase page size<BR>&nbsp;&nbsp;&nbsp;pageh = ISED.PageHeight();<BR>&nbsp;&nbsp;&nbsp;pageW = ISED.PageWidth();<BR>&nbsp;&nbsp;&nbsp;rotated = false;<BR>&nbsp;&nbsp;&nbsp;if(autorotate)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;if(pageW &gt; pageh)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ISED.RotatePage(270);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageh = ISED.PageHeight();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageW = ISED.PageWidth();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rotated = true;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;pageh += add_to_height; //.6<BR>&nbsp;&nbsp;&nbsp;pageW += add_to_Width; //0<BR>&nbsp;&nbsp;&nbsp;ISED.SetPageDimensions(pageW, pageh);<BR>&nbsp;&nbsp;&nbsp;//addnumber<BR>&nbsp;&nbsp;&nbsp;if(boxopt.drawbox)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;ISED.SetFillColor(boxopt.BoxRed, boxopt.BoxGreen, boxopt.BoxBlue);<BR>&nbsp;&nbsp;&nbsp;&nbsp;ISED.SetLineColor(boxopt.BoxRed, boxopt.BoxGreen, boxopt.BoxBlue);<BR>&nbsp;&nbsp;&nbsp;&nbsp;ISED.DrawBox(boxopt.Left, boxopt.Top, boxopt.Width, boxopt.Height, boxopt.DrawOptions);<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;ISED.SetTextAlign(Textopt.TextAlign);<BR>&nbsp;&nbsp;&nbsp;ISED.SetTextSize(Textopt.TextSize);<BR>&nbsp;&nbsp;&nbsp;ISED.SetTextColor(Textopt.TextRed, Textopt.TextGreen, Textopt.TextBlue);<BR>&nbsp;&nbsp;&nbsp;ISED.DrawText(Textopt.XPos, Textopt.YPos, const_cast &lt;char *&gt; (text.c_str()));<BR>&nbsp;&nbsp;&nbsp;if (rotated)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;ISED.RotatePage(90);<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;ISED.SaveToFile (const_cast &lt;char *&gt; (filename.c_str()));<BR>&nbsp;}<BR>}</P>]]>
   </description>
   <pubDate>Tue, 06 Dec 2005 16:24:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/adding-textbox_topic197_post625.html#625</guid>
  </item> 
 </channel>
</rss>