wooio / htmltopdf-java

An HTML to PDF conversion library written in Java, based on wkhtmltopdf.
MIT License
173 stars 97 forks source link

Which exactly to use and how to run this #25

Open harishsundar opened 5 years ago

harishsundar commented 5 years ago

I created a java file and added the maven dependencies and I ran it as a java project . I got this error The method create() is undefined for the type HtmlToPdf HtmlToPdfObject cannot be resolved

How to resolve this and can anybody add how to run this?

mavyfaby commented 4 years ago

Just import the libraries and add the jar file to your CLASSPATH.

import io.woo.htmltopdf.HtmlToPdf;
import io.woo.htmltopdf.HtmlToPdfException;
import io.woo.htmltopdf.HtmlToPdfObject;