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);
?>