����������
WEB - ������

www.spravkaweb.ru Rambler's Top100
 ï¿½ï¿½ ����������: �������/PHP/PDF-���������.���������� ��������Ðàñïå÷àòàòü 
�������
�������
����� ���
HTML
JavaScript
VBScript
CSS
Flash
Perl
PHP
MySQL
SSI
VRML
�������������
������
Download
�����
��������
������
�������� ���
�����:
��������
Subscribe.Ru:

PHP

<--����� | ��������� � ������ | ������-->
PDF-���������
���������� ��������
pdf_open_gif
�������� ������� GIF.

��������� :
void pdf_open_gif(int pdf_document, string filename)

����������� ������� pdf_open_image_file().
<?php
$im = pdf_open_gif($pdf, "test.gif");
pdf_place_image($pdf, $im, 100, 100, 1);
pdf_close_image($pdf, $im);
?>

pdf_open_png
�������� ������� PNG.

��������� :
void pdf_open_png(int pdf_document, string filename)

����������� ������� pdf_open_image_file().

pdf_open_jpeg
�������� ������� JPEG.

��������� :
void pdf_open_jpeg(int pdf_document, string filename)

����������� ������� pdf_open_image_file().

pdf_open_tiff
�������� ������� TIFF.

��������� :
void pdf_open_tiff(int pdf_document, string filename)

����������� ������� pdf_open_image_file().

pdf_open_image_file
������ ������� �� �����.

��������� :
void pdf_open_tiff(int pdf_document, string format, string filename)

��� ������� ��������� ������� ������� format �� ����� filename � ���������� ��� �������������.
��������� �������:
  • PNG
  • TIFF
  • JPEG
  • GIF
    <?php
    $pim = pdf_open_image_file($pdf, "png", "pic.png");
    pdf_place_image($pdf, $pim, 100, 100, 1);
    pdf_close_image($pdf, $pim);
    ?>
    
    ��� ������� �������� pdf_open_image(), pdf_open_gif(), pdf_open_tiff(), pdf_open_png().

  • pdf_open_memory_image
    �������� �������, ���������� ������������ ��������� PHP.

    ��������� :
    void pdf_open_memory_image(int pdf_document, int image)

    ������� ��������� ���������� �������, ���������� PHP, � ������ ��� ��������� ��� ��������� pdf. ������� ���������� ������������� ������� pdf.
    <?php
    $im = ImageCreate(100, 100);
    $col = ImageColorAllocate($im, 80, 45, 190);
    ImageFill($im, 10, 10, $col);
    $pim = pdf_open_memory_image($pdf, $im);
    ImageDestroy($im);
    pdf_place_image($pdf, $pim, 100, 100, 1);
    pdf_close_image($pdf, $pim);
    ?>
    

    pdf_close_image
    �������� �������.

    ��������� :
    void pdf_close_image(int pdf_document, int image)

    ��������� �������, �������� ��������� pdf_open_().

    pdf_get_image_height
    ��������� ������ ������� � ��������.

    ��������� :
    void pdf_get_image_height(int pdf_document, int image)

    pdf_get_image_width
    ��������� ������ ������� � ��������.

    ��������� :
    void pdf_get_image_width(int pdf_document, int image)

    pdf_place_image
    ���������� ������� �� ��������.

    ��������� :
    void pdf_place_image(int pdf_document, int image, double x, double y, souble scale)

    ������� ���������� �������� (x,y); ������� - scale.

    pdf_put_image
    ���������� ������� � pdf ��� ����������� �������������.

    ��������� :
    void pdf_put_image(int pdf_document, int image)

    ������� �������� ������� � �������� ��� ��� �����������. ����� ������� ����� ���� �������� �� �������� �������� pdf_execute_image() ����������� ����� ���. ������� ��� ������������ ������� ������� (��������� ������ �����).

    ������� � ������ 2.01 pdflib ������� ���������� � ������� ������ ��������������.

    pdf_execute_image
    ���������� ������������ ������� �� ��������.

    ��������� :
    void pdf_execute_image(int pdf_document, int image, double x, double y, double scale)

    ���������� �������, ���������� �������� pdf_put_image().
    ������� � ������ 2.01 pdflib ������� ���������� � ������� ������ ��������������.
    <?php
    $im = ImageCreate(100, 100);
    $col1 = ImageColorAllocate($im, 80, 45, 190);
    ImageFill($im, 10, 10, $col1);
    $pim = pdf_open_memory_image($pdf, $im);
    pdf_put_image($pdf, $pim);
    pdf_execute_image($pdf, $pim, 100, 100, 1);
    // 200%
    pdf_execute_image($pdf, $pim, 200, 200, 2);
    pdf_close_image($pdf, $pim);
    ?>
    
    �� ���������� ����� ����� ������� "PHP 4. ����������� ����������."
    www.piter.com
    ������ / � ����������
     
    Download
    Ñêà÷àòü ñïðàâî÷íèê ïî PHP
    ��� ������:
    05.07.2004
  • � ������� PHP ��������� ��������� ������� ��� ������ � ���������� (���������� GD):
    imagetypes(), ...
  • � ������� JavaScript ��������� �������� �� ����� D, E, F, H, I
  • � ������� ������ ��������� ������, �������������� ��� �������� � html-�������� ��������� MS Office (Word, Excel � �.�.)
  • �����������:
    ��� ��� ������ ����� �� �������� � �����������:
    ��� ��������.
    ������ �� ��������.
    ���� ��������.
    �������� �������� �������.
    �� ��� ������� �������.
    � ����������� ���� ������.
    � ��� ��� �����.
    ������.
    ��������:
    Rambler's Top100
    Ñäåëàòü ñòðàíèöó ñòàðòîâîé ������� �������� ���������
    Äîáàâèòü ñòðàíèöó â èçáðàííîå �������� ���� � ���������
    Ñîîáùèòü îá íàéäåííîé îøèáêå �������� �� ������