# Configure Paper Settings

Learn how to configure the page settings through paper scaling and paper size for customized printing in DsExcel.

## Content

In DsExcel Java, you can use the methods of the [IPageSetup](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html) interface in order to configure paper settings for customized printing.
Configuring paper settings involves the following tasks:

1. [Configure Paper Scaling](/document-solutions/java-excel-api/docs/online/Features/ConfigurePrintSettingsviaPageSetup/ConfigurePaperSettings#configure-paper-scaling)
2. [Configure Paper Size](/document-solutions/java-excel-api/docs/online/Features/ConfigurePrintSettingsviaPageSetup/ConfigurePaperSettings#configure-paper-size)

## Configure Paper Scaling

You can use the [getIsPercentScale](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html#getIsPercentScale) method in order to control how to the spreadsheet is scaled; the [setIsPercentScale](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html#setIsPercentScale) method, the [setZoom](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html#setZoom) method and the [getPageSetup](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IWorksheet.html#getPageSetup) method in order to adjust the size of the paper that will be used for printing.

```Java
// Set paper scaling via percent scale
worksheet.getPageSetup().setIsPercentScale(true);
        
// Set paper scaling via zoom
worksheet.getPageSetup().setZoom(150);
        
// Set paper scaling via Fit to page's wide & tall
worksheet.getPageSetup().setIsPercentScale(false);
worksheet.getPageSetup().setFitToPagesWide(3);
worksheet.getPageSetup().setFitToPagesTall(4);
```

## Configure Paper Size

You can use the [getPageSetup](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IWorksheet.html#getPageSetup) method and [setPaperSize](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html#setPaperSize) method in order to set the paper size for the paper that will be used for printing.

```Java
// Set built-in paper size. Default is Letter Format - A4
worksheet.getPageSetup().setPaperSize(PaperSize.A4);
```