<?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 : quickPDF render to Device Context</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 : quickPDF render to Device Context]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 11:48:19 +0000</pubDate>
  <lastBuildDate>Fri, 04 Sep 2009 17:59:39 +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=1197</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[quickPDF render to Device Context : Just in case somebody will need...]]></title>
   <link>http://www.quickpdf.org/forum/quickpdf-render-to-device-context_topic1197_post5551.html#5551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1152">munteanu24d</a><br /><strong>Subject:</strong> 1197<br /><strong>Posted:</strong> 04 Sep 09 at 5:59PM<br /><br />Just in case somebody will need the answer of my question ... here it is:<br /><br />Yes, quickPDF can be used to render even to GTK device content.<br /><br />&lt;code&gt;<br /><br />HWND m_hwnd = HWND(GDK_WINDOW_HWND(this-&gt;m_drawingArea.get_window()&gt;gobj() ));<br />HDC m_hdc = GetDC(m_hwnd);&nbsp;&nbsp;&nbsp;<br />QP.RenderPageToDC(100, 1,(int)(HDC) m_hdc);  <br /><br />&lt;/code&gt;]]>
   </description>
   <pubDate>Fri, 04 Sep 2009 17:59:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/quickpdf-render-to-device-context_topic1197_post5551.html#5551</guid>
  </item> 
  <item>
   <title><![CDATA[quickPDF render to Device Context : Thank you so much ! It really...]]></title>
   <link>http://www.quickpdf.org/forum/quickpdf-render-to-device-context_topic1197_post5540.html#5540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1152">munteanu24d</a><br /><strong>Subject:</strong> 1197<br /><strong>Posted:</strong> 03 Sep 09 at 4:56PM<br /><br />Thank you so much !<br />It really worked! <br /><br />I would like to move from MFC to GTK . Is it possible to render it in a GTK DC too?<br /><br />Best wishes,<br />D.M.<br /><br /><span style="font-size:10px"><br /><br />Edited by munteanu24d - 03 Sep 09 at 4:56PM</span>]]>
   </description>
   <pubDate>Thu, 03 Sep 2009 16:56:04 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/quickpdf-render-to-device-context_topic1197_post5540.html#5540</guid>
  </item> 
  <item>
   <title><![CDATA[quickPDF render to Device Context :  Hi D.M.Try something like this...]]></title>
   <link>http://www.quickpdf.org/forum/quickpdf-render-to-device-context_topic1197_post5539.html#5539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1003">deabrew</a><br /><strong>Subject:</strong> 1197<br /><strong>Posted:</strong> 03 Sep 09 at 4:02PM<br /><br /><div>Hi D.M.</div><div><br></div><div>Try something like this ...&nbsp;</div><div>________________</div><div><br></div><div>BOOL CPDFViewerDlg::OnInitDialog()</div><div>{</div><div><span Apple-style-span="Apple-style-span" style="font-family: arial; font-size: 16px; line-height: normal; ">&nbsp;&nbsp;<a href="http://msdn.microsoft.com/en-us/library/fwz35s59%28VS.80%29.aspx" target="_blank">CDialog::<em style="font-weight: bold; font-style: normal; ">OnInitDialog</em>&nbsp;(<em style="font-weight: bold; font-style: normal; ">MFC</em>)</a></span></div><div><br></div><div>// Draw updated page</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>m_iDAFileHandle = m_QP.DAOpenFile(m_strFile, CString(_T("")));</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>m_iPageRef = m_QP.DAFindPage(m_iDAFileHandle, 1);</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span></div><div>// Resize window based on new PDF</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>MoveWindow(0, 0, m_QP.DAGetPageWidth(m_iDAFileHandle, m_iPageRef),&nbsp;</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">		</span>m_QP.DAGetPageHeight(m_iDAFileHandle, m_iPageRef),TRUE);</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span></div><div>// Set the dialog title</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>CString strTitle;</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>::GetFileTitle(m_strFile, strTitle.GetBufferSetLength(1024), 1024);</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>strTitle.ReleaseBuffer();</div><div><span ="Apple-style-span" style="white-space: pre;"><br></span></div><div>// Recenter the dialog in the center of the active window</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>CenterWindow(GetDesktopWindow());</div><div><br></div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>return TRUE; &nbsp;// return TRUE unless you set the focus to a control</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>// EXCEPTION: OCX Property Pages should return FALSE</div><div>}</div><div><br></div><div>void CPDFViewerDlg::OnPaint()</div><div>{</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>CPaintDC dc(this);</div><div><span Apple-tab-span="Apple-tab-span" style="white-space:pre">	</span>m_QP.DARenderPageToDC(m_iDAFileHandle, m_iPageRef, 72,(int) (HDC) dc);</div><div>}</div><div><br></div><div>________________</div><span style="font-size:10px"><br /><br />Edited by deabrew - 03 Sep 09 at 4:07PM</span>]]>
   </description>
   <pubDate>Thu, 03 Sep 2009 16:02:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/quickpdf-render-to-device-context_topic1197_post5539.html#5539</guid>
  </item> 
  <item>
   <title><![CDATA[quickPDF render to Device Context : Hello everybody!  I want to use...]]></title>
   <link>http://www.quickpdf.org/forum/quickpdf-render-to-device-context_topic1197_post5538.html#5538</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1152">munteanu24d</a><br /><strong>Subject:</strong> 1197<br /><strong>Posted:</strong> 03 Sep 09 at 3:51PM<br /><br />Hello everybody!<br /><br />I want to use quickPDF as a viewer in my C++ application, and moreover I need to render to the pdf content to a DC. <br />I had a look to windows MFC classes, but I do not know exactly which type of DC is supported.<br /><br />Can somebody give me more details about how to render the PDF to a DC, or point me to some tutorials?<br /><br />Thanks in advance,|<br />D.M.<span style="font-size:10px"><br /><br />Edited by munteanu24d - 03 Sep 09 at 3:56PM</span>]]>
   </description>
   <pubDate>Thu, 03 Sep 2009 15:51:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/quickpdf-render-to-device-context_topic1197_post5538.html#5538</guid>
  </item> 
 </channel>
</rss>