We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
there is a text "ERROR: Infinite table loop" in the last page of the pdf file, when a long text in the Cell and the Cell is higher than the Height
float[] widths = {100F}; PdfPTable table = new PdfPTable(1); table.setHorizontalAlignment(Element.ALIGN_LEFT); table.setTotalWidth(widths); table.setWidths(widths); table.setLockedWidth(true); PdfPCell cell; Font font = FontFactory.getFont("/Users/wensibudong/IdeaProjects/testcompare/src/main/resources/font/simsun.ttc,0", BaseFont.IDENTITY_H, true); cell = new PdfPCell(); cell.setFixedHeight(rotate.getHeight() - 20 + 1); cell.setPaddingTop(0); cell.setPaddingBottom(0); cell.setPaddingLeft(0); cell.setPaddingRight(0); cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setVerticalAlignment(Element.ALIGN_TOP); Paragraph phrase = new Paragraph(); phrase.setLeading(Float.NaN); phrase.setFont(font); String a = "13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记"; phrase.add(a); cell.getColumn().setLeading(0F, 1.2F); cell.getColumn().addText(phrase); table.addCell(cell);
I know that,if the fixHeight > pageSize,it will happened,this error tips will make me confused
(please complete the following information)
Pengfei Liu
The text was updated successfully, but these errors were encountered:
See: https://github.com/LibrePDF/OpenPDF/blob/master/openpdf/src/main/java/com/lowagie/text/pdf/PdfDocument.java#L2617
Sorry, something went wrong.
Seems related to #514 , but there it uses Table, not PdfPTable
Table
PdfPTable
No branches or pull requests
Describe the bug
there is a text "ERROR: Infinite table loop" in the last page of the pdf file, when a long text in the Cell and the Cell is higher than the Height
To Reproduce
float[] widths = {100F};
PdfPTable table = new PdfPTable(1);
table.setHorizontalAlignment(Element.ALIGN_LEFT);
table.setTotalWidth(widths);
table.setWidths(widths);
table.setLockedWidth(true);
PdfPCell cell;
Font font = FontFactory.getFont("/Users/wensibudong/IdeaProjects/testcompare/src/main/resources/font/simsun.ttc,0", BaseFont.IDENTITY_H, true);
cell = new PdfPCell();
cell.setFixedHeight(rotate.getHeight() - 20 + 1);
cell.setPaddingTop(0);
cell.setPaddingBottom(0);
cell.setPaddingLeft(0);
cell.setPaddingRight(0);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setVerticalAlignment(Element.ALIGN_TOP);
Paragraph phrase = new Paragraph();
phrase.setLeading(Float.NaN);
phrase.setFont(font);
String a = "13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记13、世事早已擦肩而过,我们又何必反复追忆,反复提起。是时候和昨天告别了,忘记一切,也原谅一切。是真的忘记";
phrase.add(a);
cell.getColumn().setLeading(0F, 1.2F);
cell.getColumn().addText(phrase);
table.addCell(cell);
Expected behavior
I know that,if the fixHeight > pageSize,it will happened,this error tips will make me confused
Screenshots
System
(please complete the following information)
Your real name
Pengfei Liu
Additional context
The text was updated successfully, but these errors were encountered: