Android Question excel.PowerShellConvertToPdf to 1 page

Searching I found that each sheet should be adjusted and save the file before use PowerShellConvertToPdf

in line java:
Sheet sheet = wb.getSheetAt(sheetnumber);
PrintSetup ps = sheet.getPrintSetup();
sheet.setFitToPage(true);
sheet.setAutobreaks(true);
ps.setFitWidth((short) 1);
ps.setFitHeight((short) 1);
 
Upvote 0
Top