将PDF文件转换为单个HTML文件 [英] Convert PDF file to a single HTML file
问题描述
我试图将PDF文档转换为java中的单个HTML文件。大多数转换器在线将一个PDF文件转换为多个HTML文件。我想将整个PDF转换为一个HTML文件。
I am trying to convert a PDF document to a single HTML file in java. Most of the converters online converts one PDF file to multiple HTML files. I want to convert the whole PDF to a single HTML file.
有什么建议吗?
Any suggestions?
推荐答案
有什么建议吗?
您可能总是使用 JSoup API来编写一个包含多个HTML文件中的每一个的 body
的单个文档。组合样式和样式表(CSS)可能会有点棘手(特别是如果原始HTML使用'id'元素)。
You might always write some code using the JSoup API to write a single document that incorporates the body
of each of the multiple HTML files. Combining styles & style-sheets (CSS) might be a bit more tricky (especially if the original HTML uses 'id' elements).
虽然我发现很难相信有一个转换器,其中'单个文档'是一个选项。我建议进一步搜索。
Though I find it hard to believe there is not a converter out there in which 'single document' is an option. I recommend searching further.
这篇关于将PDF文件转换为单个HTML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!