This is not a B4J tutorial but since it can be used also with B4J to print documents I post it here. Read the following links:
And to use CUPS to print documents through jShell in B4J read here:
openprinting.github.io
And to use CUPS to print documents through jShell in B4J read here:
OpenPrinting CUPS
