문제

When I try to read an HTML file (using HTMLWorker.parseToList) and create a PDF document using document.add(element) the resulting page is getting resized. The initially set page size is getting overridden, it appears the page is resizing itself to fit the incoming component. I am wondering is there any way we can control this? I noticed that there is no scaletofit avaialable for PdfPTable. How do you resize a PdfPTable?

도움이 되었습니까?

해결책

I think I have to withdraw this question as I am seeing the library working correct nof. I was confused on A4 vs Letter size. "A4 and US letter size are very similar in size and can be used in the same way. A4 size is thinner and longer than US letter size US letter size is wider and shorter than A4 size"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top