Changeset 465:224aad394350 in documentViewer for MpdlXmlTextServer.py


Ignore:
Timestamp:
Jul 29, 2011, 6:36:04 PM (13 years ago)
Author:
casties
Branch:
elementtree
Message:

really works with new getDocinfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r458 r465  
    261261                    docinfo['numTextPages'] = np
    262262                    if docinfo.get('numPages', 0) == 0:
    263                         # seems to be text-only
    264                         docinfo['numTextPages'] = np
     263                        # seems to be text-only - update page count
     264                        docinfo['numPages'] = np
    265265                        pageinfo['end'] = min(pageinfo['end'], np)
    266266                        pageinfo['numgroups'] = int(np / pageinfo['groupsize'])
Note: See TracChangeset for help on using the changeset viewer.