Provides functions to convert documents into PDF using Gotenberg's LibreOffice service.
Summary
Functions
Converts one or more LibreOffice document into a PDF file.
Types
@type files() :: [file()]
@type flatten_option() :: {:flatten, boolean()}
@type merge_option() :: {:merge, boolean()}
@type metadata_option() :: {:metadata, map()}
@type option() :: page_property_option() | compress_option() | merge_option() | split_option() | pdfa_pdfua_option() | metadata_option() | flatten_option()
@type page_property_option() :: {:password, String.t()} | {:landscape, boolean()} | {:native_page_ranges, String.t()} | {:update_indexes, boolean()} | {:export_form_fields, boolean()} | {:allow_duplicate_field_names, boolean()} | {:export_bookmarks, boolean()} | {:export_bookmarks_to_pdf_destination, boolean()} | {:export_placeholders, boolean()} | {:export_notes, boolean()} | {:export_notes_pages, boolean()} | {:export_only_notes_pages, boolean()} | {:export__notes_in_margin, boolean()} | {:convert_ooo_target_to_pdf, boolean()} | {:export_links_relative_fsys, boolean()} | {:export_hidden_slides, boolean()} | {:skip_empty_pages, boolean()} | {:add_original_document_as_stream, boolean()} | {:single_page_sheets, boolean()}
Functions
@spec convert(files :: files(), options :: [option()]) :: {:ok, GotenbergElixir.HttpClient.Behaviour.response()} | {:error, GotenbergElixir.HttpClient.Behaviour.error()}
Converts one or more LibreOffice document into a PDF file.
## Parameters
files: A list of files as {filename, file}options: Optional parameters passed as a keyword list.
## Options For a list of all available options, refer to the official Gotenberg documentation.