FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

scs-print

v1.0.0 Public

scs-print

Master Branch Build Status

A Module to help send jobs to the scs-print-api

How to Install this module

From a terminal or CML interface

box install scs-print

How to Configure your module

Your ModuleConfig.cfc. will have by default this initial fake settings. Override them in the ColdBox.cfc settings.

Default ModuleConfig.cfc

settings = {
            apiUrl = "http:fakesite.com"
        };

And then if you use this app, you’d have something like this in your Coldbox.cfc or whatever… Override default ModuleConfig.cfc with your own settings for where the scs-print-api lives.

settings = {
    'scs-print' = {
        settings = {
            apiUrl = "http://[your domain]/print"
        }
    }
};

How to Use and implement your module

instanctiate your model, and the use the functions available on your controller or any other place

    property name="scs-print" inject="coldbox:setting: scs-print";

to use it

scs-print-api.scsPrint(printer = [printer], fullPath = [fullPathToFIle]);

Here are additional parameters with their default values (but are not required.)

required string printer,
required string fullPath,
numeric copies = 1,
string layout = "portrait",
numeric scale = 100

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
1.0.0 Jul 22 2019 04:26 PM Jul 22 2019 04:26 PM

 

No collaborators yet.
     
  • Jul 22 2019 04:26 PM
  • Jul 22 2019 04:26 PM
  • 76
  • 0
  • 4