Current section
Files
Jump to
Current section
Files
lib/html_to_pdf.ex
defmodule HtmlToPdf do
def set_html(document, html) do
%{document | html: html}
end
def set_dpi(document, dpi) do
document
|> HtmlToPdf.Document.put_option("--dpi", dpi |> Integer.to_string)
end
end