如何制作一个使用用户输入生成 .doc(x)/.pdf 文档/w 脚注的网页?

发布于 2024-08-13 21:19:18 字数 294 浏览 5 评论 0原文

我想创建一个网站/网络应用程序来帮助用户翻译外文文本。用户将上传/复制&将文本粘贴到一列中,然后在第二列中输入翻译。用户可以添加有关某些单词的注释的功能,这样当他们将鼠标悬停在该单词上时,就会出现带有注释的弹出窗口。
问题是,我希望他们能够下载他们对某种 Word 文档(doc、docx、odt、pdf)所做的操作,以便他们在一侧看到文本、翻译另一方面,注释在文本出现的页面上显示为脚注。
所以我只需要一些指导。我有 html、css、javascript、php 经验。我想我可以自己解决所有问题,我只需要知道“生成word文档”部分是否合理?

I want to create a website/webapp to aid users in making translations of foreign texts. The user would upload/copy & paste a text in one collumn, type in a translation on a second collumn. There would be a feature for the user to add notes about certain words, in such a way that when they hover over the word a popup appears with their notes.
The thing is, I want them to be able to download what they have done to some sort of word document, (doc, docx, odt, pdf) in such a way that they see the text on one side, the translation on the other, and notes appear as footnotes on the pages the text appears.
So I just need some guidance. I have experiance with html, css, javascript, php. I think I can get everything figured out myself, I just need to know if the 'generate word document' part is plausible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

情深缘浅 2024-08-20 21:19:18

您确实可以使用 ASP.Net 生成 Word 文档。这是一个流行的网站功能。

这里有两篇文章告诉您如何逐步执行此操作:

来自 ASP 的 Microsoft Word 文档.NET

使用 HTML 在 ASP.NET 中动态生成 W​​ord 文档报告

您还可以生成 轻松创建 PDF 文档

在 ASP.NET 中创建 PDF 文档

我建议您从简单的开始,然后逐渐增加复杂性。您可以随时通过 Google 获取更多信息,或者访问 StackOverflow。这里有用的标签包括“pdf- Generation”。

You sure can generate Word documents with ASP.Net. That's a popular website feature.

Here's two articles telling you how to do it step-by-step:

Microsoft Word Documents from ASP.NET

Dynamic Generation of Word Document Report in ASP.NET with HTML

You can also generate PDF documents easily:

Creating PDF documents in ASP.NET

I would recommend that you start out simple, and add complexity as you go. You'll be able to Google for more information as you go, or come to StackOverflow. Among the useful tags here would be "pdf-generation".

往事风中埋 2024-08-20 21:19:18

要生成 PDF,您可能需要查看 LaTeX

For generating PDFs, you might want to check out LaTeX

梦中楼上月下 2024-08-20 21:19:18

使用任何语言生成 PDF 都非常容易,并且大多数语言都有一个易于使用的库,这是为 PHP 找到的一个可以帮助您的库: 链接文本

生成 Microsoft 兼容的 Word 文档需要更多工作。为此,我建议研究 OpenOffice 并使用其 API,甚至通过命令行来创建与 Microsoft 工作兼容的 .doc 文档。

Generating PDFs is pretty easy from any language and most languages have an easy to use library Here is one a found for PHP that will help you: link text

Generating Microsoft compatible word docs is a bit more work. For this I would recommend looking into OpenOffice and using its APIs or even via the command line to create .doc documents that are compatible with Microsoft work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文