def __init__(self): FPDF.__init__(self) HTMLMixin.__init__(self) self.add_font('DejaVu', '', 'DejaVuSerif.ttf', uni=True) self.add_font('DejaVu', 'B', 'DejaVuSerif-Bold.ttf', uni=True) self.add_font('DejaVu', 'I', 'DejaVuSerif-Italic.ttf', uni=True) self.set_font('DejaVu', '', 15)
def __init__(self, outdir: str = ".") -> None: FPDF.__init__(self) HTMLMixin.__init__(self) self.logger = logging.getLogger(__name__) self.active_fields = None self.active_fileobject = None self.active_pdf = None self.anchor_element = None self.fileobjects = {} self.modified_reader = None self.rpa_pdf_document = None self.set_output_directory(outdir) listener = RobotLogListener() listener.register_protected_keywords(["RPA.PDF.decrypt"])