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.

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.cr
hpdf/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"