Module ep_impose

License: File: ep_impose.erl Description: Functions to impose standard format pages on paper stock.

Copyright © 2018 Lloyd R. Prentice

Version: .01

Authors: Lloyd R. Prentice.

Description

License: File: ep_impose.erl Description: Functions to impose standard format pages on paper stock. Placement coordinates are relative to paper stock top left corner; e.g. paper stock {0, 0}

Function Index

formats/1Given paper stock, return list of page formats that will fit on the stock.
page_fits/2Returns true if paper stock is larger than.
page_height/1
page_size/1Return page width and height in points.
page_width/1
pages_across/2Return how many pages will fit across stock.
pages_down/2Return how many pages will fit vertically.
place_page/2Return coordinates to center page on paper stock.
place_pages/2Return list of coordinates on paper stock where page will fit.
place_pages/3Return list of coordinates for placement of.
select_stock/1Return list of standard paper stock sizes larger than selected format.
stock_height/1Returns height of stock in points.
stock_size/1Returns stock width and height in points.
stock_width/1Returns width of stock in points.

Function Details

formats/1

formats(PaperStock::paper_stock()) -> list()

Given paper stock, return list of page formats that will fit on the stock

page_fits/2

page_fits(PaperStock::atom(), Format::atom()) -> boolean()

Returns true if paper stock is larger than

page_height/1

page_height(Format::page_format()) -> points()

page_size/1

page_size(Format::page_format()) -> points_xy()

Return page width and height in points

page_width/1

page_width(Format::page_format()) -> points()

pages_across/2

pages_across(PaperStock::paper_stock(), Format::page_format()) -> integer()

Return how many pages will fit across stock

pages_down/2

pages_down(PaperStock::atom(), Format::atom()) -> integer()

Return how many pages will fit vertically

place_page/2

place_page(PaperStock::paper_stock(), Format::atom()) -> integer_xy()

Return coordinates to center page on paper stock

place_pages/2

place_pages(PaperStock::paper_stock(), Format::page_format()) -> list()

Return list of coordinates on paper stock where page will fit

place_pages/3

place_pages(PaperStock::paper_stock(), Format::page_format(), N::integer()) -> list()

Return list of coordinates for placement of

select_stock/1

select_stock(Format::page_format()) -> paper_stock() | [paper_stock()]

Return list of standard paper stock sizes larger than selected format

stock_height/1

stock_height(PaperStock::paper_stock()) -> points()

Returns height of stock in points

stock_size/1

stock_size(PaperStock::paper_stock()) -> points_xy()

Returns stock width and height in points

stock_width/1

stock_width(PaperStock::paper_stock()) -> points()

Returns width of stock in points


Generated by EDoc