<?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 : change color</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 : change color]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 15:16:23 +0000</pubDate>
  <lastBuildDate>Wed, 14 May 2014 03:27: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=2864</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[change color : Juergen,It is not easily possible...]]></title>
   <link>http://www.quickpdf.org/forum/change-color_topic2864_post11706.html#11706</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2864<br /><strong>Posted:</strong> 14 May 14 at 3:27AM<br /><br /><div>Juergen,</div><div><br></div>It is not easily possible as the capture page contains its own SetFillColor and SetTextColor commands.<div><br></div><div>You would need to manually parse the content stream for the page and change all the color commands from black to red. &nbsp; &nbsp;You would need to use GetContentStreamToString and SetContentStreamFromString to extract the drawing comments and then you would need to change any '0 0 0 rg' strings to '1 0 0 rg' to change things to red. &nbsp;There are other commands that would need changing. &nbsp;This is assuming that the PDF is in RGB format and not CMYK and that it is using true black and so on... &nbsp;You might get lucky. &nbsp;</div><div><br></div><div><div>&nbsp; QP.ReplaceTag(<span style="line-height: 1.4;">&nbsp;</span><span style="line-height: 1.4;">'0 0 0 rg',&nbsp;</span><span style="line-height: 1.4;">&nbsp;</span><span style="line-height: 1.4;">'1 0 0 rg'); &nbsp;// might work. &nbsp;No guarantees.</span></div></div><div><span style="line-height: 1.4;"><br></span></div><div><div>&nbsp; QP.ReplaceTag(<span style="line-height: 1.4;">&nbsp;</span><span style="line-height: 1.4;">'0 0 0 RG',&nbsp;</span><span style="line-height: 1.4;">&nbsp;</span><span style="line-height: 1.4;">'1 0 0 RG'); &nbsp;// might work. &nbsp;No guarantees.</span></div></div><div><span style="line-height: 1.4;"><br></span></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Wed, 14 May 2014 03:27:13 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/change-color_topic2864_post11706.html#11706</guid>
  </item> 
  <item>
   <title><![CDATA[change color : Hello Andrew,yep, thats the job...]]></title>
   <link>http://www.quickpdf.org/forum/change-color_topic2864_post11697.html#11697</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2549">juergen</a><br /><strong>Subject:</strong> 2864<br /><strong>Posted:</strong> 12 May 14 at 8:35AM<br /><br />Hello Andrew,<div>&nbsp;</div><div>yep, thats the job I have to do. I get a failure notice as pdf file and have to copy it, as a&nbsp;new frame,&nbsp;into another pdf, but it must&nbsp;be there in red color. Is it not possible to change a seperate content into a different color, like "print as black&amp;white" ?</div><div>&nbsp;</div><div>regards</div><div>&nbsp;</div><div>Juergen</div>]]>
   </description>
   <pubDate>Mon, 12 May 2014 08:35:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/change-color_topic2864_post11697.html#11697</guid>
  </item> 
  <item>
   <title><![CDATA[change color : Juergen,It sounds like you want...]]></title>
   <link>http://www.quickpdf.org/forum/change-color_topic2864_post11696.html#11696</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2864<br /><strong>Posted:</strong> 12 May 14 at 3:35AM<br /><br />Juergen,<div><br></div><div>It sounds like you want the existing text inside the CapturePage to be turned to red. &nbsp;This is not possible. &nbsp;You can only add RED text to an existing PDF.</div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Mon, 12 May 2014 03:35:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/change-color_topic2864_post11696.html#11696</guid>
  </item> 
  <item>
   <title><![CDATA[change color : Hello Andrew,thx for your answer...]]></title>
   <link>http://www.quickpdf.org/forum/change-color_topic2864_post11682.html#11682</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2549">juergen</a><br /><strong>Subject:</strong> 2864<br /><strong>Posted:</strong> 07 May 14 at 10:50AM<br /><br />Hello Andrew,<div>&nbsp;</div><div>thx for your answer and sorry for my delayed reply (I was ill).</div><div>Using your code I get a red new text - is ok, but my text is still black. I tried it with setfillcolor &amp; settextcolor and got the same results. What can I do?</div><div>&nbsp;</div><div>Juergen</div>]]>
   </description>
   <pubDate>Wed, 07 May 2014 10:50:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/change-color_topic2864_post11682.html#11682</guid>
  </item> 
  <item>
   <title><![CDATA[change color : Juergen,CapturePage / DrawCapture...]]></title>
   <link>http://www.quickpdf.org/forum/change-color_topic2864_post11614.html#11614</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2864<br /><strong>Posted:</strong> 11 Apr 14 at 4:10PM<br /><br />Juergen,<div><br></div><div>CapturePage / DrawCapture page will copy the page as is and redraw it as is at a different scale or size.</div><div><br></div><div>Setting TextColor / FillColor will not change the existing text in the PDF. &nbsp; You need to add extra content using DrawText / SetTextColor / SetFillColor.</div><div><br></div><div>Can you try the following code on your PDF. &nbsp;</div><div><br></div><div>&nbsp; QP.LoadFromFile("before.pdf");</div><div>&nbsp; QP.SelectPage(1);</div><div>&nbsp; QP.NormalizePage(0);</div><div>&nbsp; QP.SetTextColor(1, 0, 0);</div><div>&nbsp; QP.AddStandardFont(4);</div><div>&nbsp; QP.SetTextSize(30):</div><div>&nbsp; QP.SetOrigin(1);</div><div>&nbsp; QP.DrawTetxt(72, 72, "Hello World");</div><div>&nbsp; QP.SaveToFile("After.pdf");</div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Fri, 11 Apr 2014 16:10:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/change-color_topic2864_post11614.html#11614</guid>
  </item> 
  <item>
   <title><![CDATA[change color : Hello,i try to open a existing...]]></title>
   <link>http://www.quickpdf.org/forum/change-color_topic2864_post11610.html#11610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2549">juergen</a><br /><strong>Subject:</strong> 2864<br /><strong>Posted:</strong> 10 Apr 14 at 10:04AM<br /><br />Hello,<div>&nbsp;</div><div>i try to open a existing pdf and write it&nbsp;into a new pdf (DrawCapturedPage) but the textcolor &amp; fillcolor</div><div>must be set to RED (because its a failure notice). SetTextColor &amp; SetFillClor makes no changes.</div><div>&nbsp;</div><div>Does anybody know, what I'm doing wrong?</div><div>&nbsp;</div><div>Regards</div><div>&nbsp;</div><div>Jurgen</div>]]>
   </description>
   <pubDate>Thu, 10 Apr 2014 10:04:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/change-color_topic2864_post11610.html#11610</guid>
  </item> 
 </channel>
</rss>