Highlighted

I want to integrate adobe pdf in my wordpress site

New Here ,
Aug 27, 2020

Copy link to clipboard

Copied

Hey, I have few pdf documents which I want to publish on my website. I want that visitors can read all the documents online but there should be no download option. Do you have any facility or wordpress plugin to make this possible? Thanks.

[link removed by moderator]

TOPICS
How to, View PDF

Views

43

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

I want to integrate adobe pdf in my wordpress site

New Here ,
Aug 27, 2020

Copy link to clipboard

Copied

Hey, I have few pdf documents which I want to publish on my website. I want that visitors can read all the documents online but there should be no download option. Do you have any facility or wordpress plugin to make this possible? Thanks.

[link removed by moderator]

TOPICS
How to, View PDF

Views

44

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 27, 2020 0
Adobe Community Professional ,
Aug 27, 2020

Copy link to clipboard

Copied

There is no Wordpress plugin at this time but a relatively simple JavaScript could be developed that would be run on every page to convert direct links to PDF files into click events that use Embed API which can allow viewing but prevent downloading and printing.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 27, 2020 0
New Here ,
Aug 27, 2020

Copy link to clipboard

Copied

Ok thank you ,let me discuss it with my developer

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 27, 2020 0
Adobe Community Professional ,
Aug 27, 2020

Copy link to clipboard

Copied

Adding to my previous reply...

I just wrote a basic jQuery plugin that will find all direct links to PDF files on the page and then change the behavior so that the files are displayed using Embed API in Lightbox mode. You can see it in action here. The HTML for the page is below. The jquery plugin should work in WordPress. Any number of WordPress plugins can be used to add it but I prefer Scripts-n-Styles. Be sure to load the jquery plugin after you load the Embed API JavaScript. You will obviously need to replace YOUR_CLIENT_ID with your credential from Adobe. 

 

 

<body>
    <div class="container">
        <div class="buttonHolder">
            <button><a href="https://documentcloud.adobe.com/view-sdk-demo/PDFs/Summary.pdf">Show Summary</a></button>
            <button><a href="https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf">Show
                    Brochure</a></button>
            <button><a href="https://documentcloud.adobe.com/view-sdk-demo/PDFs/Overview.pdf">Show Overview</a></button>
        </div>
    </div>
    <script src="https://documentcloud.adobe.com/view-sdk/main.js"></script>
    <script src="https://practicalpdf.com/jquery-plugins/embed-api-for-jquery.js"></script>
    <script>
        const clientId = "YOUR_CLIENT_ID";
        var viewParameters = {
            defaultViewMode: "FIT_PAGE", // or "FIT_WIDTH"
            showPageControls: true, // default is true
            dockPageControls: true, // default is false
            showDownloadPDF: false, // default is true
            showPrintPDF: false, // default is true
            exitPDFViewerType: "RETURN" // or "CLOSE" - sets how to exit the lightbox
        }

        $(document).ready(function () {
            document.addEventListener("adobe_dc_view_sdk.ready", function () {
                $("body").useAdobeLightbox(clientId, viewParameters);
            });
        });
    </script>
</body>

 

  

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 27, 2020 0
Resources