Skip to content

Commit

Permalink
Move option documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
crespire committed Aug 22, 2023
1 parent 6aeac26 commit 511afae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ class ThingsController < ApplicationController
disable_toc_links: true,
disable_back_links:true,
xsl_style_sheet: 'file.xsl'}, # optional XSLT stylesheet to use for styling table of contents
progress: proc { |output| puts output } # proc called when console output changes
progress: proc { |output| puts output }, # proc called when console output changes
delete_temporary_files: true # explicitly delete temporary files, default false
end
end
end
Expand Down Expand Up @@ -287,9 +288,6 @@ If you need to just create a pdf and not display it:
# create a pdf from a string
pdf = WickedPdf.new.pdf_from_string('<h1>Hello There!</h1>')

# create a pdf from a string using delete temporary files option
pdf = WickedPdf.new.pdf_from_string('<h1>Delete temporary files</h1>', delete_temporary_files: true)

# create a pdf file from a html file without converting it to string
# Path must be absolute path
pdf = WickedPdf.new.pdf_from_html_file('/your/absolute/path/here')
Expand Down

0 comments on commit 511afae

Please sign in to comment.