Commit 1570720f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix OOoDocument_print so as to return the same result as '?format=pdf'.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28927 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f6568f52
......@@ -59,9 +59,7 @@ so this is what we return.\n
"""\n
\n
request = context.REQUEST\n
request.RESPONSE.setHeader(\'Content-type\', \'application/x-pdf\')\n
request.RESPONSE.setHeader(\'Content-disposition\', \'attachment; filename="%s"\' % context.title_or_id())\n
return context.getTargetFile(\'pdf\')\n
return context.index_html(request, request.RESPONSE, format=\'pdf\')\n
</string> </value>
</item>
<item>
......
1019
\ No newline at end of file
1020
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment