Gutenex

Source

Summary

add_image(pid, image_alias, image)
add_template(pid, template_alias, template_contents)
append_to_stream(pid, content)

Append to the current stream

begin_text(pid)

Begin a text block

context(pid)

Returns the current context

context(pid, new_context)

Sets the current context

draw_image(pid, image_alias)

Add an image by alias

draw_image(pid, image_alias, options)
end_text(pid)

End a text block

export(pid)

Export the PDF document to a binary

export(pid, file_name)
handle_call(msg, from, state)

Export the PDF to binary format

handle_cast(msg, state)

Set the font

init(args)

Returns the default context and stream (empty binary)

move_to(pid, point)
move_to(pid, point_x, point_y)
set_font(pid, font_name)

Set the font

set_font(pid, font_name, font_size)

Set the font and font size

set_page(pid, page)

Sets the current page

set_template(pid, template_alias)
start_link(opts \\ [])

Starts the PDF generation server

stream(pid)

Gets the current stream

text_position(pid, x_coordinate, y_coordinate)

Set the text position

text_render_mode(pid, render_mode)

Set the text render mode

write_text(pid, text_to_write)

Write text to the stream

Functions

add_image(pid, image_alias, image)
Source
add_template(pid, template_alias, template_contents)
Source
append_to_stream(pid, content)

Append to the current stream

Source
begin_text(pid)

Begin a text block

Source
context(pid)

Returns the current context

Source
context(pid, new_context)

Sets the current context

Source
draw_image(pid, image_alias)

Add an image by alias

Source
draw_image(pid, image_alias, options)
Source
end_text(pid)

End a text block

Source
export(pid)

Export the PDF document to a binary

Source
export(pid, file_name)
Source
handle_call(msg, from, state)

Export the PDF to binary format

Source
handle_cast(msg, state)

Set the font

Source
init(args)

Returns the default context and stream (empty binary)

Source
move_to(pid, point)
Source
move_to(pid, point_x, point_y)
Source
set_font(pid, font_name)

Set the font

Source
set_font(pid, font_name, font_size)

Set the font and font size

Source
set_page(pid, page)

Sets the current page

Source
set_template(pid, template_alias)
Source
start_link(opts \\ [])

Starts the PDF generation server.

Source
stream(pid)

Gets the current stream

Source
text_position(pid, x_coordinate, y_coordinate)

Set the text position

Source
text_render_mode(pid, render_mode)

Set the text render mode

Source
write_text(pid, text_to_write)

Write text to the stream

Source