From 4bdde88e1016282fa28ddc0a213d9db8dec23bea Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 15 Feb 2021 08:16:03 +0100 Subject: [PATCH] Documents: Fix pdf show in frames width/height BT#18393 --- main/document/showinframes.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main/document/showinframes.php b/main/document/showinframes.php index 31093e1ef8..fe299836ba 100755 --- a/main/document/showinframes.php +++ b/main/document/showinframes.php @@ -263,12 +263,17 @@ $file_url_web = $file_url.'?'.api_get_cidreq(); if ($show_web_odf) { echo '
'; $browser = api_get_navigator(); - $pdfUrl = api_get_path(WEB_LIBRARY_PATH).'javascript/ViewerJS/index.html#'.$file_url; + $pdfUrl = api_get_path(WEB_LIBRARY_PATH).'javascript/ViewerJS/index.html?zoom=page-width#'.$file_url; if ($browser['name'] == 'Mozilla' && preg_match('|.*\.pdf|i', $header_file)) { $pdfUrl = $file_url; } echo '
'; - echo ''; echo '
';