go-fitz icon indicating copy to clipboard operation
go-fitz copied to clipboard

It is fail to extract text from pptx

Open helios741 opened this issue 1 year ago • 4 comments

I have a requirement that extract text from pptx and i need CJK font. I use extlib tag to build, but I got "cannot open document" error when i use go-fitz.

p, err := fitz.New(filePath)

Every PPT get same error, please how can i handle it?

helios741 avatar Dec 20 '24 07:12 helios741

The support is added in 1.24.0, so check your external library version.

gen2brain avatar Dec 20 '24 10:12 gen2brain

@gen2brain yes, I use 1.24.14, the musl tag is ok but extlib is not work

helios741 avatar Dec 23 '24 02:12 helios741

I'm sorry. Can you provide some examples with output? I'm not sure I can follow. What do you do, and what is the output?

gen2brain avatar Dec 23 '24 14:12 gen2brain

And make sure you are trying with .pptx, i.e. XML format, and not with old .ppt.

gen2brain avatar Dec 26 '24 04:12 gen2brain