简体   繁体   English

如何在Flash中制作PDF查看器?

[英]How to make a pdf viewer in flash?

如何在Flash中制作PDF查看器?

The thing is that you can't open PDF files directly inside Flash player. 问题是您不能直接在Flash Player中打开PDF文件。 So, a workaround that's usually done by Flash PDF viewers (flipbook, etc...) is to convert the PDF pages on the server to separate PNG images and load those into flash. 因此,一种通常由Flash PDF查看器(动画书等)完成的解决方法是将服务器上的PDF页面转换为单独的PNG图像并将其加载到Flash中。

You can find a number of services that does this automatically, for example this PHP class might be useful if you want to implement such a solution on your own. 您可以找到许多自动执行此服务的服务,例如,如果您想自己实现这样的解决方案,则此PHP类可能很有用。

This is an example of an HTML 5 web application that is a PDF viewer ( you'll need to open it with the latest version of your browser ): 这是一个HTML 5 Web应用程序示例,该应用程序是PDF查看器( 您需要使用最新版本的浏览器打开它 ):

It is based on the PDF.js project 它基于PDF.js项目

and mainly uses javascript. 并且主要使用javascript。 Javascript and Actionscript are quite similar (both being derived from ecmascript). Javascript和Actionscript非常相似(均源自ecmascript)。 So if you can successfully port the PDF.js to Actionscript, you should be able to develop a PDF viwer in flash. 因此,如果您可以成功将PDF.js移植到Actionscript,那么您应该能够在Flash中开发PDF viwer。

Use PDF 2 SWF Tool and then present the swf with Flexpaper. 使用PDF 2 SWF工具,然后使用Flexpaper展示瑞士法郎。

Works Good in Flash not soo good in Air right now. Flash效果不错,现在在Air中效果还不太好。 They bring a different Library Package for Flex which must have some bugs. 他们带来了一个不同的Flex图书馆程序包,其中必须包含一些错误。

http://flexpaper.devaldi.com/ http://flexpaper.devaldi.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM