call generate_pdf with lang_code arg