生成印刷版和网页版目录
我需要创建一个解决方案,它允许生成数据库驱动的目录。
假设有一堆产品、图像、价格、其他详细信息,管理员可以根据“模板”生成目录。
这些模板本质上是页面的“样式”。例如,样式 1 可以具有 4x4 布局(16 个产品,带有图像和其他属性),因此在每个页面上最多可以显示 16 个产品和详细信息。样式 2 可以有 2x2 布局、4 个产品,但更多细节。管理员可以在目录中挑选不同的样式。
生成目录后,需要将其发布以供网络查看(保真度较低)和/或印刷出版(保真度较高)。
我希望帮助确定要使用的最佳堆栈,特别是“编码”模板并最终生成 PDF。
需要考虑的因素
- 最少的编码工作(重复使用商业或自由源码)
- 我更喜欢可以创建/编辑“模板”的现有软件,因此我不必这样做。我可以简单地获得许可证并重用该功能。
到目前为止,我考虑的是以下
- Adobe XFA Forms 作为模板,连接到数据库以生成 PDF。
- 我不确定哪个程序可以生成 XFA 模板。 Acrobat X 是一个选项,但它似乎无法控制添加图像。 LiveCycle Server 似乎有点过分了。
- 使用 iText 库,不知道模板是否可能,为网络/打印生成。对要打印的目录的尺寸/质量有良好的支持。
- 使用Open Office,制作模板并编写胶水来检索数据并生成Open Office文档,该文档可以轻松转换为html/pdf。不知道这有多困难/容易。
- 编辑:Adobe Framemaker 允许模板 - 我正在评估它是否可以完成我想要的工作。完成后我会发布更新。
我对这些技术都没有经验,所以如果你可以指导/评价它们,或者添加我没有考虑的其他选项。
在这一点上,我对语言不可知论。很多库提供了来自各种语言的钩子,所以我认为这不会成为问题。如果您的解决方案特定于 foo 语言,也请提及。
感谢您抽出时间。
我在图形设计交流上提出了一个后续问题。 https://graphicdesign.stackexchange。 com/questions/2318/use-data-merge-of-indesign-using-console-or-through-an-api
I need to create a solution, which allows a database driven catalog to be generated.
Assume, there are a bunch of products, images, prices, other details, and admin can generate catalogs based on "templates".
These templates essentially are "styles" of pages. For instance, style 1, could have 4x4 layout (16 products, with image and other attributes), hence on each page, upto 16 products and details could be displayed. Style 2 could have 2x2 layout, 4 products, but more detail. Admin can pick and choose different styles in a catalog.
Once the catalog is generated, it needs to be put up for either web viewing (lower fidelity) and/or print publishing (higher fidelity).
I would like help in determining the optimum stack to use, particularly, to "code" template and consequently to generate the PDFs.
Factors to consider
- Minimum coding effort (reuse commercial or foss)
- I will prefer an existing software which can create/edit "template" so I don't have to do that. I can simply get the license and reuse that functionality.
What I have considered so far is the following
- Adobe XFA Forms as templates, connected to database to generate PDF.
- I not sure which program can generate XFA templates. Acrobat X is an option however it does not seem to have control for adding images. The LiveCycle Server seems to be an overkill.
- Use iText library, no idea if templates are possible or not, generate for web/print. Has good support for size/quality of catalog to print.
- Use Open office, make template, and write the glue to retrieve data and generate an open office doc, which can easily be converted into html/pdf. No idea how tough/easy this is.
- EDIT: Adobe Framemaker allows templates - I am evaluating if it can do the job that i have in mind. I will post an update once I am done.
I have no experience with any of these technologies, so if you can guide/rate them, or add other options that I did not consider.
At this point I am language agnostic. Alot of libraries provide hooks from various languages, so I don't think that will be a problem. If your solution is specific to foo language, please mention it as well.
Thanks for taking the time.
There is a followup question I asked on graphicsdesign exchange. https://graphicdesign.stackexchange.com/questions/2318/use-data-merge-of-indesign-using-console-or-through-an-api
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Adobe inDesign 数据合并怎么样。 这里还有视频
很容易使用同样。
How about Adobe inDesign Data Merge. And video here
Pretty easy to use aswel.
TCPDF (PHP) 会给你相当多的控制权,并且有很多示例代码。
http://www.tcpdf.org/
我以前用过它,并不难理解。
TCPDF (PHP) would give you quite a bit of control, and has lots of example code.
http://www.tcpdf.org/
I've used it before, it's not too hard to figure out.
我不确定它是否合适,但也许 http://issuu.com/#whatIsIssuu
I'm not sure if its a good fit, but maybe http://issuu.com/#whatIsIssuu