Printing PDF documents with ScriptX.Services
Enhanced PDF working, a paid-for ScriptX.Add-on licensing option, is now available FREE for ScriptX.Services.
Enhanced PDF working enables organisations to print PDF documents with a high degree of programmatic control. v2.8 of ScriptX.Services includes support for controlling the printing of PDF documents from script on a web page viewed in any modern browser on any device to the user's local printer (ScriptX.Services for Windows PC), to a printer attached to an intranet server (ScriptX.Services for On-premise Devices), or even to our free Cloud service (ScriptX.Services for Cloud) which will return either PDF or Microsoft XPS files.
PDF documents are referred to by URL, so can be located on the same server or anywhere else accessible from the ScriptX server on an intranet or the internet.
Device settings that can be specified in your code include:
- printer name
- paper size and source
- duplex printing
- number of copies.
Print settings that can be controlled include:
- page range
- page scaling
- print quality.
Users can select options from a UI that you control or printing can be promptless with settings defined in code.
We have also created an emulation library ScriptX.Print.Client for existing ScriptX.Add-on licensees. Simply by adding a reference to this library to your pages, most existing PDF printing code will work seamlessly in pages viewed in any modern browser. Used in conjunction with our ScriptXJS wrapper library the same PDF printing code and rich functionality will work for both Internet Explorer/ScriptX.Add-on users and users of other modern browsers accessing ScriptX.Services. For more details on adapting existing code for use with ScriptX.Services see here.
Alternatively the ScriptX.Services API can be called directly from your code to print PDF documents, to monitor job status, and to download output files when printing to a PDF or XPS printer driver. API details and sample code for using the API can be found here.
Our samples site includes examples of PDF printing using either ScriptX.Add-on or ScriptX.Services, as well as demonstrating how the same code can be used to work with both variants.
Licensing options and pricing for ScriptX.Services can be viewed here.