Topic: Просмотр PDF документов в сообщениях
Hello !
Where you able to think about the evolution of the extension ?
Can you tell me how I could display a pdf inside a post ?
Thanks
$matches[2]
You are not logged in. Please login or register.
Hello !
Where you able to think about the evolution of the extension ?
Can you tell me how I could display a pdf inside a post ?
Thanks
$matches[2]
Very good idea, but i not have time for work.
You can enable support .pdf for uploading and browser is open pdf document.
I was able to upload a pdf file via pan_uploader, but I got only a link to click and open the pdf in a new tab.
I would like to open the pdf INSIDE the mesage.
For it nesessery write new extensions. Could you find script for open and read this documents? And I will do it.
MaraKat, is nothing complicated, a little zeal and your problems will be solved!
The code to help you:
$file = './path/to/the.pdf';
$filename = 'Custom file name for the.pdf'; /* Note: Always use .pdf at the end. */
header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $filename . '"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($file));
header('Accept-Ranges: bytes');
@readfile($file);
sempai, i think that it is better to write another application for this. She want to the document show in post.
As I understand...
Thank you everybody.
You know, I am no coder !
In my other CMS, I am able to include PDF in an iframe. I do not know if it is proper, but it is efficient, even if it is only for visitors who give their browser instructions to read the pdf and not download it.
Here is an example : http://revestou.fr/pages/018-balades-hi … ons-fr.php
Here is the HTML code that I used :
<p style="text-align: center;"><iframe class="embed-responsive-item" name="Histoire du Revest et des Laurons" src="/files/histoire-du-revest-les-laurons-par-gustave-lambert-1884.pdf" scrolling="yes" height="1160px" width="98%"></iframe><br />
</p>
What I would like with pan_uploader is to produce this kind of code in the message after uploading the file. If you think that an iframe is acceptable.
PS : I remind you that with the new version I cannot manage the files anymore (see my post above) : the list of files and images are empty in administration, even if I was able to use some of these files.
not all browsers support viewing pdf documents. We will try to connect the library of scripts, if there is a success, then a new extension will be released.
Solution 1 - https://pdfobject.com/generator/
MaraKat, Maybe it would be better to display the documents on a separate page than in the message?
For example, you click on a PDF file and it opens in a new window for viewing, or in a darkened window on the same page.
Well... opening in a new tab or window, I can do it already : I upload the pdf via Pan_uploader and clicking on the displayed link opens the pdf inside the browser in a new tab, according to my browser settings. It is not what I want.
So a new tab is no soluce for what I whish to do. I really would like to open the pdf inside the message. Opening it in a lightbox (above the active tab with a darkened background) would be an alternative possibility, but I like it less.
Hello ! Where you able to think about this feature ?
sorry, I would help, but I do not have much time now.
Is it possible to use in PunBB something that would give this as source code ?
<div><object data="/files/name-of-file.pdf" type="application/pdf" width="100%" height="1100"></object></div>
I'll try. What version of the bootloader are you using?
I done! More info & discussion in topic https://punbb.softplaza.net/t-1050.html
Generated in 0.042 seconds (67% PHP - 33% DB) with 25 queries