Module ep_lib

License: MIT File: ep_lib.erl Description: erlPress library functions.

Copyright © 2018 Lloyd R. Prentice

Version: .01

Authors: Lloyd R. Prentice.

Description

License: MIT File: ep_lib.erl Description: erlPress library functions

Function Index

get_userguide_image/1Return userguide image.
get_userguide_text/1Return userguide text file.
impose_box/3
impose_line/3
impose_lines/3
impose_text/2
impose_xy/3Given placement of page on paper stock, translate coordinate of point.
list_userguide_images/0Return list of user guide images.
list_userguide_text/0Return list of user text files.
months/0Return list of months.
page_id/1Return randomly generated string.
today/0Return local datetime as string formated as month day, year.
v_flip/2
within/3Return true of A =< X =< B.

Function Details

get_userguide_image/1

get_userguide_image(Image::file:filename()) -> {ok, binary()} | {error, _Reason}

Return userguide image

get_userguide_text/1

get_userguide_text(TextFile::list()) -> {ok, binary()} | {error, _Reason}

Return userguide text file

impose_box/3

impose_box(Position::any(), Size::any(), PaperStock::paper_stock()) -> xy()

impose_line/3

impose_line(Line::xy1_xy2(), PageXY::xy(), PaperStock::paper_stock()) -> xy1_xy2()

impose_lines/3

impose_lines(Lines::[xy1_xy2()], PageXY::xy(), PaperStock::paper_stock()) -> xy1_xy2()

impose_text/2

impose_text(Position::xy(), PaperStock::paper_stock()) -> xy()

impose_xy/3

impose_xy(XY::xy(), PageXY::xy(), PaperStock::atom()) -> xy()

Given placement of page on paper stock, translate coordinate of point

list_userguide_images/0

list_userguide_images() -> {ok, list()} | {error, _Reason}

Return list of user guide images

list_userguide_text/0

list_userguide_text() -> {ok, list()} | {error, _Reason}

Return list of user text files

months/0

months() -> [{1..12, string()}]

Return list of months

page_id/1

page_id(Length::integer()) -> string()

Return randomly generated string

today/0

today() -> string()

Return local datetime as string formated as month day, year

v_flip/2

v_flip(Y::integer(), PaperStock::atom()) -> integer()

within/3

within(X::number(), A::number(), B::number()) -> boolean()

Return true of A =< X =< B


Generated by EDoc