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
def set_info_key(self, key, val): return self._document.set_info_key(key, ustring(val))
def creator(self, creator): self._document.set_creator(ustring(creator))
def author(self, author): self._document.set_author(ustring(author))
def title(self, title): self._document.set_title(ustring(title))
def subject(self, subject): self._document.set_subject(ustring(subject))
def producer(self, producer): self._document.set_producer(ustring(producer))
def keywords(self, keywords): self._document.set_keywords(ustring(keywords))