I see answers about getting the inline images from PDF with tika in Java, for example
Extract Images from PDF with Apache Tika
My question is whether it is possible to get inline images from pdf and store it as .png with python. I am using the tika-python package to call the tika server with the following code,
headers = {
'X-Tika-PDFextractInlineImages': 'true'
}
parsed = parser.from_buffer(file, headers=headers)
In the return there is X-TIKA:embedded_resource_path:["/image0.png", "/image1.jpg","/image2.png"]
in the meta_data, but how can I access these images?
Thanks!
question from:
https://stackoverflow.com/questions/65946010/extract-inline-image-from-pdf-with-tick-python 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…