Simple use of PDFLib

Source: Internet
Author: User
Tags pdflib

8.0.2 has more than 4 MB and about 600 mb after compression. We recommend that you use version 4.0.2 with a size of more than 200 KB and a size of more than KB after compression. It is more than mini, but this version is rare, it is hard to find it online.

: Http://download.csdn.net/source/1500314

Include the header file pdflib. h and link pdflib. lib. Test code:

PDF * pdf = pai_new ();
If (pdf ){
Pai_open_file (pdf, "1.20 ");
For (int I = 0; I <3; ++ I ){
Int nImage = pai_open_image_file (pdf, "jpeg", strAppPath + "1.jpg"," ", 0 );
__Begin_page (pdf, 1680 );
Pai_place_image (pdf, nImage, 0, 0, 1 );
Pai_close_image (pdf, nImage );
Pai_end_page (pdf );
}

Pai_close (pdf );
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.