Skip to content
New issue

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

Not compatible with OpenPDF 2.0.0 - Runtime error: NoSuchMethodError void fr.opensagres.poi.xwpf.converter.pdf.internal.elements.StylableDocumentSection$SectionPdfPTable.addCell #635

Open
henricook opened this issue Feb 19, 2024 · 1 comment

Comments

@henricook
Copy link

In OpenPDF 2.0.0 a method signature changed, which prevents it being used with xdocreport. This method now returns a cell instead of void:

[info]   java.lang.NoSuchMethodError: 'void fr.opensagres.poi.xwpf.converter.pdf.internal.elements.StylableDocumentSection$SectionPdfPTable.addCell(com.lowagie.text.pdf.PdfPCell)'
[info]   at fr.opensagres.poi.xwpf.converter.pdf.internal.elements.StylableDocumentSection.createLayoutTable(StylableDocumentSection.java:424)
[info]   at fr.opensagres.poi.xwpf.converter.pdf.internal.elements.StylableDocumentSection.createLayoutTable(StylableDocumentSection.java:401)
[info]   at fr.opensagres.poi.xwpf.converter.pdf.internal.elements.StylableDocument.setActiveMasterPage(StylableDocument.java:318)
[info]   at fr.opensagres.poi.xwpf.converter.pdf.internal.PdfMapper.setActiveMasterPage(PdfMapper.java:254)
[info]   at fr.opensagres.poi.xwpf.converter.pdf.internal.PdfMapper.setActiveMasterPage(PdfMapper.java:123)
[info]   at fr.opensagres.poi.xwpf.converter.core.MasterPageManager.fireSectionChanged(MasterPageManager.java:173)
[info]   at fr.opensagres.poi.xwpf.converter.core.MasterPageManager.initialize(MasterPageManager.java:102)
[info]   at fr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor.visitBodyElements(XWPFDocumentVisitor.java:249)
[info]   at fr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor.start(XWPFDocumentVisitor.java:216)
[info]   at fr.opensagres.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:57)
@henricook henricook changed the title Not compatible with OpenPDF 2.0.0 Not compatible with OpenPDF 2.0.0 - Runtime error: NoSuchMethodError void fr.opensagres.poi.xwpf.converter.pdf.internal.elements.StylableDocumentSection$SectionPdfPTable.addCell Feb 19, 2024
@angelozerr
Copy link
Member

Any PR are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants