diff --git a/Gemfile b/Gemfile index 281616aadc5..d334b2634f8 100644 --- a/Gemfile +++ b/Gemfile @@ -45,6 +45,8 @@ gem "parallel" gem "paranoia", "~> 2.2" # PDF Tools gem "pdf-forms" +# Used in Caseflow Dispatch +gem "pdfjs_viewer-rails", git: "https://github.com/senny/pdfjs_viewer-rails.git", ref: "a4249eacbf70175db63b57e9f364d0a9a79e2b43" #Used to build out PDF files on the backend #https://github.com/pdfkit/pdfkit gem "pdfkit" diff --git a/Gemfile.lock b/Gemfile.lock index a55605e8e50..710c4378d8d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -73,6 +73,15 @@ GIT rainbow selenium-webdriver +GIT + remote: https://github.com/senny/pdfjs_viewer-rails.git + revision: a4249eacbf70175db63b57e9f364d0a9a79e2b43 + ref: a4249eacbf70175db63b57e9f364d0a9a79e2b43 + specs: + pdfjs_viewer-rails (0.0.9) + rails (> 4.2.0) + sass-rails (~> 5.0) + GEM remote: https://rubygems.org/ specs: @@ -761,6 +770,7 @@ DEPENDENCIES parallel paranoia (~> 2.2) pdf-forms + pdfjs_viewer-rails! pdfkit pg pluck_to_hash diff --git a/config/routes.rb b/config/routes.rb index c1aa7f6045b..b3390b552a2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -368,6 +368,8 @@ get "tableau-login", to: "tableau_logins#login" + mount PdfjsViewer::Rails::Engine => "/pdfjs", as: 'pdfjs' + get "unauthorized" => "application#unauthorized" get "feedback" => "application#feedback"