default scale 1
This commit is contained in:
@@ -8,7 +8,7 @@ function renderPage() {
|
||||
|
||||
pageRendering = true;
|
||||
// Using promise to fetch the page
|
||||
pdfDoc.getPage(pageNum).then(function(page, ) {
|
||||
pdfDoc.getPage(pageNum).then(function(page) {
|
||||
|
||||
var canvas = document.getElementById('the-canvas');
|
||||
var context = canvas.getContext('2d');
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
ini_set('display_errors','off');
|
||||
error_reporting(E_ALL);
|
||||
|
||||
function anpromo_kuri($page = 1, $scale = 1.5){
|
||||
function anpromo_kuri($page = 1, $scale = 1){
|
||||
|
||||
// $pdfile = 'https://argumenti.ru/templinks/md5files/f9598f88e667146d50d106eeedbd74c1.pdf';
|
||||
$pdfile = '/pub/files/promo.pdf';
|
||||
@@ -30,7 +30,7 @@ function anpromo_kuri($page = 1, $scale = 1.5){
|
||||
|
||||
|
||||
|
||||
function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
|
||||
function read_kuri($hash, $page = 1, $scale = 1, $promo = false){
|
||||
|
||||
$price = db_get("SELECT `price_id`, `pricename` FROM `price` WHERE `pricehash` = '$hash' LIMIT 1");
|
||||
|
||||
@@ -66,9 +66,6 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
|
||||
$downtitle = 'Если по какой-то причине у вас не загрузилось издание ниже, то нажмите сюда, чтобы скачать pdf';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$id = $price['price_id'];
|
||||
$title = $price['pricename'];
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<head>
|
||||
<title>Еженедельник Аргументы Недели - <?=$title?></title>
|
||||
<script src="/pub/scripts/pdf.min.js"></script>
|
||||
<script src="/pub/scripts/anviewer.js?ver=9"></script>
|
||||
<script src="/pub/scripts/anviewer.js?ver=10"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=26">
|
||||
<link rel="icon" type="image/ico" href="https://argumenti.ru/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
Reference in New Issue
Block a user