I was wondering how it is possible to get the default printer attribute setting using PrintServiceAttributeSet . For example before printing from a printer i need to know the current printer attribute setting like simplex or duplex setting. Based on that return value I need to set the printer to the new attribute setting. Can anyone help me out. Is it possible to get some sample code to get and set this attributes.