bug修复
This commit is contained in:
@@ -131,15 +131,15 @@ public class PdfUtils {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
public static void main(String [] args) {
|
||||
try {
|
||||
|
||||
String pdfFile = "D:\\test2.pdf";
|
||||
String pdfFile = "D:\\test13.pdf";
|
||||
String htmlContent1 = "<h1>夫士大夫士大夫发</h1><p>会见韩国机构行家</p ><h2>地方鬼地方鬼地方三个广泛的</h2>";
|
||||
String htmlContent = "<html><body style=\"font-size:12.0pt; font-family:宋体\">" + "<h1>夫士大夫士大夫发</h1><p>会见韩国机构行家</p ><h2>地方鬼地方鬼地方三个广泛的</h2></body></html>";
|
||||
String htmlContent2 = "<html><body >" + "<h1>夫士大夫士大夫发</h1><p>会见韩国机构行家</p ><h2>地方鬼地方鬼地方三个广泛的</h2></body></html>";
|
||||
String htmlContent2 = "<html><body style=\\\"font-size:12.0pt; font-family:宋体\\\"><h1>夫士大夫士大夫发</h1><p>会见韩国机构行家</p ><h2>地方鬼地方鬼地方三个广泛的</h2></body></html>";
|
||||
|
||||
htmlStringConvertToPDF(pdfFile,htmlContent);
|
||||
htmlStringConvertToPDF(pdfFile,htmlContent2);
|
||||
// parseHtml2PdfByFilePath(pdfFile,htmlFile);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user