Home > other >  Have a great god know pdfminer LTFigure object's content in how to come out
Have a great god know pdfminer LTFigure object's content in how to come out

Time:09-16

Have a great god know pdfminer LTFigure object content in just how out of a
Official website that the code also error lt_obj. Objs no objs object
Def parse_lt_objs (lt_objs, page_number images_folder, text=[]) :
"" "Iterate through the list of LT * objects and capture the text or image data contained in each "" "
Text_content=[]
For lt_obj lt_objs in:
If isinstance (lt_obj LTFigure) :
# LTFigure objects are containers for other LT * objects, so recurse through the children
Text_content. Append (parse_lt_objs (lt_obj objs, page_number, images_folder, text_content))
Return '\ n'. Join (text_content)

  • Related