printjs
Reactive icon

PrintJS

version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 11 May 2023
 by 
0.0
 (0 ratings)
printjs

PrintJS

Documentation
1.0.0

This component is a wrapper to the PrintJS library, so you can call it directly from Outsystems. There are two helper methods for simpler use, and one generic action with all options configurable:

  • PrintElement allows to quickly print a document, passing as input the URL or ID of the element to print, and it's type. If the type is not specified, PDF is used as default.
  • PrintSVG is a shortcut for the options to print an SVG, only the element ID of the SVG needs to be passed as input.
  • PrintJS is the action with the complete options, and will bypass the inputs from Outsystems to the JS library. The parameters are the same as in the JS library and you can find their descriptions in each parameter's descriptions, and in the JS library website.