Package javax.print.attribute

Examples of javax.print.attribute.AttributeSet


    }
   
    // Localiza todas as impressoras com suporte a impress�o de PDFs e com suporte a cores
    DocFlavor pdfFlavor = DocFlavor.BYTE_ARRAY.PDF;
   
    AttributeSet attributes = new HashAttributeSet();
    attributes.add(Chromaticity.COLOR);

    PrintService[] pdfPrinters = PrintServiceLookup.lookupPrintServices(pdfFlavor, attributes);
    for (int i = 0; i < pdfPrinters.length; i++) {
      System.out.println(pdfPrinters[i].getName());
    }
View Full Code Here

TOP

Related Classes of javax.print.attribute.AttributeSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.