简体   繁体   中英

Why I can not find reference to iText document?

I added the itextpdf-5.5.4 jar file in my project but still I cant not find reference to the methods of the library.

getContentPane().add(tPanel, BorderLayout.CENTER);
Document d = new Document();

I can only find reference to the Document class of javax.swing.text .

添加了itext jar文件

I have solved the issue. I had javax.swing.text. imported. After I cleaned unused imports and the try to import itext it worked.

I think the reason is javax.swing.text has document class implemented that's why it was showing that class and preventing me form importing anything for the same class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM