A brief talk on several text output functions of pdflib Chinese output (iii.) pdflib

Source: Internet
Author: User
Tags data structures pdflib

1. Pdf_show

void Pdf_show (PDF *p, const char *text)

void Pdf_show2 (PDF *p, const char *text, int len)

Outputs text in the current coordinates with the current font and font size.

Pdf_show will assume that the string ends with a null character (null), and if the string might contain a null character (such as a multibyte string), use Pdf_show2.

2. Pdf_show_xy

void Pdf_show_xy (PDF *p, const char *text, double x, double y)

void Pdf_show_xy2 (PDF *p, const char *text, int len, double x, double y)

Outputs text in the given coordinates with the current font and font size.

Pdf_show_xy will assume that the string ends with a null character (null), and if the string might contain a null character (such as a multibyte string), use Pdf_show_xy2.

3. Pdf_continue_text

void Pdf_continue_text (PDF *p, const char *text)

void Pdf_continue_text2 (PDF *p, const char *text, int len)

Output text with the current font and font size on the next line.

Pdf_continue_xy will assume that the string ends with a null character (null), and if the string might contain a null character (such as a multibyte string), use Pdf_continue_xy2.

4. Pdf_fit_textline

void Pdf_fit_textline (pdf*p, const char *text, int len, double x, double y, const char *optlist)

Outputs a line of text from the selected item in the given coordinate.

If the string ends with a null character (null) and Len is 0, the number of bytes is given.

5. Pdf_fit_textflow

int Pdf_create_textflow (PDF *p, const char *text, int len, const char *optlist)

Creates a text stream object and prepares the text for formatting the following text.

If the string ends with a null character (null) and Len is 0, the number of bytes is given.

const char *pdf_fit_textflow (PDF *p, int textflow, double llx, double lly, double Urx, double ury, const char *optlist)

Outputs the text to the appropriate rectangular block.

Lly, Llx, URY, Urx, respectively, are the vertical and horizontal coordinates of the lower-left corner of the rectangular block and the upper-right corner.

void Pdf_delete_textflow (PDF *p, int textflow)

Deletes text stream objects and related data structures.

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.