Project README states that exiftools is required for the functionality of changing PDF metadata, but turned out that it's always required if source HTML contains title tag:
|
meta(extract_metadata_from_body(compiler.body)) |
it might be inconvenient for the cases when consumer don't care about the metadata, and, additionaly might require additional setup for the environments like Heroku (additional buildpack, etc)
What if we make metadata extraction optional, something like
def html index, extract_metadata: true
compiler = Compiler.new(index)
meta(extract_metadata_from_body(compiler.body)) if extract_metadata
files << multipart_file(compiler.body, 'index.html', 'text/html')
assets *compiler.assets
@endpoint = '/forms/chromium/convert/html'
self
end
Project README states that
exiftoolsis required for the functionality of changing PDF metadata, but turned out that it's always required if source HTML containstitletag:gotenberg-ruby/lib/gotenberg/chromium/tools.rb
Line 32 in 1700050
it might be inconvenient for the cases when consumer don't care about the metadata, and, additionaly might require additional setup for the environments like Heroku (additional buildpack, etc)
What if we make metadata extraction optional, something like