如何通过翻页功能制作PDF? [英] How to make PDF with turning page ability?

查看:602
本文介绍了如何通过翻页功能制作PDF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最奇怪的客户端要求之一中,我们需要开发一个功能来从java程序生成pdf文档(我使用iText完成)。但pdf的观点是问题。客户想要以这样的方式生成pdf,它应该具有像使用css在html中那样翻页的功能。 pdf的书籍视图。我知道这很奇怪,因为我们需要改变Adobe Reader本身的功能而无法完成。请告诉我这是可能的,如果是,那么

In one of the weirdest client's requirement we need to devlop a functionality to generate a pdf document from java program(i did it with iText). But the view of pdf is problem. The client wants pdf generated in such a way that, it should have functionality of turning the page like we do in html using css. The book view of the pdf. I know this is weird and can't be done as we need to change the functionality of Adobe Reader itself. Kindly let me know it it is possible if yes then HOW

推荐答案

我不确定客户的期望,但他是什么可以完全取决于正在使用的PDF查看器和PDF规范(ISO-32000-1)中描述的功能。最接近翻页的功能称为页面转换。它类似于PowerPoint从一个页面转到另一个页面时可以实现的内容(框入,框出,解散,...)。有关某些代码,请参阅 MovieSlideShow 示例。

I'm not sure what the customer expects, but what he can get entirely depends on the PDF viewer that is being used and the functionality described in the PDF specification (ISO-32000-1). The feature that is closest to page turning is called "page transition". It is similar to what you can achieve in PowerPoint when going from one page to the other (box in, box out, dissolve,...). See the MovieSlideShow example for some code.

这个问题的唯一正确答案是:使用支持翻页的PDF查看器。例如:我认为来自 IDR解决方案的人有一个基于JavaFx的查看器,可以像你一样翻页读一本书。当然:在这种情况下,PDF的所有消费者都应该使用相同的查看器(这可能不是一个选项)。

The only correct answer to this question is: use a PDF viewer that support page turning. For instance: I think that the guys from IDR Solutions have a JavaFx-based viewer that turns pages as if you're reading a book. Of course: in this case all consumers of the PDFs should use the same viewer (and that may not be an option).

这篇关于如何通过翻页功能制作PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆