Integrate preview with other web applications
Esta página aún no está disponible en tu idioma.
You can integrate the OpenKM web preview module into other web applications quickly.
Advantatges:
- Quickly integration into an iframe in your own web application.
- All supported OpenKM MIME types from preview modules.
- Can be used without being logged into OpenKM.
- Can preview documents which are not into OpenKM.
Preview parameters:
| Parameter | Type | Description |
|---|---|---|
| docUrl | String | The full url of a document. We recommend using it for all the file types. |
| swfUrl | String | The full url of a .swf file. |
| dxfUrl | String | The full url of a .dxf file. |
| dwfUrl | String | The full url of a .dwf file. |
| htmUrl | String | The full url of a .html file. |
| codUrl | String | The full url of a file with code into, for example .java, .php, etc. files. |
| mpgUrl | String | The full url of a .mp4 and .mp3 file. |
| pdfUrl | String | The full url of a pdf document. Required by Flexpaper previewer. |
| file | String | The full url of a pdf document. Required by PDF.js previewer. PDF.js also require pdfUrl parameter |
| previewEngine | String | The type of preview to be used by server. By default is PDF.js but with this parameter you can force to Flexpaper OpenKM support Flexpaper and PDF.js as pdf previewers |
Code sample
<html> <head> <title>test</title> </head> <body> <div align="left"> Left panel </div> <div align="right"> Preview panel<br/> <iframe src="http://localhost:8180/OpenKM/Preview?docUrl=http://localhost/test.pdf" style="width:800px; height:600px" frameborder="0" marginwidth="0" marginheight="0" /> </div> </body></html>