Getting To Know The TCP/IP Edition Of Quick PDF Library
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’s something you probably weren’t expecting – over the past few months, we’ve been working on a version of Quick PDF Library that does a few things.
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.
This new edition of the library is now being distributed with the current version of Quick PDF Library. You’ll find all of the files necessary for the TCP/IP edition in the default installation directory (C:\Program Files\Quick PDF Library\TCP).
In this short tutorial, we’re going to show you how to get up and running with this exciting new edition.
Step 1. Install the Quick PDF Library TCP/IP service
Copy the files QuickPDFTCP0714.exe and QuickPDFTCP0714.ini to the folder containing your application (example: C:\QuickPDFLibrary\TCP\
Open a command line in administrator mode, run the following command to install the service “C:\QuickPDFLibrary\TCP\QuickPDFTCP0714.exe” /install
Step 2. Start the service
Edit the settings file QuickPDFTCP0714.ini modifying the IP address and port as you wish:
IPAddress=127.0.0.1
Port=10005
This allows you access the local host on your machine – you can also use this to communicate with machines across your network.
Run the following command to start the service:
net start QuickPDFTCPService0714
Step 3. A simple C# example
Create a simple C# application and add the QuickPDFTCP0714.cs to your project.
Add a single button to the default form, double click and add the following action:
private void button1_Click(object sender, EventArgs e)
{
QuickPDFTCP0714.Client qp = new QuickPDFTCP0714.Client();
if (qp.Connect(“127.0.0.1”, 10005))
{
if (qp.UnlockKey(“YOUR KEY”) == 1)
{
qp.DrawText(100, 500, “Hello from C# via TCP/IP”);
qp.SaveToFile(“C:\\temp\\test.pdf”);
}
else
{
MessageBox.Show(“Could not unlock”);
}
}
}
Start the application, click the button, and then open an Explorer window and check the “c:\temp” folder. You should find a simple file, “test.pdf” with the “Hello from C# via TCP/IP” text in the middle.
How else can you use this?
- Provide your .NET managed code a way of accessing Quick PDF Library.
- Write 64-bit code targeting a 64-bit processor.
- Connect to Quick PDF Library servers across networks.
I’m sure you’ll find lots of interesting uses for this interface, please leave a comment to let me know and we’ll publish some of these stories on the site.
Note: The TCP/IP socket interface provides the “glue” for the 32-bit Quick PDF Library to talk directly with 32-bit and 64-bit builds, managed processes and also remote installations.

When using the 64-bit interface, do we need to add the QuickPDF Service Exe to the windows firewall if its running on the same PC as the code that connects to it?
For Vista and later, does this need any UAC Elevation?
Comment by Anup Mistry — November 23, 2009 @ 9:24 am
Thanks for your questions Anup.
It shouldn’t be necessary to add the QuicK PDF Library Service EXE to the Windows Firewall — because no external connections are necessary in your case — and it shouldn’t require any UAC elevation either.
Have you experienced problems in this area?
Comment by Rowan — November 24, 2009 @ 8:02 pm
Hi,
I turn my application under ColdFusion 64bits and if COM 64bits is not yet in production, is it possible having a java implementation of TCP edition.
I understand using in C++ but in Java, have you the same model with .jar classes ?
In better, for Coldfusion, you have the possibility to create CFX Custom Tag in C++ and i think that if you create directly a TAG for ColdFusion you have a great market with this.
Now i use your Active X COM solution in 32 bits but without 64 bits, i’havent solution with Coldfusion. Coldfusion is a element of Adobe Flash platform with Flex and Air.
You can see here the brief of CFX_TAG C++
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0a4b8-7fe4.html
Best regards
Comment by Sébastien — July 9, 2011 @ 5:36 am
Hi Sebastien,
We don’t have a Java version of the TCP edition and are unlikely to in the future.
We hope to have the 64-bit COM version out sometime later this year. I’ll notify you as soon as it is ready for testing.
Cheers,
– Rowan.
Comment by Rowan — July 10, 2011 @ 1:20 am