Hướng dẫn pdf-viewer php github
Here are 11 public repositories matching this topic...
I, Librarian - open-source version of a PDF managing SaaS. Show
Inter-Cities Transport Website
Look Inside a pdf book to read or book sample to read
Omeka S module that display standard document formats (pdf and office: pdf, odt, ods, odp and many more) in a light unified player.
Module for Omeka S to display pdf directly in public pages via the browser viewer or a customizable internal viewer.
Automatic generates certificate in RTF and PDF format.
Wordpress plugin ForM@Ter functionnalities
A demonstration of a alternative way of presenting and exploring IIIF Collections. It works by automatically converting the information stored in the IIIF Collections into more user friendly webpages and the images listed within the IIIF Manifests are presented directly with the IIIF compliant viewer Mirador.
Easily manage and embed Pdf file in your wordpress website/blog
The PDFTK, FPDF, and FPDM libraries were used to update the existing fillable PDF file.
Capstone Project titled NCST Forms covers many types of forms applications such as cash advance, leave, official business, overtime, undertime and substitution form with sorting, printable data and signatures
Improve this pageAdd a description, image, and links to the pdf-viewer topic page so that developers can more easily learn about it. Curate this topic Add this topic to your repoTo associate your repository with the pdf-viewer topic, visit your repo's landing page and select "manage topics." Learn more
include_once 'data.php';
include_once 'functions.php';
include_once 'pdfclass.php';
session_write_close();
// Sanitize PDF filename.
$file = '';
if (!empty($_GET['file'])) {
$file = preg_replace('/[^a-zA-z0-9\_\.pdf]/', '', $_GET['file']);
} else {
displayError("No PDF provided.");
}
// Start the PDFViewer class.
$pdfHandler = new PDFViewer($file);
// Get page number and sizes.
$page_info = $pdfHandler->getPageInfo();
$page_number = $page_info['page_number'];
$page_sizes = $page_info['page_sizes'];
// Initial page number.
$page = $pdfHandler->getInitialPageNumber();
// Image resolutions in PPI.
$thumb_res = $pdfHandler->thumb_resolution;
$page_res = $pdfHandler->page_resolution;
// Display PDF file.
if (!isset($_GET['inline'])) {
?>
>
<html style="width:100%;height:100%">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" href="favicon.ico">
<title>
print !empty($_GET['title']) ? 'PDF: ' . htmlspecialchars($_GET['title']) : 'PDF viewer'; ?>
title>
<link type="text/css" href="css/custom-theme/jquery-ui-custom.min.css?v= print $version ?>" rel="stylesheet">
<link type="text/css" href="css/plugins.css?v= print $version ?>" rel="stylesheet">
<link type="text/css" href="css/font-awesome.css?v= print $version ?>" rel="stylesheet">
<link type="text/css" href="style.php?v= print $version ?>" rel="stylesheet">
<style type="text/css">
@page {
margin: 0;
}
style>
<script type="text/javascript" src="js/jquery.js?v= print $version ?>">script>
<script type="text/javascript" src="js/jquery-ui-custom.min.js?v= print $version ?>">script>
<script type="text/javascript" src="js/plugins.js?v= print $version ?>">script>
head>
<body style="padding:0;margin:0;border:0;overflow:hidden;width:100%;height:100%">
}
?>
<div style="
if ((isset($_GET['toolbar']) && $_GET['toolbar'] == 0) || (isset($_GET['preview']) && $_GET['preview'] == 1)) {
print 'display:none';
}
?>" id="pdf-viewer-controls" class="alternating_row">
<div class="pdf-viewer-control-row">
<table>
<tr>
<td style="padding:2px 0 0 0;line-height:28px">
<div class="vertical-separator">div>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<button id="save" title="Download PDF"><i class="fa fa-download">i>button>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<div class="vertical-separator">div>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<button id="size1"><i class="fa fa-search-plus">i> 100%button>
<button id="size2" title="Fit the page width">|<i class="fa fa-arrows-h">i>|button>
td>
<td style="padding-left:4px;padding-top:8px;line-height:28px">
<div id="zoom">div><div style="float:left;position:relative;top:-4px;width:3em;text-align:right">div>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<div class="vertical-separator">div>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<button id="control-first" title="First page"><i class="fa fa-fast-backward">i>button>
<button id="control-prev" title="Previous page (E)"><i class="fa fa-step-backward">i>button>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<input type="text" id="control-page" size="3" style="width:3em;padding:2px" value=" print intval($page) ?>"> / print $page_number ?>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<button id="control-next" title="Next page (D)"><i class="fa fa-step-forward">i>button>
<button id="control-last" title="Last page"><i class="fa fa-fast-forward">i>button>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<div class="vertical-separator">div>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<button id="pdf-viewer-copy-image" title="Copy image"
if (!extension_loaded('gd'))
print 'disabled'
?>>
<i class="fa fa-image">i>
button>
<input type="checkbox" id="pdf-viewer-copy-text">
<label for="pdf-viewer-copy-text" title="Copy text">
<i class="fa fa-font" style="padding:0 1px;border:1px dotted black">i>
label>
td>
tr>
table>
div>
<div class="pdf-viewer-control-row">
<table>
<tr>
<td style="padding:2px 0 0 0;line-height:28px">
<div class="vertical-separator">div>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<input type="checkbox" id="pageprev-button">
<label for="pageprev-button" title="Page previews"><i class="fa fa-file-text-o">i>label>
<input type="checkbox" id="bookmarks-button">
<label for="bookmarks-button" title="Bookmarks"><i class="fa fa-bookmark">i>label>
<input type="checkbox" id="notes-button">
<label for="notes-button" title="List notes"><i class="fa fa-th-list">i>label>
<input type="checkbox" id="search-results-button">
<label for="search-results-button" title="Search results"><i class="fa fa-search">i>label>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<div class="vertical-separator">div>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<input type="checkbox" id="pdf-viewer-annotations">
<label for="pdf-viewer-annotations" title="Toggle annotations"><i class="fa fa-comment">i>label>
<input type="checkbox" id="pdf-viewer-marker">
<label for="pdf-viewer-marker" title="Marker"><i class="fa fa-pencil">i>label>
<input type="checkbox" id="pdf-viewer-note">
<label for="pdf-viewer-note" title="Pinned note"><i class="fa fa-thumb-tack">i>label>
<input type="checkbox" id="pdf-viewer-marker-erase">
<label for="pdf-viewer-marker-erase" title="Erase annotations"><i class="fa fa-eraser">i>label>
<input type="checkbox" id="pdf-viewer-others-annotations">
<label for="pdf-viewer-others-annotations" title="Others' annotations"><i class="fa fa-user">i>label>
<div class="arrow-top">div>
<div id="pdf-viewer-delete-menu" class="alternating_row" style="display:none">
<div>
Erase selected
div>
<div>
Erase all markers
div>
<div>
Erase all notes
div>
<div>
Erase all
div>
div>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<div class="vertical-separator">div>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<input type="text" id="pdf-viewer-search" value="" placeholder="Find" style="width:145px;padding:2px"
title="Use <?> as single-letter, and <*> as multi-letter wildcards">
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<button id="pdf-viewer-clear" title="Clear search"><i class="fa fa-reply">i>button>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<button id="pdf-viewer-search-prev" title="Previous search result"><i class="fa fa-search">i> <i class="fa fa-caret-up">i>button>
td>
<td style="padding:2px 0 0 4px;line-height:28px">
<button id="pdf-viewer-search-next" title="Next search result"><i class="fa fa-search">i> <i class="fa fa-caret-down">i>button>
td>
tr>
table>
div>
div>
<div id="pdf-viewer-div">
<div id="navpane" style="display:none">
<div id="thumbs" style="display:none">
for ($i = 1; $i <= $page_number; $i++) {
$width = round($thumb_res * $page_sizes[$i - 1][0] / $page_res);
$height = round($thumb_res * $page_sizes[$i - 1][1] / $page_res);
echo " |