From 31eebb72aeaaa8990baea97991dce40398f5e22a Mon Sep 17 00:00:00 2001 From: Armand Bahi <armand.bahi@veremes.com> Date: Mon, 8 Apr 2019 15:37:59 +0200 Subject: [PATCH] bug syntaxe impressions --- src/vitis/vas/util/printserver/server/printtemplate.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vitis/vas/util/printserver/server/printtemplate.js b/src/vitis/vas/util/printserver/server/printtemplate.js index 5c92f889..572fdc3c 100755 --- a/src/vitis/vas/util/printserver/server/printtemplate.js +++ b/src/vitis/vas/util/printserver/server/printtemplate.js @@ -40,6 +40,7 @@ if (system.args.length < 1) { var sOrientation = system.args[8]; var sIncludes = system.args[9]; var sScope = system.args[10]; + var sQuality = system.args[11]; // Si sIncludes est un fichier if (fs.exists(sIncludes)) { @@ -60,7 +61,6 @@ if (system.args.length < 1) { } catch (e) { var oScope = {}; } - var sQuality = system.args[10]; // Orientation if (sOrientation === 'paysage') { @@ -93,7 +93,7 @@ if (system.args.length < 1) { console.log('Unable to load the sPrintClientURL, status:', status); phantom.exit(1); } else { - + // Bug PhantomJS 2.0: Sur linux les tailles sont mal définies page.evaluate(function (osName) { if (osName === 'linux') { @@ -103,7 +103,7 @@ if (system.args.length < 1) { /** * Render the target from page at the given quality - * @param {number} sQuality Specify 0 to obtain small compressed files, 100 for large + * @param {number} sQuality Specify 0 to obtain small compressed files, 100 for large * @param {string} sOutputFileName file name * @returns {boolean} */ @@ -161,4 +161,4 @@ if (system.args.length < 1) { }, printLoadTimeout); } }); -} \ No newline at end of file +} -- GitLab