Hi Prabal varshney
Sorry for the late reply. Actually there is a usb-printer demo example that supports the PJL and postscript for printers. You can find this example in the newest KSDK libraries (KSDK 2.0), You can build and download it in the next link:
Welcome to MCUXpresso | MCUXpresso Config Tools
After you unzip the package in your computer, the example is located in <SDK_2.0_FRDM-KL25Z_path>\boards\frdmkl25z\usb_examples\usb_host_printer_plain_text
Hope this information could help you
Best Regards
Jorge Alcala