<?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 : Using QPL8.xx with RealBasic, RealStudio</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 : Sample Code : Using QPL8.xx with RealBasic, RealStudio]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 11 May 2026 22:15:35 +0000</pubDate>
  <lastBuildDate>Mon, 02 Jul 2012 09:15:12 +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=2315</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[Using QPL8.xx with RealBasic, RealStudio : Here is Fred&amp;#039;s working code...]]></title>
   <link>http://www.quickpdf.org/forum/using-qpl8xx-with-realbasic-realstudio_topic2315_post9854.html#9854</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2315<br /><strong>Posted:</strong> 02 Jul 12 at 9:15AM<br /><br />Here is Fred's working code for AddImageFromString<div><br></div><div><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">When using the FromString functions with the DLL require the use of the following functions - QPDFCreateBuffer,&nbsp;</span>&nbsp;<span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">QPDFAddToBuffer&nbsp;</span><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">QPDFReleaseBuffer</span>&nbsp;</div><div><br></div><div>In C# and VB.NET this code is already included in the .CS and .VB include files. &nbsp;With other environments like RealBasic and other libraries you need to use the Buffer functions.</div><div><br></div><div>// ----------------------------------------------------------------------</div><div><div><br></div><div><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; Soft Declare Function QuickPDFCreateBuffer Lib ThePDFlib ( InstanceID&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">as integer , BufferLength as integer ) as integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; Soft Declare Function QuickPDFAddToBuffer Lib ThePDFlib ( InstanceID&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">as integer , BufferId as integer , Source as Ptr , SourceLength as&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">integer ) as integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; Soft Declare Function QuickPDFAddImageFromString Lib ThePDFlib (&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">InstanceID as integer,&nbsp; &nbsp; TheSource as Integer&nbsp; , Options as integer )&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">as integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; Soft Declare Function QuickPDFReleaseBuffer Lib ThePDFlib (&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">InstanceID as integer , BufferId as integer ) as integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">Dim BufferID , Test , ImageID as integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">BufferID = QPDFCreateBuffer ( InstanceID , Mb.Size )</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">if BufferID &lt;&gt; 0 then // OK</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; Test = QPDFAddToBuffer ( InstanceID , BufferID , Mb, Mb.size )</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; ImageID = QPdfAddImageFromString_ ( InstanceID,&nbsp; BufferID , Options&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">) //0 )</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; Test = QPDFReleaseBuffer ( InstanceID,&nbsp; BufferID )</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; ' === Test should be egal to 1 ? -&gt; always 0</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">else</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; ImageID = 0</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">end</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">return ImageID</span></div></div>]]>
   </description>
   <pubDate>Mon, 02 Jul 2012 09:15:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-qpl8xx-with-realbasic-realstudio_topic2315_post9854.html#9854</guid>
  </item> 
  <item>
   <title><![CDATA[Using QPL8.xx with RealBasic, RealStudio : In the previous example, you can...]]></title>
   <link>http://www.quickpdf.org/forum/using-qpl8xx-with-realbasic-realstudio_topic2315_post9835.html#9835</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1987">Fred_RealStudio</a><br /><strong>Subject:</strong> 2315<br /><strong>Posted:</strong> 26 Jun 12 at 9:07PM<br /><br /><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">In the previous example, you can see I can't get QuickPDFAddImageFromString working….</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">Any idea would be greatly appreciated.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">Thanks,&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">Fred</p>]]>
   </description>
   <pubDate>Tue, 26 Jun 2012 21:07:32 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-qpl8xx-with-realbasic-realstudio_topic2315_post9835.html#9835</guid>
  </item> 
  <item>
   <title><![CDATA[Using QPL8.xx with RealBasic, RealStudio :  RealBasic have several strings...]]></title>
   <link>http://www.quickpdf.org/forum/using-qpl8xx-with-realbasic-realstudio_topic2315_post9834.html#9834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1987">Fred_RealStudio</a><br /><strong>Subject:</strong> 2315<br /><strong>Posted:</strong> 26 Jun 12 at 9:06PM<br /><br /><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">RealBasic have several strings type.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">There are two string declare types used on Windows :</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">CString (which is a null terminated ANSI string) and WString (which is a null terminated Wide Char string).</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">So, you can use also WString. Here is an example using WString.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">ThePDFlib is a constant with the full Dll's path.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">I think "Byval" is not needed, as RealBasic does it by default. Also RealBasic is supposed to automatically convert Strings to Wtring or CString in Declares. You just need to declare the correct string type and you can use a standard string for your parameters.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; #if TargetWin32 // In case we try that on a Mac or a Linux Box....</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Dim Test , ImageID as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Dim InstanceID as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; ' Dim TheLicenceKey as Wstring = "Your Licence here"</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Dim ThePic as&nbsp; Picture</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Dim Mb as MemoryBlock</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Dim ThePass as string = ""</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Dim ThePath as String&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Dim DocId as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Dim PageCount as Integer = -1</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; ' ==== Declare</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFCreateLibrary Lib ThePDFlib () as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFUnlockKey&nbsp; Lib ThePDFlib ( InstanceID as integer, TheLicenceKey as Wstring ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFLoadFromFile&nbsp; Lib ThePDFlib ( InstanceID as integer, ThePath as Wstring, ThePass as WString ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFSelectedDocument&nbsp; Lib ThePDFlib ( InstanceID as integer ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFPageCount&nbsp; Lib ThePDFlib ( InstanceID as integer ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFAddImageFromFile Lib ThePDFlib ( InstanceID as integer,&nbsp; TheFile as WString&nbsp; , Options as integer ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFAddImageFromString Lib ThePDFlib ( InstanceID as integer,&nbsp; &nbsp; Source as Ptr&nbsp; , Options as integer ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFSelectPage Lib ThePDFlib ( InstanceID as integer , page as integer ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFImageHeight&nbsp; Lib ThePDFlib ( InstanceID as integer ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFImageWidth&nbsp; Lib ThePDFlib ( InstanceID as integer ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Function QuickPDFDrawImage Lib ThePDFlib ( InstanceID as integer , Left as double , Top as Double , Width as Double , Height as Double ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Sub QuickPDFSaveToFile&nbsp; Lib ThePDFlib ( InstanceID as integer, ThePath as Wstring )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Soft Declare Sub QuickPDFReleaseLibrary Lib ThePDFlib ( InstanceID as integer )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; ' =======</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; InstanceID = QuickPDFCreateLibrary ()</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; Test&nbsp; = QuickPDFUnlockKey ( InstanceID, TheLicenceKey )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; if InstanceID &gt; -1 then //OK</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; //Create a simple pic</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; Dim MyPic as new Picture ( 100 ,100 ,32 )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; MyPic.Graphics.ForeColor = &amp;c0000FF</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; MyPic.Graphics.FillRect ( 0, 0, MyPic.Width , MyPic.Height )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; Dim MyStr as string = MyPic.GetData ( picture.FormatPNG )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; Dim Mb as MemoryBlock = MyStr</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; ' ===Open a FIle</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; ThePath = "C:\DEV\PDF\Test.pdf"</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; Test =&nbsp; QuickPDFLoadFromFile ( InstanceID , ThePath , ThePass )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; if Test= 1 then // Doc Opened</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; ' ===Selected Document</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; DocId = QuickPDFSelectedDocument ( InstanceID )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; ' ==== Page Count</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; PageCount = QuickPDFPageCount ( InstanceID )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; ' ==== Add Image to doc</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; ImageID = QuickPDFAddImageFromFile ( InstanceID,&nbsp; "C:\DEV\PDF\MyPic.png" , 0 ) &nbsp; //OK</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; ' ===== But I can't get this one to work !</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; ' Test = QuickPDFAddImageFromString ( InstanceID,&nbsp; MyStr , 0 ) &nbsp; //&nbsp; &nbsp; &lt;---------??? &nbsp; OR :</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; Test = QuickPDFAddImageFromString ( InstanceID,&nbsp; Mb , 0 )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; ' ==== Select page 1</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; Test = QuickPDFSelectPage ( InstanceID , 1 )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; ' ==== Draw Image</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; if ImageID &gt;0 then // Image added</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim w , h as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; w = QuickPDFImageWidth&nbsp; ( InstanceID )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; h = QuickPDFImageHeight ( InstanceID )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Test = QuickPDFDrawImage ( InstanceID , 250, 450, w, h )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; end</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; Dim TheNewPath as WString = "C:\DEV\PDF\Test with image.pdf"</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; &nbsp; QuickPDFSaveToFile ( InstanceID , TheNewPath ) &nbsp; // OK !!!</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; end //OpenDoc</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; &nbsp; QuickPDFReleaseLibrary ( InstanceID )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; &nbsp; end //InstanceID</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">&nbsp; #endif</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px">&nbsp;&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">RealBasic have aslo&nbsp; a MemoryBlock Type :</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">A MemoryBlock object allocates a sequence of bytes in memory and manipulates those bytes directly. A MemoryBlock can be passed in place of a Ptr when used in a Declare call.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">So,&nbsp; you can use a memory block to render a page to a string :</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier"><span style="font: 13.0px 'Times New Roman'">&nbsp;&nbsp;&nbsp; </span>Soft Declare Function QuickPDFDARenderPageToString Lib ThePDFlib ( InstanceID as integer, FileHandle as integer , PageRef as integer ,Options as integer, DPI as integer )&nbsp; as Ptr</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp;&nbsp;&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp;&nbsp; Soft Declare Function QuickPDFAnsiStringResultLength Lib ThePDFlib ( InstanceID as integer ) as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp;&nbsp;&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp;&nbsp; Dim data as MemoryBlock</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp; data =&nbsp;&nbsp; QuickPDFDARenderPageToString ( InstanceID, FileHandle , PageRef, Options, DPI )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp;&nbsp; Dim Size as integer</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp;&nbsp; Size = QuickPDFAnsiStringResultLength ( InstanceID )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp;&nbsp; Dim mb as MemoryBlock</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp;&nbsp; mb = data.StringValue ( 0, size )</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp;&nbsp;&nbsp; ThePic = Picture.FromData ( Mb )&nbsp;&nbsp; // Pic OK !!!!</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">But this is weird, as usually something like :</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">Soft Declare Function QuickPDFDARenderPageToString Lib ThePDFlib ( InstanceID as integer, FileHandle as integer , PageRef as integer ,Options as integer, DPI as integer ) as Ptr</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">dim m as MemoryBlock = QuickPDFDARenderPageToString(...)</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">if m &lt;&gt; nil then</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">&nbsp; &nbsp; //make picture</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier">end if</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px 'Times New Roman'; min-height: 17.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px 'Times New Roman'">should have been sufficient ! In fact, the size of the MemoryBlock isn't fixed when it's returned, so one needs to precise the size.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'; min-height: 16.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Times New Roman'">Fred</p>]]>
   </description>
   <pubDate>Tue, 26 Jun 2012 21:06:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-qpl8xx-with-realbasic-realstudio_topic2315_post9834.html#9834</guid>
  </item> 
  <item>
   <title><![CDATA[Using QPL8.xx with RealBasic, RealStudio :   The RealBasic type of CString...]]></title>
   <link>http://www.quickpdf.org/forum/using-qpl8xx-with-realbasic-realstudio_topic2315_post9826.html#9826</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2315<br /><strong>Posted:</strong> 23 Jun 12 at 9:00AM<br /><br /><div><br></div><div>The RealBasic type of CString uses 8bit characters therefore we need to used the 'A' functions to pass and return the 8bit strings as a CSTRING. &nbsp;The standard QPL functions use Unicode strings.</div><div><br></div><div>If a QPL function passes or returns a CSTRING then you need to add an 'A' to the function name to use the 8bit version.</div><div><br></div><div>&nbsp; QuickPDFUnlockKeyA</div><div>&nbsp; QuickPDFLoadFromFileA</div><div>&nbsp; QuickPDFSaveToFileA</div><div>&nbsp; ... &nbsp;+ more</div><div><br></div><div>Andrew</div><div><br></div><div>----------------------------------------------------------------------</div><div><br></div><div><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">Sub Action()</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; const DLL_NEW = "QuickPDFDLL0816.dll"</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">needed</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; dim filename as string = "f:\users\andrew\downloads\realstudio.pdf"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp;&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; dim result,instance as Integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp;&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; DECLARE FUNCTION QuickPDFCreateLibrary&nbsp; LIB DLL_NEW&nbsp; AS integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; DECLARE FUNCTION QuickPDFUnlockKeyA&nbsp; &nbsp; &nbsp; LIB&nbsp; DLL_NEW&nbsp; ( BYVAL iInstanceID AS integer, sLicenseKey AS cstring) AS integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; DECLARE FUNCTION QuickPDFLibraryVersionA&nbsp; LIB&nbsp; DLL_NEW&nbsp; ( BYVAL iInstanceID AS integer) AS CSTRING</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; DECLARE FUNCTION QuickPDFSaveToFileA&nbsp; &nbsp; &nbsp; LIB&nbsp; DLL_NEW&nbsp; ( BYVAL iInstanceID AS integer, sFileName AS CSTRING) AS integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; DECLARE FUNCTION QuickPDFDrawTextA&nbsp; &nbsp; &nbsp; &nbsp; LIB&nbsp; DLL_NEW&nbsp; ( BYVAL iInstanceID AS integer, BYVAL dXPos AS DOUBLE, BYVAL dYPos AS DOUBLE, sText AS cstring ) AS integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; DECLARE FUNCTION QuickPDFReleaseLibrary LIB&nbsp; DLL_NEW ( BYVAL iInstanceID AS integer) AS integer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; '</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp;&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; Instance = QuickPDFCreateLibrary( )</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp;&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; MsgBox "Instance=" + str(instance)</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; msgbox "Quick PDF Library Ver. " + QuickPDFLibraryVersionA( Instance )</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp;&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; result=QuickPDFUnlockKeyA (instance,"&lt;insert your key here&gt;")</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp;&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; if result=1 then</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; '**create PDF</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; result= QuickPDFDrawTextA (instance,100, 500, "Hello from Real Studio")</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; result = QuickPDFSaveToFileA (instance,filename)</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; result = QuickPDFReleaseLibrary (instance)</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp;&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; '**display PDF with default PDF Viewer</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; GetFolderItem(filename).Launch</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp;&nbsp;</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; else</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; &nbsp; MsgBox "invalid licence"</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "><span style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; ">&nbsp; end</span><br style="font-family: Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: normal; "></div>]]>
   </description>
   <pubDate>Sat, 23 Jun 2012 09:00:07 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-qpl8xx-with-realbasic-realstudio_topic2315_post9826.html#9826</guid>
  </item> 
 </channel>
</rss>