jDownloads Support Forum

jDownloads for Joomla 3.x => jDownloads 3.9 (Support ended) => Topic started by: Tazzios on 27.12.2020 13:31:27

Title: PFD viewer
Post by: Tazzios on 27.12.2020 13:31:27

What does it do?
PDF viewer will give the option to embed the PDF.js viewer in the details download page.

How to install?
Unzip the files place the 'component' folder in your joomla root, this contain the pdfjsviewer. Place the file from the 'TEMPLATE' folder in your active template.

How to use?
Add the tag {file_pdfviewer} to the layout 'download details'

Search options and Highlighting
The highlighting with  joomla smartsearch will work by default.
If you also install the 'highlight search' override the search terms will also be highlighted in the pdf when using the jdownloads search.

To make the PDF content (kind of) searchable:
- Create a custom text field (with large pdfs you maybe need multiple)
- Copy the text from the pdf in the textfield

Can I also embed the preview PDF file?
No currently that is not possible because there is no reliable way to access the preview file, see topic:
http://www.jdownloads.com/index.php/support-forum.html?topic=12250.msg45670#msg45670


Old topic: http://www.jdownloads.com/index.php/support-forum.html?topic=8543.msg45586#msg45586
Title: Re: PFD viewer
Post by: Tazzios on 08.03.2021 17:20:32
both are now on github  8) https://github.com/Tazzios?tab=repositories
Title: Re: PFD viewer
Post by: Arno on 11.03.2021 12:30:54
Good work!  8)
Title: Re: PDF viewer
Post by: Tazzios on 05.04.2021 14:01:25


I created a joomla plugin which does not need an override.
It has a lot of extra features compared to the old one.
Prjoect page: https://github.com/Tazzios/pdfviewer
demo: http://marijqg132.132.axc.nl/demopdfviewer/

v0.8 is my first public release* if you find bugs or have suggestions let me know.

*Also my first joomla plugin and real github project.



Title: Re: PFD viewer
Post by: Arno on 05.04.2021 22:07:19
Hi Tazzios,
congratulation for this plugin! I will test it very soon.  ;)
Title: Re: PFD viewer
Post by: Arno on 07.04.2021 11:35:24
Hi Tazzios,
I have tested it and it works very well. Good job.  8)

Maybe could you add a few more options?
So it could be useful to display only a few example pages from the document instead the complete file.
Would this be possible?

Also would it be much more flexible when it is possible to define the default linktext as a part from the placeholder and so on.

When it is okay for you I will add your plugin here in the download area.
Title: Re: PDF viewer
Post by: Tazzios on 09.04.2021 21:16:23
Quote from: Arno on 07.04.2021 11:35:24
Hi Tazzios,
I have tested it and it works very well. Good job.  8)

Maybe could you add a few more options?
So it could be useful to display only a few example pages from the document instead the complete file.
Would this be possible?
Thanks :)
I also thought about loading only selected pages. It seems possible if i look at some pdfjs examples, but i think the user then has the possibility to retrieve the complete file when checking.

I will look if i can do something with the preview file. But i think i run into this problem without creating an overrride http://www.jdownloads.com/index.php/support-forum.html?topic=12250.msg45670#msg45670

Quote
Also would it be much more flexible when it is possible to define the default linktext as a part from the placeholder and so on.
It is already possible to give the textlink in the placeholder
In articles you can do something like:
{ pdfviewer jdownloadsid=2 style=popup linktext="any linktext" }
In my jdownloads demo layout i use the {file_name} to show the filename as download link because els all the linktext would be the same.
linktext="{file_name}"
Or do you mean something else?
Quote
When it is okay for you I will add your plugin here in the download area.
That would be a honor. :)
Let me first use the code on 2 production sites this month to see if there are any bugs.
I don`t want to scare users away or get a mailbox overflow.
And maybe include translations.

Can you adjust the topic title >PFD to PDF





Title: Re: PFD viewer
Post by: Tazzios on 25.04.2021 19:18:29
Quote from: Arno on 07.04.2021 11:35:24
...

When it is okay for you I will add your plugin here in the download area.
You can put it now in the download area!  :D
found one (big) bug that is now fixed.
Title: Re: PFD viewer
Post by: Arno on 26.04.2021 11:01:58
Hi,
good news.  8)
Title: Re: PFD viewer
Post by: Tazzios on 06.06.2021 12:37:51
Quote from: Arno on 26.04.2021 11:01:58
Hi,
good news.  8)
I updated the pdfviewer to version 1.0.0. In the download area i see the old version maybe it is possible to link to the github instead of hosting the pdfviewer also on jdownloads?

I`m also busy with getting the plugin on extensions.joomla.org.
Title: Re: PFD viewer
Post by: Arno on 07.06.2021 10:27:45
Hi Tazzios,
done!