{"id":113,"date":"2009-07-15T09:37:21","date_gmt":"2009-07-15T16:37:21","guid":{"rendered":"http:\/\/www.quickpdflibrary.com\/blog\/?p=113"},"modified":"2011-11-02T00:45:45","modified_gmt":"2011-11-02T07:45:45","slug":"getting-to-know-the-tcpip-edition-of-quick-pdf-library","status":"publish","type":"post","link":"https:\/\/www.quickpdflibrary.com\/blog\/2009\/07\/getting-to-know-the-tcpip-edition-of-quick-pdf-library\/","title":{"rendered":"Getting To Know The TCP\/IP Edition Of Quick PDF Library"},"content":{"rendered":"<p><strong>UPDATE: There is now a 64-bit compatible version of Quick PDF Library available as part of version 8. <a href=\"http:\/\/www.quickpdflibrary.com\/blog\/2011\/10\/quick-pdf-library-8-12-released-includes-64-bit-compatibility\/\">Read more here<\/a>. Native 64-bit support is provided for the DLL, ActiveX and Delphi editions.<\/strong><\/p>\n<p>OK, here&#8217;s something you probably weren&#8217;t expecting &#8211; over the past few months, we&#8217;ve been working on a version of Quick PDF Library that does a few things.<\/p>\n<p>Firstly, it provides you with the ability to work with 64-bit applications in a native 64-bit environment, as well as the flexibility of accessing Quick PDF Library via TCP\/IP from any computer within network reach.<\/p>\n<p>This new edition of the library is now being distributed with the<a href=\"http:\/\/www.quickpdflibrary.com\/products\/quickpdf\/updates.php\"> current version of Quick PDF Library<\/a>. You&#8217;ll find all of the files necessary for the TCP\/IP edition in the default installation directory (<em>C:\\Program Files\\Quick PDF Library\\TCP<\/em>).<\/p>\n<p>In this short tutorial, we&#8217;re going to show you how to get up and running with this exciting new edition.<\/p>\n<p><strong>Step 1. Install the Quick PDF Library TCP\/IP service<\/strong><\/p>\n<p>Copy the files QuickPDFTCP0714.exe and QuickPDFTCP0714.ini to the folder containing your application (example: C:\\QuickPDFLibrary\\TCP\\<\/p>\n<p>Open a command line in administrator mode, run the following command to install the service &#8220;C:\\QuickPDFLibrary\\TCP\\QuickPDFTCP0714.exe&#8221; \/install<\/p>\n<p><strong>Step 2. Start the service<\/strong><\/p>\n<p><strong><\/strong>Edit the settings file QuickPDFTCP0714.ini modifying the IP address and port as you wish:<\/p>\n<p>IPAddress=127.0.0.1<br \/>\nPort=10005<\/p>\n<p>This allows you access the local host on your machine &#8211; you can also use this to communicate with machines across your network.<\/p>\n<p>Run the following command to start the service:<br \/>\nnet start QuickPDFTCPService0714<\/p>\n<p><strong>Step 3. A simple C# example<\/strong><\/p>\n<p>Create a simple C# application and add the QuickPDFTCP0714.cs to your project.<\/p>\n<p>Add a single button to the default form, double click and add the following action:<\/p>\n<blockquote><p>private void button1_Click(object sender, EventArgs e)<br \/>\n{<br \/>\nQuickPDFTCP0714.Client qp = new QuickPDFTCP0714.Client();<br \/>\nif (qp.Connect(&#8220;127.0.0.1&#8221;, 10005))<br \/>\n{<br \/>\nif (qp.UnlockKey(&#8220;YOUR KEY&#8221;) == 1)<br \/>\n{<br \/>\nqp.DrawText(100, 500, &#8220;Hello from C# via TCP\/IP&#8221;);<br \/>\nqp.SaveToFile(&#8220;C:\\\\temp\\\\test.pdf&#8221;);<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\nMessageBox.Show(&#8220;Could not unlock&#8221;);<br \/>\n}<br \/>\n}<br \/>\n}<\/p><\/blockquote>\n<p>Start the application, click the button, and then open an Explorer window and check the &#8220;c:\\temp&#8221; folder. You should find a simple file, &#8220;test.pdf&#8221; with the &#8220;Hello from C# via TCP\/IP&#8221; text in the middle.<\/p>\n<h2>How else can you use this?<\/h2>\n<ul>\n<li>Provide your .NET managed code a way of accessing Quick PDF Library.<\/li>\n<li>Write 64-bit code targeting a 64-bit processor.<\/li>\n<li>Connect to Quick PDF Library servers across networks.<\/li>\n<\/ul>\n<p>I&#8217;m sure you&#8217;ll find lots of interesting uses for this interface, please leave a comment to let me know and we&#8217;ll publish some of these stories on the site.<\/p>\n<p><em>Note: The TCP\/IP socket interface provides the &#8220;glue&#8221; for the 32-bit Quick PDF Library to talk directly with 32-bit and 64-bit builds, managed processes and also remote installations.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>UPDATE: There is now a 64-bit compatible version of Quick PDF Library available as part of version 8. Read more here. Native 64-bit support is provided for the DLL, ActiveX and Delphi editions. OK, here&#8217;s something you probably weren&#8217;t expecting &#8211; over the past few months, we&#8217;ve been working on a version of Quick PDF [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,6],"tags":[44,47,20,45,48,49,46],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-quick-pdf-library","category-tips-and-tutorials","tag-64-bit","tag-network","tag-quick-pdf","tag-service","tag-tcp","tag-tcpip","tag-windows-server"],"_links":{"self":[{"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":6,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":118,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions\/118"}],"wp:attachment":[{"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}