Resize Pages of PDF
You can to Resize Pages of PDF documents using the The PDF Manager class. After creating an ResizeOptions, you can set a desired page size and execute the resizing process. The result PDF will reflect the new dimensions, ensuring it fits specific requirements.
Resize PDF
To resize a PDF document, the ResizeOptions class is used to specify the new page size for the document.
- Create a ResizeOptions object to define the page size.
- Add the input file and set the desired output location.
- Use the SetPageSize method to specify the new size (e.g., A4).
- Run the
Resizemethod ofPdfManager.
1// Create ResizeOptions object to set instructions
2var options = new ResizeOptions();
3// Set new PageSize
4options.PageSize = PageSize.A3;
5// Add input file path
6options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
7// Set output file path
8options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
9// Perform the process
10PdfManager.Resize(options);Key Features:
- Resizing: Resize pages to specific dimensions (e.g., A4, Letter).