title: How to set custom paper size DocPrintJob in Java?
body: <p>I am working on project, which is used to generate and print the labels. I just want to set the custom page width and height (Page width is higher than page height). Can you please guide me how to achieve this?</p>
  
  <p>Thanks!</p>