Hi,
This is because the headings get an ID based on the heading text, which
is unique inside a document. Given that you are including more than one
document in the same pdf, the unique constraint is no longer satisfied.
This is a bug and should be reported on
http://jira.xwiki.org/
Sergiu
Raffaele Viola wrote:
Hi all,
I chenged in the file menuview.vm the row:
#submenuitem($doc.getURL("export", "format=pdf&$docvariant")
$msg.get("core.menu.export.pdf"))
in
#submenuitem($doc.getURL("export",
"format=pdf&includechilds=1&$docvariant")
$msg.get("core.menu.export.pdf"))
to include childs pages into PDF export but when I try to execute
export in PDF I get this exception
com.xpn.xwiki.XWikiException: Error number 12002 in 12: Exception while
exporting PDF
Wrapped Exception: org.apache.fop.fo.ValidationException: null:118:234:
Property id "HInventory" previously used; id values must be unique in
document.
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXMLFO(PdfExportImpl.java:194)
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java:134)
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:202)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:225)
at com.xpn.xwiki.web.ExportAction.exportPDFOrRTF(ExportAction.java:198)
It seems the validator has problems parsing the link in the text created
joining the parent with childs pages.
Thanks
raffo