module Hpdf
Overview
Hpdf
is a crystal wrapper of libharu.
HARU is a free, cross platform, open-sourced software library for generating PDF. It supports the following features.
- Generating PDF files with lines, text, images.
- Outline, text annotation, link annotation.
- Compressing document with deflate-decode.
- Embedding PNG, Jpeg images.
- Embedding Type1 font and TrueType font.
- Creating encrypted PDF files.
- Using various character set (ISO8859-1~16, MSCP1250~8, KOI-8R).
- Supporting CJK fonts and encodings.
pdf = Hpdf::Doc.build do
page do
draw_rectangle 50, 50, width - 100, height - 110
text Hpdf::Base14::Helvetica, 70 do
text_out :center, :center, "Hello World"
end
end
end
pdf.save_to_file "hello.pdf"
Start building a document using Doc#build
Defined in:
hpdf.crhpdf/annotation.cr
hpdf/date.cr
hpdf/destination.cr
hpdf/doc.cr
hpdf/encoding.cr
hpdf/enum.cr
hpdf/error.cr
hpdf/font.cr
hpdf/fonts.cr
hpdf/grid.cr
hpdf/helper.cr
hpdf/image.cr
hpdf/letter.cr
hpdf/outline.cr
hpdf/page.cr
hpdf/raw_image.cr
hpdf/structs.cr
hpdf/table.cr
Constant Summary
-
VERSION =
"0.9.7"