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

document:null error #37

Open
zharenkov opened this issue May 29, 2019 · 0 comments
Open

document:null error #37

zharenkov opened this issue May 29, 2019 · 0 comments

Comments

@zharenkov
Copy link

Hi,
I'm trying to run DOM creation, as in example on sourceforge project page, but in result my Document object doesn't have any DOM.

        PDDocument pdDocument = PDDocument.load(new FileInputStream(new File(ClassLoader.getSystemClassLoader().getResource("tst.pdf").getFile())));
        PDFDomTree tree = new PDFDomTree(PDFDomTreeConfig.createDefaultConfig());
        Document d = tree.createDOM(pdDocument);
        System.out.println(d);

The output is

[#document: null]

What i'm doing wrong?

Thanks.

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