(Disclaimer: I am new to Java and also, I have read the related SO question.)
I have the following code:
import org.apache.pdfbox.pdmodel.*;
...
PDFont font = PDType1Font.HELVETICA_BOLD;
But the PDFont
class is not recognized in Eclipse.
When I add the following:
import org.apache.pdfbox.pdmodel.font.PDFont;
The PDFont
class is picked up.
Given that the PDFont
class is located under the hierarchy specified in the first import statement ending with the asterisk, why is a specific import statement necessary?
Also, is there a way to search for the location of a class in a library if one doesn't have the documentation handy?