Пример #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))