<?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 : Blank bitmaps from Render&#068;ocumentToFile</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 : Blank bitmaps from Render&#068;ocumentToFile]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 19 May 2026 04:26:30 +0000</pubDate>
  <lastBuildDate>Wed, 04 Jan 2006 22:34:28 +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=237</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[Blank bitmaps from Render&#068;ocumentToFile : Hi Steve Thank you! When I was...]]></title>
   <link>http://www.quickpdf.org/forum/blank-bitmaps-from-renderdocumenttofile_topic237_post870.html#870</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=167">Pirmin</a><br /><strong>Subject:</strong> 237<br /><strong>Posted:</strong> 04 Jan 06 at 10:34PM<br /><br /><P>Hi Steve</P><P>Thank you! When I was reading the code in your post, it looked a kind of familiar to me.<BR>The equivalent function RenderPageToString&nbsp;gives good results!<BR>In my topic <strong>Convert string from RenderPageToString</strong> I have described how I used this function and what workarounds are necessary to make it work properly.<BR>When I saw, that RenderPageToString needed about 6 times more time then RenderDocumentToFile (as you noted also), I thought it would be better, using RenderDocumentToFile.&nbsp;After having to solve other problems and because sometimes I have to pause my work for a long time, I forgot about the rendering problems I have found myself.<BR>Now my conclusion is, to be slow is better than to be faulty. So I will definitely use the function RenderPageToString instead of RenderDocumentToFile.</P><P>Best regards,<BR>Pirmin</P><span style="font-size:10px"><br /><br />Edited by Pirmin</span>]]>
   </description>
   <pubDate>Wed, 04 Jan 2006 22:34:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/blank-bitmaps-from-renderdocumenttofile_topic237_post870.html#870</guid>
  </item> 
  <item>
   <title><![CDATA[Blank bitmaps from Render&#068;ocumentToFile : I tried the following in Delphi....]]></title>
   <link>http://www.quickpdf.org/forum/blank-bitmaps-from-renderdocumenttofile_topic237_post866.html#866</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=173">swb1</a><br /><strong>Subject:</strong> 237<br /><strong>Posted:</strong> 04 Jan 06 at 10:31AM<br /><br /><P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 8.5pt">I tried the following in Delphi. I got the same results that you did , Pirmin.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 8.5pt">procedure TForm1.Button3Click(Sender: TObject);<BR>var qp : TiSEDQuickPDF;<BR>begin<BR>&nbsp;if OpenDialog1.Execute then<BR>&nbsp;&nbsp;begin<BR>&nbsp;&nbsp;qp := TiSEDQuickPDF.Create;<BR>&nbsp;&nbsp;&nbsp;try<BR>&nbsp;&nbsp;&nbsp;qp.UnlockKey(MY_QDPF_KEY);<BR>&nbsp;&nbsp;&nbsp;qp.LoadFromFile(OpenDialog1.FileName );<BR>&nbsp;&nbsp;&nbsp;Screen.Cursor := crHourGlass;<BR>&nbsp;&nbsp;&nbsp;qp.RenderDocumentToFile( 72, 1, qp.PageCount, 0, 'ISedDoc.bmp' );<BR>&nbsp;&nbsp;&nbsp;finally<BR>&nbsp;&nbsp;&nbsp;Screen.Cursor := crDefault;<BR>&nbsp;&nbsp;&nbsp;qp.Free;<BR>&nbsp;&nbsp;&nbsp;end;<BR>&nbsp;&nbsp;end;<BR>end;<o:p></o:p></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><FONT size=2><FONT face=Arial>I then changed my code to this :<o:p></o:p></FONT></FONT></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><FONT size=2><FONT face=Arial>&nbsp;<o:p></o:p></FONT></FONT></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2>procedure TForm1.Button3Click(Sender: TObject);<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2>var qp : TiSEDQuickPDF;<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>i : integer;<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>stream : TMemoryStream;<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>bmp : TBitmap;<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2>begin<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>if OpenDialog1.Execute then<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>begin<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>stream := TMemoryStream.Create;<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>bmp := TBitmap.Create;<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>qp := TiSEDQuickPDF.Create;<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>try<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>qp.UnlockKey(MY_QDPF_KEY);<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>qp.LoadFromFile(OpenDialog1.FileName );<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Screen.Cursor := crHourGlass;<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>for i := 1 to qp.PageCount do<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>begin<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>stream.Clear;<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>qp.RenderPageToStream(72,i,0,stream );<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>stream.Position := 0 ;<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>bmp.LoadFromStream( stream );<o:p></o:p></FONT></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT color=blue><FONT face="Courier New, Courier, mono"><FONT size=2><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>bmp.SaveToFile(ExtractFilePath(OpenDialog1.FileName) + Format('ISedDoc%d.bmp',<SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT face="Courier New, Courier, mono"><FONT color=blue>&#091; i &#093;));<o:p></o:p></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT face="Courier New, Courier, mono"><FONT color=blue><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>end;<o:p></o:p></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT face="Courier New, Courier, mono"><FONT color=blue><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>finally<o:p></o:p></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT face="Courier New, Courier, mono"><FONT color=blue><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Screen.Cursor := crDefault;<o:p></o:p></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT face="Courier New, Courier, mono"><FONT color=blue><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>stream.Free;<o:p></o:p></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT face="Courier New, Courier, mono"><FONT color=blue><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>bmp.Free;<o:p></o:p></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT face="Courier New, Courier, mono"><FONT color=blue><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>qp.Free;<o:p></o:p></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT face="Courier New, Courier, mono"><FONT color=blue><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>end;<o:p></o:p></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT face="Courier New, Courier, mono"><FONT color=blue><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>end;<o:p></o:p></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"><FONT face="Courier New, Courier, mono"><FONT color=blue>end;<o:p></o:p></FONT></FONT></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><SPAN style="COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial">&nbsp;<o:p></o:p></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face=Arial><SPAN class=EmailStyle20>This took longer to run however the resulting bitmap files appeared to be correct. </SPAN><SPAN class=EmailStyle20><SPAN style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></SPAN></FONT></FONT></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face=Arial><SPAN class=EmailStyle20>&nbsp;</SPAN><SPAN class=EmailStyle20><SPAN style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></SPAN></FONT></FONT></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face=Arial><SPAN class=EmailStyle20>I don’’t know the equivalent structures for TMemoryStream and TBitmap in C# however this is the method I have used in the past (with Delphi) and it has work reliably for me.</SPAN><SPAN class=EmailStyle20><SPAN style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></SPAN></FONT></FONT></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face=Arial><SPAN class=EmailStyle20>&nbsp;</SPAN><SPAN class=EmailStyle20><SPAN style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></SPAN></FONT></FONT></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial><FONT color=#000000><SPAN class=EmailStyle20>Perhaps when I find myself <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>with some time on my hands I will step through the R</SPAN><SPAN style="COLOR: black">enderDocumentToFile function and see if I can tell why it is yielding null Bitmaps.</SPAN></FONT><SPAN style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial><SPAN style="COLOR: black">&nbsp;</SPAN><SPAN style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face=Arial><SPAN class=EmailStyle20>Steve</SPAN><SPAN class=EmailStyle20><SPAN style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></SPAN></FONT></FONT></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN class=EmailStyle20><FONT face=Arial color=#000000>&nbsp;</FONT></SPAN><SPAN class=EmailStyle20><SPAN style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><EM><EM></FONT></FONT></FONT></SPAN></SPAN></P></EM></EM><span style="font-size:10px"><br /><br />Edited by swb1</span>]]>
   </description>
   <pubDate>Wed, 04 Jan 2006 10:31:34 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/blank-bitmaps-from-renderdocumenttofile_topic237_post866.html#866</guid>
  </item> 
  <item>
   <title><![CDATA[Blank bitmaps from Render&#068;ocumentToFile : Hello, The following C# program...]]></title>
   <link>http://www.quickpdf.org/forum/blank-bitmaps-from-renderdocumenttofile_topic237_post858.html#858</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=167">Pirmin</a><br /><strong>Subject:</strong> 237<br /><strong>Posted:</strong> 04 Jan 06 at 3:12AM<br /><br /><P>Hello,</P><P>The following C# program works good for some PDF documents, but for the iSED manual it doesn't work at all.<BR>Every resulting bitmap page I check appears to be blank. When I view such a page with a HEX-Editor, I see a header followed bei 0xff for the rest of the file. With some different PDF files I tried the program, some pages have been rendered correctly, while some pages have appeared blank also.</P><P><FONT face="Courier New, Courier, mono" color=blue size=2>using System;<BR>using System.IO;<BR>using System.Text;<BR>using System.Drawing;<BR>using iSED = SEDTech.iSED;<BR>class Test<BR>{<BR>&nbsp;&nbsp;&nbsp; public static void Main() <BR>&nbsp;&nbsp;&nbsp; {<BR></FONT><FONT face="Courier New, Courier, mono" color=blue size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iSED.QuickPDF qp = new iSED.QuickPDF();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.UnlockKey( "your key" );</FONT></P><P><FONT face="Courier New, Courier, mono" color=blue size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string file = "iSEDQuickPDF 5.11 Reference Guide.pdf";<BR></FONT></P><P><FONT face="Courier New, Courier, mono" color=blue size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.Write( "Loading PDF file " + file );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int result = qp.LoadFromFile( file );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int pages = qp.PageCount();<BR></FONT></P><P><FONT face="Courier New, Courier, mono" color=blue size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( result ==&nbsp;1 )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine( "Rendering " + file + " (" + pages.ToString() + " pages)" );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.RenderDocumentToFile(72, 1, pages, 0, "Page_%p_of_file.bmp" );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></P><P><FONT face="Courier New, Courier, mono" color=blue size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine( "Finished!" );<BR>&nbsp;&nbsp;&nbsp; }<BR>}</FONT></P><P>Could please somebody try this program,&nbsp;ported to Delpi, ActiveX or something else?</P><P>Thanks in advance.</P><P>Best regards,<BR>Pirmin</P><span style="font-size:10px"><br /><br />Edited by Pirmin</span>]]>
   </description>
   <pubDate>Wed, 04 Jan 2006 03:12:22 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/blank-bitmaps-from-renderdocumenttofile_topic237_post858.html#858</guid>
  </item> 
 </channel>
</rss>