Use Flexpaper for Word, PPT, pdf online Browsing

Source: Internet
Author: User

Today in the Baidu Library to look at the document when you can read the online ebook plug-in or source it? To search the internet found the flexpaper, download down, find some information, toss some, out of the effect is good, is to convert the Chinese document into a SWF file stuck, first make a record, later to study the space.

Flexpaper is an open source lightweight component that displays various documents on a browser and is designed to work with pdf2swf, making it possible to display PDFs in Flex without the support of the PDF software environment. It can be used as a library of flex. You can also browse online by turning some documents, such as word and PPT, into a PDF.

Currently flexpaper the latest version is 1.4.1, can be downloaded to the official website or Google Project

After decompression there is a flexpaperviewer.html demo file, and a debug file flexpaperviewer_debug.html, these two files are very good to show the use of Flexpaper, the following collected Flexpaper Some parameters and functions for your reference, combined with these parameters and functions can be easily applied flexpaper

Parameter list

Parameter name

parameter values and descriptions

Cursortoolsvisible

(True/false)

Fitpageonload

(True/false)

Fitwidthonload

(True/false)

Fullscreenasmaxwindow

(True/false)

Fullscreenvisible

(True/false)

Navtoolsvisible

(True/false)

Printenabled

(True/false)

Printtoolsvisible

(True/false)

Progressiveloading

(True/false)

Scale

Searchtoolsvisible

(True/false)

Startatpage

Swffile

Viewmodetoolsvisible

(True/false)

Zoominterval

Zoomtime

Zoomtoolsvisible

(True/false)

Zoomtransition

Events and functions

Function name

Function description

GotoPage (number PageNumber)

Jump to a specified page

Fitwidth ()

Set to Width mode view

Fitheight ()

Set to Height mode view

loadswf (String swffile)

Load a new SWF file into the browser

Getcurrpage ()

Get current page number

NextPage ()

Jump to Next page

PrevPage ()

Jump to Previous page

Zoom (number Factor)

Scale by factor

SearchText (String text)

Search for text

Switchmode (String mode)

Transform view mode; Parameter values can be ("Portrait", "both page", "Tile")

Printpaper ()

Print the loaded document

Event name

Event description

ondocumentloaded   ()  

Trigger when document loading is complete

Ondocumentloadederror (String errormessage)

Trigger when loading a document in error

onprogress (number bytesloaded, number Bytestotal)

Triggered when the document is loading

oncurrentpagechanged (number pagenumber)

Trigger when page changes

onexternallinkclicked (String link)

Triggered when the user clicks on an external link

Converting various documents to SWF files is key, from the official website and other materials are introduced using the Swftools tool to replace the PDF file with the SWF file, under Windows can use the following command line

[C-sharp]View Plaincopy
    1. C:/swftools/pdf2swf.exe Paper.pdf-o paper.swf-t 9-f

Convert Paper.pdf to paper.swf, and you can use its UI tools as well.

But the problem is, the conversion of English documents is possible, but the Chinese will not be garbled, and later on the Internet to find some methods, but toss a no success, later have time to study, we are interested can refer to the following information to study: Use Xpdf to process the Chinese PDF document.

Use Flexpaper for Word, PPT, pdf online Browsing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.