Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exec('C:xampphtdocsisitipresetationconvertpdf2swf.exe docsK1.pdf -o docsK1.swf -f -T 9 -t -s storeallcharacters');
- <?php
- // Connect to the database
- $host="localhost"; // Host name
- $username="root"; // Mysql username
- $password=""; // Mysql password
- $db_name="is"; // Database name
- $tbl_name="presentation"; // Table name
- if(isset($_GET["id"]))
- {
- $id =$_GET["id"];
- $con=mysql_connect("localhost","root","");
- mysql_select_db("is");
- if (mysqli_connect_errno($con))
- {
- echo "Failed to connect to MySQL: " . mysqli_connect_error();
- }
- $result = mysql_query("SELECT * FROM presentation where slide_id='$id'");
- $row = mysql_fetch_array($result);
- $slide = $row['slide'];//content of database store here
- exec('C:xampphtdocsisitipresetationconvertpdf2swf.exe docsK1.pdf -o docsK1.swf -f -T 9 -t -s storeallcharacters');
- echo '<script type="text/javascript">
- window.location.href="../presentation/?id='.$id.'";
- </script>';
- }
- else
- {
- echo'<script type="text/javascript">
- alert("id failed")
- </script>';
- }
- ?>
- <script type="text/javascript">
- function getDocumentUrl(document){
- return "php/services/view.php?doc={doc}&format={format}&page={page}".replace("{doc}",document);
- }
- var startDocument = "Paper";
- $('#documentViewer').FlexPaperViewer(
- { config : {
- SWFFile : 'docs/a1.swf',//how to put the converted .swf file here
- Scale : 0.6,
- ZoomTransition : 'easeOut',
- ZoomTime : 0.5,
- ZoomInterval : 0.2,
- FitPageOnLoad : true,
- FitWidthOnLoad : false,
- FullScreenAsMaxWindow : false,
- ProgressiveLoading : false,
- MinZoomSize : 0.2,
- MaxZoomSize : 5,
- SearchMatchAll : false,
- InitViewMode : 'Portrait',
- RenderingOrder : 'flash',
- StartAtPage : '',
- ViewModeToolsVisible : true,
- ZoomToolsVisible : true,
- NavToolsVisible : true,
- CursorToolsVisible : true,
- SearchToolsVisible : true,
- WMode : 'window',
- localeChain: 'en_US'
- }}
- );
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement