Hi,
There are two bugs here:
1) The PdfURLFactory does not properly escape all the contents
2) The ZipExplorer plugin does not work when exporting PDFs
While 1) could be easy to fix, I don't know if we can fix 2) that
easily. Maybe if we check the URL in zipexplorer.getFileLink and if we
detect that it is an export, we can extract the file to that path and
make sure the file is deleted after the page is generated.
Can you make two bug reports on
http://jira.xwiki.org/ ?
Sergiu
Raffaele Viola wrote:
Hi all,
im using this macro to include HTML file into my page
#macro(displayppt $zipname $htmlname)
#set ($url = $xwiki.zipexplorer.getFileLink($doc, "$zipname",
"$htmlname"))
<iframe src="$url" frameborder="0" scrolling="0"
width="800"
height="600"></iframe>
#end
It works but when I try to export my page in PDF the generated PDF
doesn't contains the included file and in the console appears something
like Warning: <iframe> escaping malformed URI reference.
the URI
/xwiki/bin/download/Discussione/MasterPlan/Piano%20Principale.zip/Piano
Principale.htm
is traslated in:
file:/C:/workspace%2Dxwiki/apache%2Dtomcat%2D5.5.25/work/Catalina/localhost/xwiki/h5khbL0n/
Discussione.MasterPlan.Piano Principale.zip/Piano Principale.htm
Regards
Raffo