home | download | documentation | examples | sourceforge | forums

## Examples

### font_demo.c

font_demo.c is a program which shows list of bese14fonts.

- show source code
- show source code(ruby)
- show source code(c#)
- show pdf

### line_demo.c

line_demo.c is a program which shows various line graphics.

- show source code
- show source code(ruby)
- show source code(Delphi/Free Pascal)
- show source code(c#)
- show pdf

### text_demo.c

text_demo.c is a program which show various way of text showing.

- show source code.
- show source code(c#)
- show pdf

### text_demo2.c

text_demo2.c is an additional demo program which show various way of text showing.

- show source code
- show source code(ruby)
- show pdf

### png_demo, jpeg_demo, raw_image_demo

These demo programs explain how to load a picture.
png_demo

- show source code
- show pdf

jpeg_demo

- show source code
- show pdf

raw_image_demo

- show source code
- show source code(c#)
- show pdf

### encoding_list.c

encoding_list.c shows the list of characters for various encodings.

- show source code
- show pdf

### encryption.c, permission.c

These programs describe how to create an encrypted pdf file.
encryption.c

- show source code
- show source code(ruby)
- show pdf (The user password is "user")

permission.c

- show source code
- show pdf

### arc_demo.c

arc_demo is a program which shows how to use arc and circle functions.

- show source code
- show source code(ruby)
- show pdf file

### ttfont_demo.c

ttfont_demo shows how to load and use TrueType font.
This program uses the font named Penguin Attack written by Dustin Norlander(http://www.dustismo.com/)

- show source code
- show source code(ruby)
- show pdf file

### text_annotation.c, link_annotation.c

These programs describe the way of using text, link and web-link annotations.
text_annotation.c

- show source code
- show pdf file

link_annotation.c

- show shource code
- show pdf file

### outline_demo.c

outline_demo shows how to use outlines.

- show source code
- show source code(c#)
- show pdf files

### jpfont_demo.c

jpfont_demo shows how to create a pdf-file which uses japanese font.

- show source code
- show source code(ruby)
- show source code(c#)
- show pdf files (Asian Font Pack is required to display this pdf-file.)

### image_demo.c

image_demo describes how to use special functions for displaying images.

- show source code
- show source code(c#)
- show pdf file

### character_map.c

charactor_map is a program to create the list of characters for multibyte encodings.
Usage of this program is "character_map <encoding-name> <font-name>".
For example, type as follows to create list for Korean of KSCms-UHC-HW-H encoding.
./character_map KSCms-UHC-HW-H BatangChe

- show source code

### grid_sheet.c

grid_sheet is a program which uses to design a report. A positioning works becomes easy by overlaying a page with this grid sheet (See text_demo2.c).

- show source code
- show pdf file

### ext_gstate_demo.c

ext_gstate_demo describes how to use extended gtaphics state functions (transparency and blend mode).

- show source code
- show source code(ruby)
- show pdf file

### slide_show_demo.c

slide_show_demo describes how to use slide transition.

- show source code
- show source code(ruby)
- show pdf file