C Carlos Mojica Member Aug 17, 2023 #1 is it posible to convert an excel file to pdf fit it in 1 page?, how?
C Carlos Mojica Member Aug 19, 2023 #2 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
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);