Skip to content

Commit 63642eb

Browse files
committed
Merge pull request documentcloud#104 from serene/master
Add office search path to check vendor folder for use with Heroku and libreoffice buildpack
2 parents cac1e39 + 4f0ba57 commit 63642eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/docsplit/pdf_extractor.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,15 @@ def office_search_paths
5252
/Applications/OpenOffice.org.app/Contents
5353
)
5454
else # probably linux/unix
55+
# heroku libreoffice buildpack: https://github.com/rishihahs/heroku-buildpack-libreoffice
5556
search_paths = %w(
5657
/usr/lib/libreoffice
5758
/usr/lib64/libreoffice
5859
/opt/libreoffice
5960
/usr/lib/openoffice
6061
/usr/lib64/openoffice
6162
/opt/openoffice.org3
63+
/app/vendor/libreoffice
6264
)
6365
end
6466
search_paths

0 commit comments

Comments
 (0)