PDF document effect Map generated by this code
A, PDF introduction
PDF is the abbreviation of Portable Document format, the PDF file format is an international common electronic document exchange fact standard, which is adopted as electronic document exchange in many countries. PDF files can be read, edited, and published under a variety of platforms. This file format supports the embedding of fonts, images, and even any attachments. You can read and edit PDF documents with free Adobe Acrobat reader.
Ii. introduction of Pdflib
Pdflib is a development library for creating PDF documents that provides an Easy-to-use API that hides the complex details of creating PDFs without the need for 3rd party software support. Pdflib Library for the individual is free, for commercial products need to purchase licenses, you can go to the VC Knowledge Base Tools and resources to download: http://www.vckbase.com/tools/.
Third, the use of Pdflib in VC + +
The pdflib used in this article is version 4.0.2, similar to the 5.0 version. 5.0 free version has a WWW.PDFLIB.COM watermark, 4.0 is not.
3.1 Preliminary preparation
After the project is established, copy the Except.cpp,except.h,pdflib.cpp,pdflib.h,pdflib.dll,pdflib.lib to the engineering directory.
3.2 Code