     Map.put(report, :paper_size, paper_size)
   end
 
-  @spec set_rotation(Rapport.Report.t(), Report.rotation()) :: Rapport.Report.t()
+  @spec set_rotation(Report.t(), Report.rotation()) :: Report.t()
   @doc """
   Sets the rotation for the report.
 

  """

  alias Rapport.Report
  alias Rapport.PageNumbering

  @normalize_css File.read!(Path.join(__DIR__, "base_template/normalize.css"))
  @paper_css File.read!(Path.join(__DIR__, "base_template/paper.css"))
  @base_template File.read!(Path.join(__DIR__, "base_template/base_template.html.eex"))

  @spec add_page(Report.t(), String.t(), map) :: Rapport.Report.t()
  defdelegate add_page(report, page_template, fields), to: Rapport.Page
  @spec add_page(Rapport.Report.t(), Rapport.Page.t()) :: Rapport.Report.t()
  defdelegate add_page(report, page), to: Rapport.Page
  @spec add_pages(Rapport.Report.t(), list(Rapport.Page.t())) :: Rapport.Report.t()
  defdelegate add_pages(report, pages), to: Rapport.Page

  @spec generate_pages(maybe_improper_list, any) :: binary
  @spec generate_pages(maybe_improper_list, any, any) :: binary
  defdelegate generate_pages(pages, padding), to: Rapport.Page
  defdelegate generate_pages(pages, padding, page_number_opts), to: Rapport.Page

  @spec add_page_numbers(Rapport.Report.t()) :: Rapport.Report.t()
  @spec add_page_numbers(Rapport.Report.t(), atom, any) :: Rapport.Report.t()
  defdelegate add_page_numbers(report, page_number_position, formatter), to: Rapport.PageNumbering
  @spec add_page_numbers(Rapport.Report.t(), atom) :: Rapport.Report.t()
  defdelegate add_page_numbers(report, page_number_position), to: Rapport.PageNumbering
  defdelegate add_page_numbers(report), to: Rapport.PageNumbering

  @spec new(String.t(), map()) :: Rapport.Report.t()
  @doc """
  Creates a new report.


    EEx.eval_string(@base_template, assigns: assigns)
  end

  @spec save_to_file(Report.t(), binary) :: :ok
  @doc """
  Convenient function to save a report to file.

