Squirrel wrote:
Hi,
I'm a kile (LaTeX) user myself. Out of curiosity, why should I want to create a PDF from a XWiki page over LaTeX? Am I missing something or can't I just create directly a PDF out of a XWiki page?
Well, LaTeX documents look sort of... professional. A PDF exported directly from XWiki looks OK, but just OK, not great.
On Sat, Jun 28, 2008 at 2:35 PM, Fabio Mancinelli < fabio.mancinelli@xwiki.com> wrote:
On 28 juin 08, at 13:18, Stéphane Laurière wrote:
Hi everyone,
For your information, I started coding a "Texifier", i.e. a tool that converts XWiki pages into a Tex file: http://playground.xwiki.org/xwiki/bin/view/Main/Texifier
It relies on WikiModel and was written mainly for generating PDF from XWiki pages using the power of pdflatex.
Comments welcome!
For the XMLRPC you could directly use the xwiki-xmlrpc-client module that provides wrappers so that you don't need to explicitly write code like
XmlRpcClient client = createXmlRpcClient(wikiUrl); String token = (String) client.execute("confluence1.login", new Object[] { username, password }); String[] pageNameData = getSpaceAndName(pageListDocumentFullName); Map page = (Map) client.execute("confluence1.getPage", new Object[] { token, pageNameData[0], pageNameData[1] }); String content = (String) page.get("content");
But you can do something more readable:
XWikiXmlRcpClient client = new XWikiXmlRpcClient(endpoint); client.login(userName, password); XWikiPage page = client.getPage(pageId); String content = page.getContent(); ...
-Fabio
-- Sergiu Dumitriu http://purl.org/net/sergiu/