You are here: Home > PDF Viewer

Dansk

PDF Viewer

Pdf Viewer is an implementation of the javascript based pdf.js project for CMSimple and can show an unlimited number of viewers on the same page. Pdf Viewer has options to bypass browser cache and to periodicaly refresh pages running this plugin.

1. License

GPL3. You are allowed to make code changes in this plugin to tailor it to your needs.This plugin is for personal use and you may not redistribute either original or modified code. By downloading this plugin you agree to this limitation to the GPL license.

 

2. Installation

Download and uncompress file pdfviewer_XH.zip 

Upload the entire pdfviewer folder to  your "plugins" folder. 

3. Configuration

See online help in plugins configuration section. 

To show a pdf file on the page enter { {{pdfviewer("file_name.pdf","ID");}}} (without spaces between { {). The id parameter is optional an may be omitted. The file file_name.pdf must be copied to userfiles folder or its subfolder in your CMSimple installation. Configuration options may be changed on the fly by preceding plugin call by a call to the function pdfviewer_config("configuration_option", "configuration_value");.

F.ex. for enabling caching:

{ {{pdfviewer_config("cache","true");}}} 

{ {{pdfviewer("file_name.pdf");}}}

First viewer with disabled cache

Stylesheets

If "ID" parameter is not specified in plugin call then PDF Viewer creates a new ID for each viewer on the page named #pdf_container, #pdf_container_1 etc. To style the viewers stylesheet.css must contains corresponding definitions

#pdf_container, #pdf_container_1 {
width:100%;
height: 782px;
}

With installed CMSimple Mobile it is necessary to define additional css ID's for mobile devices: pdf_container_mobile, pdf_container_1_mobile and so on.

4. Compatibility

Tested with CMSimple_XH version 1.6.7 and php 7 but should run with any version of CMSimple and php 4.3 or later. XH-certified.

5. History 

version 1.0.0

6. Known problems

7. Future development

8. Disclaimer

This CMSimple plugin is distributed in the hope that it will be useful - without any warranty; without even the implied warranty of fitnes for a particualr purpose.

© simpleSolutions 2016

Second viewer with enabled cache and 80% width
  
 
 
 
 


  |   top   |  

 

 

All plugins on this site are validated according to CMSimple_XH standard

 

 

 


Newsbox Rotator demo

Hints

Hold the cursor over Newsbox Rotator area to pause rotation.Move the mouse outside area to continue rotation.

In CMSimple XH not published news are not visible in News Rotator.

 

  

Newsbox Rotator demo

Newsbox Rotator Test 1

Newsbox_1 test test test


 

test1 test2 test3 test4 test5 test6 test7 test8 test9

Newsbox Rotator demo

CMSimple plugin: Newsbox Rotator
v.2 © simpleSolutions

Last update:
March 04, 2017, 13:02

Powered by CMSimple | Template by simpleSolutions

(X)html | css | Login