From b59d92a591cb216b1d96f1b4730a924d966472d7 Mon Sep 17 00:00:00 2001 From: Masamitsu Ogura Date: Wed, 31 May 2023 11:01:12 +0900 Subject: [PATCH 1/2] allow PDF export options references - https://wiki.documentfoundation.org/ReleaseNotes/7.4 - https://vmiklos.hu/blog/pdf-convert-to.html --- lib/libreconv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libreconv.rb b/lib/libreconv.rb index da81a97..90c9c7e 100644 --- a/lib/libreconv.rb +++ b/lib/libreconv.rb @@ -113,7 +113,7 @@ def escaped_source_path # @return [String] def target_filename - File.basename(escaped_source_path, '.*') + '.' + File.basename(@convert_to, ':*') + File.basename(escaped_source_path, '.*') + '.' + @convert_to.split(':').first end # @raise [IOError] If soffice headless command line tool not found. From 28d280a5a9507793bd14a4f036bcf83e0aa76fb4 Mon Sep 17 00:00:00 2001 From: Masamitsu Ogura Date: Tue, 6 Jun 2023 21:52:19 +0900 Subject: [PATCH 2/2] change file-sample_100kB.doc url File Examples site url changed from https://file-examples.com/wp-content/uploads/ to https://file-examples.com/wp-content/storage/ . --- spec/libreconv/converter_convert_url_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/libreconv/converter_convert_url_spec.rb b/spec/libreconv/converter_convert_url_spec.rb index 48b1587..2da9690 100644 --- a/spec/libreconv/converter_convert_url_spec.rb +++ b/spec/libreconv/converter_convert_url_spec.rb @@ -23,7 +23,7 @@ end def stub_sample_url - url = 'http://file-examples.com/wp-content/uploads/2017/02/file-sample_100kB.doc' + url = 'http://file-examples.com/wp-content/storage/2017/02/file-sample_100kB.doc' redirection = url.sub(/^http:/i, 'https:') + '?a=a&b=b#c' stub_request(:head, url)