Forum Moderators: Robert Charlton & goodroi
https://website/index.php/category/article/view/75417
https://website/index.php/category/article/view/75417/40283
https://website/index.php/category/article/download/75417/40283 https://website/index.php/category/article/view/75417 https://example/index.php/category/article/view/75417 only at that URL or is it also viewable as https://example/category/article/view/75417 ? https://website/index.php/category/article/view/75417
https://website/index.php/category/article/view/75417/40283
https://website/index.php/category/article/download/75417/40283Assuming, first, that the one word “website” is a stand-in for “example.com” ...
https://example/category/article/view/75417 will be redirected to https://example/index.php/category/article/view/75417. https://example.com/index.php/category/article/view/75417/40283 https://example.com/index.php/category/article/download/75417/40283 https://example.com/plugins/generic/pdfJsViewer/pdf.js/web/viewer.html?file=https://example.com/index.php/category/article/download/75417/40283
https://example.com/index.php/category/article/view/75417/40283?related_post_from 1.https://example.bc.edu/index.php/jtla/article/view/1603 = main post
2.https://example.bc.edu/index.php/jtla/article/view/1603/1455 = embed full article
3.https://example.bc.edu/index.php/jtla/article/download/1603/1455/1738 = download full article [edited by: not2easy at 11:06 am (utc) on Aug 6, 2023]
[edit reason] Please see TOS [webmasterworld.com] [/edit]
Assuming, first, that the one word “website” is a stand-in for “example.com”
https://website/index.php/category/article/view/75417 https://website/index.php/category/article/view/75417/40283 https://website/index.php/category/article/download/75417/40283 website mean example.com
Unless your "view pdf" page (step two) PREVENTS the user from right click save as, once the full pdf is displayed (in step two) it can be downloaded by any browser... Why a third page just to download?
<!DOCTYPE html>
<html lang="en-US" xml:lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>book review</title>
<link rel="icon" href="https://example.com/public/journals/73/favicon_en_US.jpg">
<meta name="generator" content="Open Journal Systems 3.0.2.0">
<link rel="stylesheet" href="https://example.com/public/journals/73/styleSheet.css" type="text/css" /><link rel="stylesheet" href="https://example.com/index.php/category/$$$call$$$/page/page/css?name=bootstrap" type="text/css" /><link rel="stylesheet" href="https://example.com/index.php/category/$$$call$$$/page/page/css?name=bootstrapTheme-journal" type="text/css" /><link rel="stylesheet" href="https://example.com/plugins/generic/orcidProfile/css/orcidProfile.css" type="text/css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js" type="text/javascript"></script><script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.js" type="text/javascript"></script><script src="https://example.com/lib/pkp/js/lib/jquery/plugins/jquery.tag-it.js" type="text/javascript"></script><script src="https://example.com/plugins/themes/bootstrap3/bootstrap/js/bootstrap.min.js" type="text/javascript"></script><script src="https://example.com/js/plugins/citationFormats.js" type="text/javascript"></script><script type="text/javascript">var _paq = _paq || [];
</head>
<body class="pkp_page_article pkp_op_view">
<header class="header_view">
<a href="https://example.com/index.php/category/article/view/71582" class="return">
<span class="pkp_screen_reader">
Return to Article Details
</span>
</a>
<a href="https://example.com/index.php/category/article/view/71582" class="title">
book review
</a>
<a href="https://example.com/index.php/category/article/download/71582/50270/" class="download" download>
<span class="label">
Download
</span>
<span class="pkp_screen_reader">
Download PDF
</span>
</a>
</header>
<script type="text/javascript" src="https://example.com/plugins/generic/pdfJsViewer/pdf.js/build/pdf.js"></script>
<script type="text/javascript">
$(document).ready(function() {
PDFJS.workerSrc='https://example.com/plugins/generic/pdfJsViewer/pdf.js/build/pdf.worker.js';
PDFJS.getDocument('https://example.com/index.php/category/article/download/71582/50270/').then(function(pdf) {
// Using promise to fetch the page
pdf.getPage(1).then(function(page) {
var pdfCanvasContainer = $('#pdfCanvasContainer');
var canvas = document.getElementById('pdfCanvas');
canvas.height = pdfCanvasContainer.height();
canvas.width = pdfCanvasContainer.width()-2; // 1px border each side
var viewport = page.getViewport(canvas.width / page.getViewport(1.0).width);
var context = canvas.getContext('2d');
var renderContext = {
canvasContext: context,
viewport: viewport
};
page.render(renderContext);
});
});
});
</script>
<script type="text/javascript" src="https://example.com/plugins/generic/pdfJsViewer/pdf.js/web/viewer.js"></script>
<div id="pdfCanvasContainer">
<iframe src="https://example.com/plugins/generic/pdfJsViewer/pdf.js/web/viewer.html?file=https%3A%2F%2Fexample.com%2Findex.php%2Fcategory%2Farticle%2Fdownload%2F71582%2F50270%2F" width="100%" height="100%" style="min-height: 500px;" allowfullscreen webkitallowfullscreen></iframe>
</div>
</body>
</html> The purpose of this page, in my opinion, is to allow visitors to read articles in full through their web browsers online. On the other hand, the purpose of the PDF download page is to enable visitors to download articles in PDF format for offline reading.