How to get a landscape orientation for only some pages while converting html to pdf in itext 7?
问题 I convert HTML to PDF using iText7 with the convertToPDF() method of pdfHTML. I would like to change the page orientation for a few specific pages in my PDF document. The content of these pages is dynamic, and we cannot guess how many pages that should be in landscape (i.e. content of dynamic table could take more than one page) Current situation: I create a custom worker (implements ITagWorker ) which landscape the page that following the tag <landscape/> public byte[] generatePDF(String