Current section
Files
Jump to
Current section
Files
lib/test/libre_office_test.ex
defmodule LibreOfficeTest do
@moduledoc false
def test_pdf do
{:ok, %{body: body}} =
GotenbergElixir.LibreOffice.convert([
{"file.docx", File.read!("lib/test/data/file.docx")},
{"file.xls", File.read!("lib/test/data/file.xls")},
{"file.ppt", File.read!("lib/test/data/file.ppt")}
])
Enum.each(body, fn {filename, content} ->
File.write!("lib/test/results/#{filename}", content)
end)
end
end