Itext 7 Split Paragraph
问题 How can I split a given paragraph to 2 paragraphs, due to that it fits only partial into canvas. After split, I would like to add the first part into canvas and the second to a new canvas. public Paragraph addParagraphToPage(PdfDocument pdfDocument, int pageNum, Rectangle rectangle, Paragraph p) { PdfPage page = pdfDocument.getPage(pageNum); PdfCanvas pdfCanvas = new PdfCanvas(page.newContentStreamAfter(), page.getResources(), pdfDocument); Canvas canvas = new Canvas(pdfCanvas, pdfDocument,