生成 HTML 和 PDF
我正在考虑如何生成 PDF 和 HTML(一个网站)的大学报纸,其中每条新闻都包含图片,并且想知道是否有任何工具可以声明性地解决这个问题,以便没有经验的用户可以准备结构化的数据(文本+图片)并自行输出 PDF 和网站,无需程序员干预。我怀疑它可能是某种 XSL-FO、XML 编辑/处理软件。
PS 免费工具将是最好的解决方案。
谢谢。
I'm thinking of the way I'd generate a university newspaper both in PDF and HTML (a website) where every news would contain picture(s) and wonder if there any tools to approach this problem declaratively so that unexperienced users would prepare structured data (text + pictures) and get PDF and website on output on their own with no programmers' intervention. I suspect it can be some sort of XSL-FO, XML editing/processing software.
P. S. A free tool(s) would be a best solution.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
为此,一个非常好的方法是使用 DocBook
编写您的文章,而不是让工具生成您需要的 HTML 和 PDF - 只需对您这边输出的外观和感觉进行一些调整。
对于 DocBook,有许多可用的工具,但一个非常好的免费开源和学术工具是 XMLMind
如果你的文章偏技术性,那么DocBook就是准标准(甚至很多像O'Reilly这样的出版社都用它)
当然,在“纯”学术领域, LaTex 是相当标准的(并且允许以分配的格式输出),但需要相当多的分配来学习它,并且没有真正的所见即所得工具来撰写文章。如果您也打算将文章发送给一些研究论文,那么他们非常乐意接受您的 LaTex 输入。
For this, a very good approach would be to use DocBook
to write your articles, than let the tools generate HTML and PDFs you need - with just some tuning of the look and feel output from your side.
For DocBook there are many available tools, but a very good one that is free for open source and academics is XMLMind
If your articles are more technical oriented, than DocBook is the quasi-standard (even many publishing houses like O'Reilly use it)
Of course, in the "pure" academics domain, LaTex is quite the standard (and allows to have output in allot of formats), but requires quite allot to learn it, and there are no true WYSIWYG tools to write the articles. If you intend to send the articles to some research papers too, than they are very glad to accept your LaTex input.
我们(斯旺西大学)在我们的实例中使用了内容管理系统来实现这一目标 - DotNetNuke。
我们想要多页的时事通讯,其中包含时事通讯的摘要,然后单击更多内容以获取更完整的文章。内容管理系统允许普通用户使用该软件构建新闻通讯,他们只需每月创建一个新的子站点。
我们通过电子邮件发送了时事通讯,我们只是从主页获取 html 并将其发送到分发列表。
值得考虑的事情 - 成本 = £0
we (swansea University) used a content management system to achive this - DotNetNuke in our instance.
We wanted multipage newletter where a summary on the newletter and click more for the fuller article. The content management system allowed normal users to use the software to construct the newletter, they simple created a new child site every month.
We had the newletter emailed out, we we simply grabbed the html from the main page and sent to a distribution list.
Something worth considering - cost = £0
最明显的方法是生成 XML 格式的所有内容,然后使用用于 PDF 的商业 XSL-FO 处理器或 apache FOP 来生成 PDF,然后使用任何 XSL 处理器来生成 html。
The obvious way of doing it would be to generate all your content in XML, then use either a commercial XSL-FO processor for PDF, or apache FOP to generate the PDF, and whatever your XSL processor is to generate the html.
与西蒙·汤普森的答案非常相似:
您可以使用 Drupal 和 其打印模块。
Very similar to Simon Thompson's answer:
You can use Drupal and its print module.