Home Page

PDF/PPT Embedded

Currently there are many ebooks or slides, are published using PDF or PPT (powerpoint).
If your posts or articles requires the needs of display for PDF or PPT, you are not limited to guide users to download your files and views it in their desktop but directly viewed it in current web page.

This feature is enabled by Google Doc Service.

To embed your PDF or PPT,
You only have to know your full URL of PDF or PPT,
and then write it in this way:

[imgshow]q:name=gdoc,url=http://www.markwatson.com/opencontent/JavaAI3rd.pdf[/imgshow]
  		
[imgshow q:name=gdoc,url=http://www.markwatson.com/opencontent/JavaAI3rd.pdf]
  		
<?php
require_once 'class_imgshow.php';

$img = new imgshow();
echo $img->name('gdoc')->p('url', 'http://www.markwatson.com/opencontent/JavaAI3rd.pdf')->load();

?>  		
var imgshow = require('imgshow');

imgshow().name('gdoc').p('url', 'http://www.markwatson.com/opencontent/JavaAI3rd.pdf').load(function(result) {
	console.log(result);
});
  		
var imgshow = require('./imgshow.js');

var win = Ti.UI.createWindow({title:'Imgshow Client'});
var btn = Ti.UI.createButton({left:5,top:5,right:5,bottom:5,title:'Show Me Result'});
btn.addEventListener('click', function() {
	imgshow().name('gdoc').p('url', 'http://www.markwatson.com/opencontent/JavaAI3rd.pdf').load(function(result) {
		alert(result);
	});	
});  		
include('imgshow.js');

if(session.ready()) {
	session.answer();
	util.say('Please hold while we querying');
	
	imgshow().name('gdoc').p('url', 'http://www.markwatson.com/opencontent/JavaAI3rd.pdf').load(function(message) {
		util.say('the result is ' + message);
	});
}
  		

Visit Imgshow API Github Page for more information


Example:
Embed PDF/PPT File (Direct URL)
Embed Google Doc Document
Embed Google Doc Presentation