Haru Free PDF Library
home | download | documentation | examples | sourceforge | forums

Examples

font_demo.c

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

line_demo.c

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

text_demo.c

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

text_demo2.c

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

png_demo, jpeg_demo, raw_image_demo

These demo programs explain how to load a picture.

png_demo
jpeg_demo
raw_image_demo

encoding_list.c

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

encryption.c, permission.c

These programs describe how to create an encrypted pdf file.

encryption.c
permission.c

arc_demo.c

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


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/)
      ttfont_demo

text_annotation.c, link_annotation.c

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

text_annotation.c
link_annotation.c

outline_demo.c

outline_demo shows how to use outlines.


jpfont_demo.c

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

image_demo.c

image_demo describes how to use special functions for displaying images.
     image_demo.png

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
      character_map.png
    

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).