PDF function Library: Pdf_scale

Source: Internet
Author: User
Keywords pdf_scale pdf function Library php Chinese function manual
Tags code content file function function library http pdf function library php

Pdf_scale

The zoom bit.

Syntax: boolean pdf_scale (int pdfid, double x-koor, double y-koor);

Return Value: Boolean value

Function type: Special file format

Content Description

This function is used to enlarge or shrink a bit. Parameter Pdfid to PDF file code. The parameter X-koor and Y-koor are floating-point numbers, respectively, the scaling ratios of x and Y.
&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;
Usage examples

The following example configures X, Y to magnify 72 times times, and then draws a line from (0,0) to (1, 1), forming a line (0, 0) to (72, 72).

<?php
Pdf_scale ($pdf, 72.0, 72.0);
Pdf_lineto ($pdf, 1, 1);
Pdf_stroke ($pdf);
?>

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.