I am trying to create a new pdf document using a java program using the pdfbox API, but
Exception in thread "main"
java.lang.NoClassDefFoundError:org/apache/commons/logging/LogFactory
Every time I am facing same error. I have already added external jar file to classpath, It is also showing that the drawString
method of PDPageContentStream
object is deprecated.
What could be the problem with this?