可转换为 PDF 的动态网页

发布于 2024-10-21 03:06:44 字数 448 浏览 1 评论 0原文

我正在考虑编写一个易于更新的专业简历页面,使用一个简单的后端来添加信息和可选细节块,并且......(功能即将到来)

无论如何,我正在考虑一个“简单”的网络页面以图形方式显示,无论是否使用浏览器功能,都可以轻松转换为 PDF 文件。

假设该页面有一些文本块,您必须单击按钮才能看到(这些是可选的详细信息),我应该知道什么或应该使用什么工具来编写此网页?

我对网络代码完全生疏了,我以前经常使用没有ajax的php,但我理解这个想法。我在想也许这是一个尝试框架来制作“webapp”的好机会,比如 Ruby+ROR 或 Python+Django?这是个好主意吗?我已经准备好了解这些,只是不确定这样的项目是否值得。

我是否应该了解一些关于 html 代码或 javascript 行为的信息,但我不应该使用这些信息,因为它会破坏任何 PDF 生成工具或类似的工具?

关于继续进行的任何建议都会有所帮助。

I'm thinking about writing a professional CV page that would be easy to update, using a simple backend to add informations and blocks of optional details, and... (feature creap coming)

Anyway, I was thinking of a "simple" web page grpahically, that would easily be convertible to PDF file, using browser functionallity or not.

Assuming that the page have blocks of text that you must ckick a button to see (those are optional details), what should I know or what tools should I use to write this web page?

I'm totally rusted on web code, I used php without ajax a lot before but I understand the idea. I was thinking maybe it would be a good opportunity to try a framework to make a "webapp", like Ruby+ROR or Python+Django? Is that a good idea? I'm ready to learn about those, I'm just not sure if it's worth for such project.

Should I know some things about html code or javascript behaviour that I shouldn't use because it would break any PDF generation tool or something like that?

Any advice on the way to proceed would be helpful.

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

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

发布评论

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

评论(1

千鲤 2024-10-28 03:06:44

您需要了解如何创建打印样式表。这样,当您去打印简历时,您可以选择 CutePDF Writer 和将自动使用您的打印样式表。您将使样式表显示所有隐藏的文本块并隐藏导航、按钮等内容。

我无法告诉您是否值得为该项目尝试新框架,这取决于您。学习新东西并不坏。由于我不知道您项目的所有细节,因此很难回答这个特定项目是否值得。从你的描述来看,你只是在制作一份 HTML 简历,对我来说,这听起来就像一个带有一些 JavaScript 的平面 HTML 页面。如果是这种情况,您可能只需使用文本编辑器即可。

如果您想了解我的个人意见,如果您想学习新东西(或者只是想使用一个出色的框架),那么 ASP.Net 4 是您的最佳选择。

就破坏 PDF 生成而言,您的打印样式表将负责显示/隐藏内容,但任何 JavaScript 也应该意识到这一点。检查我上面给您的链接以获取更多信息。

You'll want to read up on how to create a print stylesheet. This way when you go to print the CV you can choose something like CutePDF Writer and your print stylesheet will automatically be used. You will make your stylesheet show all hidden text blocks and hide things like navigation, buttons, etc.

I can't tell you whether or not it's worth it for you to try a new framework for this project, that's up to you. It's not bad to learn new things. Since I don't know all the details of your project it's hard to answer if it's worth it for this particular project. From your description is sounds like you're just making an HTML resume/CV which sound, to me, like one flat HTML page with some JavaScript. If that's the case you could probably just use a text editor.

If you want my personal opinion, ASP.Net 4 is the way to go if you want to learn something new (or if you just want to use a great framework).

As far as breaking the PDF generation, your print stylesheet will be responsible for showing/hiding things but any JavaScripts should be aware of this as well. Check the link I gave you above for more information.

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