How do I paint Swing Components to a PDF file with iText?

孤街醉人 提交于 2019-11-29 11:15:33

I have figured it out adding addNotify and validate helps.

    com.addNotify( );
    com.validate( );

I needed to call

com.addNotify()
com.setSize()
com.validate()

I don't know that much about iText, but... you did close the PdfWriter at some point, right?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!