Optimized memory usage in TextConverter by ignoring all drawing commands.

pull/1/head
Jonathan J Hunt 2011-03-07 15:11:31 +10:00
parent 4918d59bc2
commit ec682539da
1 changed files with 8 additions and 0 deletions

View File

@ -192,6 +192,14 @@ class TextConverter(PDFConverter):
self.write_text('\f')
return
# Some dummy functions to save memory/CPU when all that is wanted is text.
# This stops all the image and drawing ouput from being recorded and taking
# up RAM.
def render_image(self, name, stream):
pass
def paint_path(self, gstate, stroke, fill, evenodd, path):
pass
## HTMLConverter
##