In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how Flex open source components display the content of various documents. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
Flex open source components show various documentation tutorials
FlexPaper is an open source lightweight component for displaying documents in browsers, designed to work with PDF2SWF to make it possible to display PDFs in Flex without the PDF software environment. It can be used as a library for Flex.
You can also convert some documents such as Word and PPT to PDF and browse online.
I. Prepare your documents with PDF2SWF
The first step is to convert PDF to SWF, which can be done automatically using SwfTools of Flex open source components.
1. Download and install SwfTools, the current *** version is 0.9
2. PDF to SWF conversion can be done by command-line means, such as converting Paper3.pdf to Paper3.swf
C:\SWFTools\pdf2swfPaper3.pdf-oPaper3.swf
II. Browse your documents using the compiled flash version of FlexPaper
1. Download and extract the compiled FlexPaper
The 2.zip file contains an example file called FlexPaperViewer.html that shows you the basic parameters you need to pass to FlexPaper.
varparams={ SwfFile:"Paper.swf", Scale:0.6 } swfobject.embedSWF("FlexPaperViewer.swf","cb","500","9.0.0","js/swfobject/expressInstall.swf",params); //SwfFile parameter is the file you want to display, Scale is a number between 0 and 1, indicating the magnification parameter displayed
3. Copy the swf and PDF2SWF you created into the same directory you extracted
4. Make sure you add FlexPaperViewer.swf
III. Using FlexPaper in Flex
1. Download FlexPaperSWC and add it to your Flex project libs
2. Copy the SWF you created with PDF2SWF into your bin-debug directory, such as Paper3.swf, add Flex open source component FlexPaper to your flex code Xml code
Thank you for reading! About "Flex open source components how to display various documents" This article is shared here, I hope the above content can have some help for everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.