Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/332.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在java中使用iText 7从HTML生成PDF数据以PDF格式垂直显示_Java_Html_Angularjs_Itext - Fatal编程技术网

在java中使用iText 7从HTML生成PDF数据以PDF格式垂直显示

在java中使用iText 7从HTML生成PDF数据以PDF格式垂直显示,java,html,angularjs,itext,Java,Html,Angularjs,Itext,使用java中的iText 7使用HTML文件创建pdf。PDF已成功下载,但垂直CSS显示的PDF中的数据未应用于PDF我不确定您在问什么。您能再解释一下吗?我使用java创建了一个HTML文件,并使用iText core 7将此HTML文件转换为PDF。生成PDF文件,但所有水平数据都显示在垂直列中 File pdfDest = new File("/home/user/Desktop/demo.pdf"); // pdfHTML specific cod

使用java中的iText 7使用HTML文件创建pdf。PDF已成功下载,但垂直CSS显示的PDF中的数据未应用于PDF

我不确定您在问什么。您能再解释一下吗?我使用java创建了一个HTML文件,并使用iText core 7将此HTML文件转换为PDF。生成PDF文件,但所有水平数据都显示在垂直列中
File pdfDest = new File("/home/user/Desktop/demo.pdf");
        // pdfHTML specific code
       ConverterProperties converterProperties = new ConverterProperties();
       HtmlConverter.convertToPdf(htmlFile, 
      new FileOutputStream(pdfDest), converterProperties);