Mercurial > hg > documentViewer
changeset 385:7a6a2e4476eb
*** empty log message ***
author | abukhman |
---|---|
date | Tue, 26 Oct 2010 18:47:20 +0200 |
parents | 4ec393062711 |
children | 48d27e100d19 |
files | MpdlXmlTextServer.py |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/MpdlXmlTextServer.py Tue Oct 26 16:44:55 2010 +0200 +++ b/MpdlXmlTextServer.py Tue Oct 26 18:47:20 2010 +0200 @@ -178,6 +178,18 @@ logging.debug("getALLGisPlaces :%s"%(myList)) return myList + + def getPDF (self, docinfo=None, pageinfo=None): + """Show and Save different Pages as PDF in Options""" + selfurl=self.absolute_url() + pn=pageinfo['current'] + viewmode =pageinfo['viewMode'] + text = self.getServerData("page-fragment.xql", "document=%s&mode=%s&pn=%s&export=%s"(docinfo['textURLPath'],mode, pn,'pdf')) + dom =Parse(text) + logging.debug("dom :%s"%(dom)) + return dom + + def getOrigPages (self, docinfo=None, pageinfo=None): """Show original page """ docpath = docinfo['textURLPath']