建议?对于我们特定的HTML - > PDF项目 [英] Recommendation? for our specific HTML -> PDF project
问题描述
我有一个问题,我从谷歌搜索已经详细讨论了..但我想知道你会根据我们的特殊需求推荐。在之后我发现一个工作周后,我想要走上正确的轨道,我选择了错误的工具(一种可行的工具,但最终它的特点将会排除在我们的项目之外)。
我在Stack Overflow上已经阅读了一些关于这个主题的优秀主题..但是他们有人在地图上提出建议..正如我所期望的 - 通常,我们的需求和经验遍布地图。在这里,我想知道根据我们的具体情况你会推荐什么。
我们有一个动态HTML页面,在一个维度内显示30个地址标签单个美国信件尺寸的文件。我们希望用户能够打印单个字母大小的页面,并使内容与Avery地址标签(打印的)不干胶标签纸完美匹配(就像在浏览器中一样),然后用它们剥下30张贴纸并粘贴到实物产品上。 HTML页面大约是20万个HTML(div和表格),文本,gif,jpgs,条形码PNG图形,大量使用严格的CSS - CSS2以及CSS3(CSS3属性转换),即:
/ * ---用于firefox,safari,chrome等--- * /
-webkit-转换:旋转(90deg);
-moz-transform:rotate(90deg);
/ * ---即ie --- * /
filter:progid:DXImageTransform.Microsoft.BasicImage(rotation = 1);
!如果您正在寻找诸如Prince XML之类的东西但没有费用,我会尝试 DocRaptor.com 。这是一个从HTML转换而来的在线PDF生成器。我使用了免费计划,这很容易。
祝你好运!
Nate
I have a question which I see from googling has been discussed at length.. but I want to know what you would recommend based on our particular needs. I want to be on the right track before I find out a-week-of-work later that I chose the wrong tool (a tool which works, but whose peculiarity, in the end, would rule it out for our project).
I read some good threads on Stack Overflow already on this topic.. but they have people making recommendations all over the map.. as I would expect - generally, our needs and experiences are all over the map. And again, here I want to know what you would recommend given our specific situation.
We have a dynamic HTML page that displays 30 "address labels" within the dimensions of one single US-letter-size document. We want the user to be able to print the single letter-sized page and have the content line up perfectly (as it does in the browser) for the Avery address label (printed) sticker paper which they will use to then peel the 30 stickers and affix to physical product. The HTML page is ~ 200k worth of HTML (divs and tables), text, gifs, jpgs, a barcode PNG graphic, and heavy use of exacting CSS - CSS2 as well as a touch of CSS3 (CSS3 property transform), i.e. this:
/* --- for firefox, safari, chrome, etc. --- */
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
/* --- for ie --- */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
...which I use to rotate (90 degrees) a barcode which I grab off of this site/service: http://www.barcodesinc.com/generator/index.php
We could drop that barcode PNG/service only if I could easily replace it with another... and the barcode must be rotated 90 degrees - to thus fit in its tiny (vertically-oriented) alloted slot on each of the 30 "address label cells".
- I wish we had budget for the server version of PrinceXML ;-) ... but no luck.
- I have never used any PHP libraries like FPDF or TCPDF, but am concerned about speed; corporate users (on various browsers) will need the pdf in real time. They may be patient and wait for the final PDF if keep the solution free.. but if it takes minutes to generate, that is a minus point.
Also I am not sure how good these are for HTML -> PDF (as opposed to straight PDF from scratch).. plus not sure how good is the CSS support. Our page is a bit of an HTML/CSS kludge. - I have used the command-line tools HTMLDOC and wkpdf, but the former lacked the CSS I need now, and the latter introduces margin that kills it for exact address-label formatting (plus this project is on Linux).
My PHP skills are not super strong yet.. but I am willing to do whatever it takes to pull any solution together. In case you have any familiarity with any PDF generation tools that you feel would fit the need here, then please advise!
If you're looking for something like Prince XML but without the expense, I would try DocRaptor.com. It's an online pdf generator that converts from HTML. I used the free plan and it was pretty easy.
Good luck!
Nate
这篇关于建议?对于我们特定的HTML - > PDF项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!