2.2.2 How to run a demo
Simple Demo
We provide a simple demo project for developers to understand how to efficiently use Right PDF SDK to build their own PDF applications. Load the “PDFReader_vc2008.sln” or “PDFReader_vc2010.sln” depending on the version of your Microsoft Visual Studio. The executable file “PDFReader.exe” will then be generated and saved into a new folder named “bin”.
There are two ways to run the executable file, either in command line or in Visual Studio. If you are running the file in command line, start “cmd.exe”, navigate to “bin”, and run “PDFReader.exe”; if running in Visual Studio, click on “Debug > Start Debugging” or “Debug > Start Without Debugging” on the toolbar to run it.
PDF Reader Demo (C++)
The following demo is an example for C++ developers to realize using PDF SDK to build a PDF reader. In this sample project “PDFReader”, for instance, textbox can be added onto the test PDF file as an annotation, and there are other PDF functionalities that can be applied through GUI. You are also able to check the project source code to see how PDF SDK APIs are used to make PDF functionalities work.
To start, launch Microsoft Visual Studio and follow the steps below:
-
Select File > Open > Project/ Solution…, and in the RightPDFSDK package, open the project file PDFReader.sln by following RightPDFSDK\ samples\ win\PDFReader\PDFReader.sln.


-
The project “PDFReader” is opened. Click the green arrow on the toolbar to run the program.

-
PDFReader GUI appears as shown below.

-
Click Open to open a test PDF file via PDF Reader.

-
There are more PDF functions on the toolbar. Try to add an annotation or use other PDF functions.
