Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to find the nodes within a file #265

Open
arthur798 opened this issue Jul 20, 2020 · 0 comments
Open

How to find the nodes within a file #265

arthur798 opened this issue Jul 20, 2020 · 0 comments

Comments

@arthur798
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant