I'm using an obsolete version of iText to create and merge documents. I use the abandoned HTMLWorker
class to parse some business related contents. I would then merge or concatenate an existing PDF file at the end of this document. In the resulting file, that extra file gets rotated and cut off. This happens many times but not always. How can I prevent this?
document.newPage();
PdfImportedPage page = pdfw.getImportedPage(reader, i+1);
pcb.addTemplate(page, 0,0);