Getting Started: TCP Edition
Installation
During installation, the QuickPDFTCP0813.exe file will be copied into the directory you specify, for example C:\Program Files\Quick PDF Library\TCP\
Run the following command to install the service:
Setting the IP address and port
In the same directory you will find a settings file called QuickPDFTCP0813.ini. This file can be edited to change the IP address and port that the TCP service listens on:
Port=10005
Starting the service
Run the following command to start the service:
Using the C# class
A C# client is available in the [installation folder]\TCP\Client\CSharp directory.
Here is an example program:
if (qp.Connect("127.0.0.1", 10005))
{
if (qp.UnlockKey("your license key here") == 1)
{
qp.DrawText(100, 500, "Hello from C# via TCP/IP");
qp.SaveToFile("C:\\test.pdf");
}
}
Note that all directories are relative to the server.
Using the C++ class
A C++ client is available in the [installation folder]\TCP\Client\CPlusPlus directory.
Here is an example program:
if (qp.Connect("127.0.0.1", 10005))
{
std::cout << "LibraryVersion = ";
std::cout << qp.LibraryVersion() << std::endl;
qp.UnlockKey("your license key here");
qp.DrawText(100, 500, "Hello from C++ via TCP/IP");
qp.SaveToFile("C:\\test.pdf");
}
Directories and paths
Note that all directories are relative to the server.


