Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Tazzios/pdfviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tazzios committed Oct 2, 2022
2 parents 7f49a23 + de1db74 commit aa993b9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Changelog.md
@@ -1,6 +1,6 @@

V1.2.5 agustus 2022
Content plugin
V1.2.5 agustus 2022
Content plugin
Update: PDFjs to v2.15.349

V1.2.5 oct 2021
Expand Down
14 changes: 11 additions & 3 deletions README.md
@@ -1,17 +1,25 @@
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/donate/?business=SAT23GPU7F6AS&no_recurring=1&currency_code=EUR)

# Pdfviewer
PDFviewer is a joomla content plugin which make it possible to show pdf files in content based on https://github.com/mozilla/pdf.js.
Compared to other existing pdfviewer for joomla this one is focused on integration with jDownloads and searching.

## Features

- Set pagenumber
- Uses the pdf.js webviewer
- Set pagenumber to open by tag or url.
- Joomla Highlight smartsearch integration
- Set search by url.
- Show the PDF file as Embedded, popup or in a new window
- Customize height and width for each PDF embedding.
- Advanced jDownloads integration
- Show a page as a image
- Show one page as an image
- Editor button


## Examples

Demo website: http://marijqg132.132.axc.nl/demopdfviewer/
[Demo website](https://marijqg132.132.axc.nl/demo/)

### basic article examples

Expand Down
2 changes: 1 addition & 1 deletion content_plugin/pdfviewer.php
Expand Up @@ -137,7 +137,7 @@ public function onContentPrepare($context, &$article, &$params, $page = 0)
}

//get searchterm from tagparameters if not set yet and no page by url is given
if (isset($tagparameters['search']) and $search =='' and isset($_GET["page"])==false) {
if ( $search =='' and isset($tagparameters['search']) and trim($tagparameters['search'],'"') <>'' and isset($_GET["page"])==false) {
$search = str_replace('%20', ' ' ,$tagparameters['search']); //replace dummy space
$search = trim($search);
$search = trim($search,'"'); // any combination of ' and "
Expand Down
1 change: 0 additions & 1 deletion updates_plugin.xml
Expand Up @@ -7,7 +7,6 @@
<element>pdfviewer</element>
<type>plugin</type>
<folder>content</folder>
<element>pdfviewer</element>
<version>1.2.5</version>
<infourl title="Release notes">https://github.com/Tazzios/pdfviewer/releases</infourl>
<downloads>
Expand Down

0 comments on commit aa993b9

Please sign in to comment.