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