Skip to content

OdfEditableTextExtractor extracts only a last part of the text #251

@sergeych

Description

@sergeych

org.odftoolkit:odfdom-java:0.11.0

        val odt: OdfDocument = OdfTextDocument.loadDocument(file.toFile())
        println("creating extractor")
        val extractor = OdfEditableTextExtractor.newOdfEditableTextExtractor(odt)
        println("extractor is here.... $file")
        println("text:\n${extractor.text}")
        return extractor.text

EXtracts, strangley, the author field but not text. And if I constrict extractor agains "odt.rootElement" it will return the last paragraph. No idea how to get the actual text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions