PDF function Library: pdf_add_annotation

Source: Internet
Author: User
Keywords pdf_add_annotation pdf function Library php Chinese function manual
Tags content file function function library pdf function library pdf_add_annotation php php chinese function manual

Pdf_add_annotation

Add a comment.

Syntax: boolean pdf_add_annotation (int pdfid, double llx, double lly, double Urx, double Ury, string title, string content);

Return Value: Boolean value

Function type: Special file format

Content Description

This function adds a PDF file to the annotation. Parameters (Llx, lly), (Urx, URY) are the X, Y coordinates on the lower left and right respectively. The argument title is the caption of the note. The parameter content is a comment string.

&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; PDF is the portable file format developed by Adobe, its files can be transmitted on the network, browsing, even the use of printer printing, or other output device output, you can save the original text and graphics layout. For more information, refer to Adobe's website. Refer to the part of the PDF or Acrobat.
In UNIX systems, you can use the PDF function library developed by Thomas Merz. After compiling the installation, you can compile the PHP program for PHP to use Pdflib. The JPEG library and the TIFF library may be expected at compile time.
In addition to using this function library to build a PDF file, FastIO Company's product ClibPDF can also process PDF files. The following is an example of a PDF file, which is processed by the test.pdf for the user to read.

<?php
$fp = fopen ("Test.pdf", "w");
$pdf = Pdf_open ($FP);
Pdf_set_info_author ($pdf, "Uwe Steinmann");
Pdf_set_info_title ($pdf, "Test for PHP wrappers of Pdflib 2.0");
Pdf_set_info_author ($pdf, "Name of author");
Pdf_set_info_creator ($pdf, "Author");
Pdf_set_info_subject ($pdf, "testing");
Pdf_begin_page ($pdf, 595, 842);
Pdf_add_outline ($pdf, "Page 1");
Pdf_set_font ($pdf, "Times-roman", 30, 4);
Pdf_set_text_rendering ($pdf, 1);
Pdf_show_xy ($pdf, "Times Roman outlined", 50, 750);
Pdf_moveto ($pdf, 50, 740);
Pdf_lineto ($pdf, 330, 740);
Pdf_stroke ($pdf);
Pdf_end_page ($pdf);
Pdf_close ($pdf);
Fclose ($FP);
echo "<a href=getpdf.php3>finished</a>";
?>

The gettest.php3 in the example above may look like the following

<?php
$fp = fopen ("Test.pdf", "R");
Header ("Content-type:application/pdf");
Fpassthru ($FP);
Fclose ($FP);
?>

Related Article

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.