示例#1
0
 def search(self,
            text,
            r,
            direction,
            case_sensitivity,
            rotation=Rotation.rotate_0):
     utext = global_.ustring(text)
     found, found_rect = self._page.search(utext, r._rect, direction,
                                           case_sensitivity, rotation)
     if found:
         return Rectangle.from_object(found_rect)
     return None
示例#2
0
 def set_info_key(self, key, val):
     return self._document.set_info_key(key, ustring(val))
示例#3
0
 def creator(self, creator):
     self._document.set_creator(ustring(creator))
示例#4
0
 def author(self, author):
     self._document.set_author(ustring(author))
示例#5
0
 def title(self, title):
     self._document.set_title(ustring(title))
示例#6
0
 def subject(self, subject):
     self._document.set_subject(ustring(subject))
示例#7
0
 def producer(self, producer):
     self._document.set_producer(ustring(producer))
示例#8
0
 def keywords(self, keywords):
     self._document.set_keywords(ustring(keywords))