Skip to content

How to find the nodes within a file #265

@arthur798

Description

@arthur798

So I have a code like that


    var text = await execPromise('pdftohtml -i -xml -stdout /tmp/test-sync');

    const parser = new DOMParser();
    let xmlDoc = parser.parseFromString(text,"text/xml");
    
    console.log(xmlDoc.getElementsByTagName(4))

now pdftohtml gives a nice xml with position of each line and the content of it but how do I access it within the dom parser?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions