Concept

<< 点击显示目录 >>

主页  mappView帮助助手 > mapp View帮助信息 > Widgets  > Media  > PDFViewer  >

Concept

This section contains additional information about the concept of widget "PDFViewer".

Specifies the path

The path to the PDF document to be displayed is defined using property src. Example: "Media/Docs/UserManual_EN.pdf".

The path is bindable via property src; it is also possible to specify a text key from the text system to show language-dependent PDF documents, for example.

If different documents should be displayed at runtime using property "src", note the following:

The default value of property "src" is not permitted to be defined until the user is on the page with the PDFViewer and the contents have been loaded. For example, client system event ContentLoaded can be used to assign property "src".

If the user navigates to another page or loads another piece of content so that the PDFViewer is no longer visible, the value of property "src" must be deleted. This ensures that the document is not damaged during fast navigation between pages.

Using the plug-in

There are 2 ways to use widget "PDFViewer".

The first way is to use the PDF viewer integrated in the browser to display the document ("usePlugin" = false).

If "usePlugin" = true, a JavaScript plug-in is used to display the document.

The plug-in is always available and is particularly valuable if no PDF viewer is available in the browser. The internal PDF viewer generally provides better performance and display quality, however.

Interaction using widget properties

Different properties are used to interact with the PDF. One of these is property "documentZoom", which is used for zooming in the PDF. Not all properties can be used with both PDFViewer methods. The following conditions apply:

Property

Description

usePlugin = true

(use JavaScript plug-in)

usePlugin = false

(The internal PDF viewer in the Chrome browser is used.)

startPage

Defines the number of the page whose contents should be initially displayed.

check-de.online-hilfe-standard

check-de.online-hilfe-standard

namedDest

Configures the destination within a PDF document. It is possible to specify a jump to a certain page, for example.

check-de.online-hilfe-standard

check-de.online-hilfe-standard

documentZoom

Defines the zoom level and scroll factors for the displayed document.

Values should be specified in the following format: zoom level, left, top.

check-de.online-hilfe-standard

check-de.online-hilfe-standard

showToolbar

Defines whether the PDF toolbar is displayed.

delete

check-de.online-hilfe-standard

Interaction using path parameters

It is also possible to append parameters to the path for interaction. The following variants are possible:

Parameter

Example

Description

usePlugin = true

(use JavaScript plug-in)

usePlugin = false

(use PDF viewer in browser)

page

Media/Docs/brauer.pdf#page=6

 

check-de.online-hilfe-standard

check-de.online-hilfe-standard

nameddest

Media/Docs/brauer.pdf#nameddest=074B

 

check-de.online-hilfe-standard

check-de.online-hilfe-standard

zoom

Media/Docs/brauer.pdf#zoom=200

 

check-de.online-hilfe-standard

check-de.online-hilfe-standard

toolbar

Media/Docs/brauer.pdf#toolbar=1

 

delete

check-de.online-hilfe-standard

zoom + page

Media/Docs/brauer.pdf#page=5&zoom=150

 

check-de.online-hilfe-standard

check-de.online-hilfe-standard

The names of the parameter do not correspond exactly to the names of the widget properties.

Parameters that are appended to the path specification replace the values configured in the widget properties.