为了生成 PDF,FOP 格式化程序需要知道文档中使用的字体,特别是使用的所有图符的宽度。
To lay out the PDF, the FOP formatter needs to know the details about the fonts to be used in the document, particularly the widths of all the glyphs used.
如果应用程序web页面以XHTML方式创建,那么您仍然可以使用HtmlUnit,因为XHTML拥有良好的格式化文档结构。
If an application Web page is constructed as XHTML, then you can still use HtmlUnit because XHTML will have a well formatted document structure.
关于第一类,仅仅在两个不同应用程序之间传送数据的XML文档根本不需要格式化信息。
Referring to the first category, XML documents that simply transfer data between two different applications usually don't need any formatting information at all.
应用推荐