Javascript libraries for interacting with MeadCo's ScriptX.Print.Server APIs
Clone or download

MeadCo ScriptX Service Client Library

The MeadCo ScriptX Service Client Library brings an emulation of MeadCo's ScriptX Add-on for Internet Explorer on Windows to working with MeadCo ScriptX Services in any browser on any device and where-ever the service may be:

  • in the cloud
  • an on premise server
  • services on a Microsoft Windows PC

In combination with the MeadCoScriptXJS library the emulation provides significant levels of compatibility with in-browser script written for the Add-on so allowing the same code to run with either the Add-on for Internet Explorer or ScriptX Services depending on the client device. It may also be used 'stand-alone' although the code is not very modern due to the requirement to support older versions of Internet Explorer.

The library is used by our extensive set of samples.

Current Version




npm install scriptxprint-html --save


For the complete library supporting Cloud, On Premise and Windows PC services:

<script src=""></script>

Or, for print only to cloud/on premise services,

<script src=""></script>

Distribution packages

Some minimised collections are provided:

Name Purpose
meadco-scriptxservicesprint.min.js All core modules print including window.factory emulation. No UI modules are included nor support for licensing for ScriptX Services on Windows PC.
meadco-scriptxservicesprintUI.min.js As above but includes Page and Print setup UI dialogs.
meadco-scriptxservices.min.js All modules including window.factory and window.secmgr emulation to support licensing for ScriptX Services on Windows PC. No UI modules are included.
meadco-scriptxservicesUI.min.js As above but includes Page and Print setup UI dialogs.
meadco-scriptxserviceslicensing.min.js window.secmgr emulation support for licensing for ScriptX Services on Windows PC.

Nuget Gallery

MeadCo ScriptX.Print Services Library

Quick start - ScriptX.Services on Cloud for any browser

  1. Link to the required libraries with service connection details
  2. Initialise the library
  3. Initilise print parameters

The same code will work when the Add-on is present, but the add-on will be used in preference.

A promise polyfill is required if the browser does not support promises (for example Internet Explorer). We recommend (and test with) Promise Polyfill

<!-- MeadCoScriptXJS Library -->
<script src=""></script>

<!-- ScriptX Services client emulation libraries - depend on jQuery -->
<script src=""></script>

<script src="" 

<!-- A promise library will be required if targetting IE. -->
<script type="text/javascript">
   $(window).on('load', function () {
     MeadCo.ScriptX.InitAsync().then(function {
       MeadCo.ScriptX.Printing.header = 
          "MeadCo's ScriptX&b:&p of &P:&bBasic Printing Sample";
       MeadCo.ScriptX.Printing.footer = 
          "The de facto standard for advanced web-based printing";
       MeadCo.ScriptX.Printing.orientation = "landscape";
       $("#btnprint").click(function() { 


Released under the MIT license.

Copyright (c) 2017, Mead & Co Limited.