Skip to content

Commit

Permalink
Update pdf_generator.ex
Browse files Browse the repository at this point in the history
Add html_file to the returned value. 

Use case: someone wants to remove the html temporary file
  • Loading branch information
edipox authored Jul 16, 2016
1 parent bfe1e75 commit 9036ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdf_generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ defmodule PdfGenerator do
case status do
0 ->
case Keyword.get options, :open_password do
nil -> { :ok, pdf_file }
nil -> { :ok, pdf_file, html_file }
user_pw -> encrypt_pdf(
pdf_file,
user_pw,
Expand Down

0 comments on commit 9036ad2

Please sign in to comment.