Do you own a Quick PDF Library 7 or iSEDQuickPDF license? Upgrade to Quick PDF Library 8 today!

Quick PDF Library

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:

"C:\Program Files\Quick PDF Library\TCP\QuickPDFTCP0813.exe" /install

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:

IPAddress=127.0.0.1
Port=10005

Starting the service

Run the following command to start the service:

net start QuickPDFTCPService0813

Using the C# class

A C# client is available in the [installation folder]\TCP\Client\CSharp directory.

Here is an example program:

QuickPDFTCP0813.Client qp = new QuickPDFTCP0813.Client();
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:

QuickPDFTCP0713 qp;
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.


© 2011 Debenu. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum