boxable
boxable copied to clipboard
WARNING: ClosePath without initial MoveTo
When drawing a table, this warning appears very often in log: WARNING: ClosePath without initial MoveTo Also see here: #55
I already tried to remove all occurrencies of "tableContentStream.closePath()" of the class Table.java. If you remove this lines, the warning disappears and the PDF is OK.
Can you do this?
Regards
Can you provide some test case so I can quickly reproduce this? I am aware of #55 but there was some other case with
PDFRenderer renderer = new PDFRenderer(doc);
BufferedImage imPage = renderer.renderImage(0); //this is throwing warnings
that caused troubles and I would like to see your test case.
Its the same way to reproduce as #55. The logs appear when calling "renderer.renderImage(0)", but what if you remove the code lines tableContentStream.closePath() of your class Table.java?
Did you tried to make image like wiki said? https://github.com/dhorions/boxable/wiki#image
What do you mean, i don't want to add an image to pdf. I want to render the whole pdf AS image like this:
PDFRenderer renderer = new PDFRenderer(doc);
BufferedImage imPage = renderer.renderImage(0);
Wuopppps :smile: I didn't pay full attention :smile: Yeah, .closePath() method is redudant on more places in Table, TableCell classes and that needs to be fixed.
okok cool, i look forward to the fix :)
Hi, is a new version planned?