Esempio n. 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
Esempio n. 2
0
 def set_info_key(self, key, val):
     return self._document.set_info_key(key, ustring(val))
Esempio n. 3
0
 def creator(self, creator):
     self._document.set_creator(ustring(creator))
Esempio n. 4
0
 def author(self, author):
     self._document.set_author(ustring(author))
Esempio n. 5
0
 def title(self, title):
     self._document.set_title(ustring(title))
Esempio n. 6
0
 def subject(self, subject):
     self._document.set_subject(ustring(subject))
Esempio n. 7
0
 def producer(self, producer):
     self._document.set_producer(ustring(producer))
Esempio n. 8
0
 def keywords(self, keywords):
     self._document.set_keywords(ustring(keywords))