PDF Editor Installation Guide for Web Part

This guide outlines the installation steps and general administrative topics related to the PDF Editor for SharePoint Online extension.

Prerequisites

Before installing the PDF Editor for SharePoint Online web part, ensure you have all the required prerequisites — outlined below — installed on your computer.

  • Windows Permissions: Windows administrator privileges to run the installer (EXE).
  • Office 365 Permissions: Global administrator (or tenant administrator) privileges.
  • Node.js: You need Node.js installed on your computer.
  • SharePoint Online App Catalog: Make sure you have an app catalog in your tenant. If not, follow these instructions to create one.
  • A Vercel account. If you don’t already have one:
    • Open vercel.com
    • Click Sign Up and complete the registration.
    • Once you register for a Vercel account, open the Vercel CLI page.
    • Copy the following command and run it in the command prompt to install Vercel on your computer: npm i -g vercel
    • If you already have Vercel installed, use the following command to check its version and update it if necessary: vercel --version

Installing PDF Editor

To install PDF Editor for SharePoint Online, follow the instructions outlined in the next sections.

New Installation

  1. Download the installation archive and unarchive it to the folder of your choice.
  2. In that folder, find and run the PSPDFKit Editor for SharePoint Online (webpart).exe file. Make sure you’re running the file as an administrator.
  3. When you launch the installer, it’ll prompt you to install the minimum version of the NuGet provider, along with modules from a repository. Agree to both of these to continue.
  4. In the PowerShell window, press 1 to perform a fresh installation. In the next step, the installer will ask where you want to upload the app.
    • Press 1 to upload the app in the tenant app catalog.
    • Press 2 to upload the app in a site app catalog.

Uploading the App in the Tenant App Catalog

  1. To upload the app in the tenant app catalog, press 1.

  2. Next, enter the SharePoint tenant URL. e.g. https://tenant.sharepoint.com

  3. Enter your Office 365 login credentials (email and password).

    Be sure to enter your administrator credentials — not your user credentials — because you’ll need them to log in to your Azure account and create an app registration.

    You’ll be presented with a dialog asking you to consent to permissions required to run the PnP Management Shell. Once you agree, the app will be uploaded to the app catalog.

  4. You’ll then be asked if you want to deploy the app to all sites in the tenant. Choose Y.

  5. You’ll be asked to enter a site page. By default, it will use the tenant URL. Enter Y.

  6. Next, you’ll be asked if you want to open PDF files from all sites in the web page. Enter Y.

    Note: If you set the web page URL, all documents will be loaded on that page, even if they’re in different site collections. As such, you have to ensure that the site containing the page with the web part can open documents from other sites by setting the appropriate permissions.

  7. Enter your web part URL (it will end with ./pspdfkit.aspx).

  8. In this step, you’ll be prompted to update the license key. If you have the license key, enter Y and paste your license key in the next step. If you don’t have the license key, enter N. In this case, the product will be fully functional but will have a trial watermark.

Uploading the App in a Site App Catalog

  1. To upload the app in a site app catalog, press 2.
  2. Next, enter your SharePoint site URL.
  3. Enter your Office 365 login credentials (email and password). Be sure to enter your administrator credentials — not your user credentials — because you’ll need them to log in to your Azure account and create an app registration. You’ll be presented with a dialog asking you to consent to permissions required to run the PnP Management Shell. Once you agree, the app will be uploaded to the app catalog.
  4. If the SharePoint site doesn’t have an app catalog, you’ll be prompted to create one. Enter Y.
  5. You’ll be prompted to install the app on this site, and it’ll add appropriate permissions and deploy the PSPDFKit artifacts to the app catalog. Enter Y.
  6. You’ll then be prompted to create a page and add the PSPDFKit Editor web part. Enter Y.
  7. You’ll be asked if you want to open PDF files from all sites on this web page. As the deployment is specific to a site collection, enter N.
  8. In this step, you’ll be prompted to update the license key. If you have the license key, enter Y and paste your license key in the next step. If you don’t have the license key, enter N.

Creating a Web Part Page on a Site

To install PDF Editor for SharePoint Online, follow the instructions outlined in the next sections.

  1. Download the installation archive and unarchive it to the folder of your choice.

  2. In that folder, find and run the PSPDFKit Editor for SharePoint Online (WebPart).exe file. Make sure you’re running the file as an administrator.

  3. When you launch the installer, it’ll prompt you to install the minimum version of the NuGet provider, along with modules from a repository. Agree to both of these to continue.

    Note: If the NuGet provider and repository are installed, this step won’t appear.

  4. In the PowerShell window, press 2 to create a web part page in the site.

  5. In the next step, enter the SharePoint tenant URL.

  6. Enter your Office 365 login credentials (email and password). You’ll be presented with a dialog asking you to consent to permissions required to run the PnP Management Shell. Once you agree, the app will be uploaded to the app catalog.

  7. Next, you’ll be asked if you want to open PDF files from all sites in the web page. Enter Y.

    Note: If you set the web page URL, all documents will be loaded on that page, even if they’re in different site collections. As such, you have to ensure that the site containing the page with the web part can open documents from other sites by setting the appropriate permissions.

  8. Enter your web part URL (it will end with ./pspdfkit.aspx).

  9. The page and web part will be added to SharePoint Online.

Making a Web Part Page Accessible from Other Sites and Site Collections

If you want the documents from different site collections to be loaded on a site containing the page with the web part, follow the steps outlined below.

Note: If this property isn’t set, create a page in each site collection under the SitePages library and name it pspdfkit.aspx.

  1. Download the installation archive and unarchive it to the folder of your choice.

  2. In that folder, find and run the PSPDFKit Editor for SharePoint Online (WebPart).exe file. Make sure you’re running the file as an administrator.

  3. When you launch the installer, it’ll prompt you to install the minimum version of the NuGet provider, along with modules from a repository. Agree to both of these to continue.

    Note: If the NuGet provider and repositories are installed, this step won’t appear.

  4. In the PowerShell window, press 3 to make a web part page accessible from other sites and site collections.

  5. Then, enter the SharePoint tenant URL.

    Note: If you set the web page URL, all documents will be loaded on that page, even if they’re in different site collections. As such, you have to ensure that the site containing the page with the web part can open documents from other sites by setting the appropriate permissions.

  6. You’ll be asked if you want to open PDF files from all sites on this web page. Enter Y.

  7. Next, enter the SharePoint tenant URL, https://tenant.sharepoint.com

  8. Enter your web part URL (it will end with ./pspdfkit.aspx) e.g. https://tenant.sharepoint.com/sites/allcompany/SitePages/pspdfkit.aspx

    The web part will be added to the page.

Preventing a Web Part Page from Being Accessible from Other Sites and Site Collections

If you want to prevent documents from being loaded on a common site containing the page with the web part, follow the steps outlined below.

  1. Download the installation archive and unarchive it to the folder of your choice.

  2. In that folder, find and run the PSPDFKit Editor for SharePoint Online (WebPart).exe file. Make sure you’re running the file as an administrator.

  3. When you launch the installer, it’ll prompt you to install the minimum version of the NuGet provider, along with modules from a repository. Agree to both of these to continue.

    Note: If the NuGet provider and repositories are installed, this step won’t appear.

  4. In the PowerShell window, press 4 to stop a web part page from being accessible from 04 other sites and site collections.

  5. Then, enter the SharePoint tenant URL.

  6. You’ll be asked if you want to remove the web page from being accessible from other sites. Enter Y.

  7. Note: Now that you’ve removed the site, you’ll need to create the pspdfkit.aspx page on each site where you want to use the PSPDFKit Editor. The access to the page will be removed.

Updating the License Key

If you want to prevent documents from being loaded on a common site containing the page with the web part, follow the steps outlined below.

  1. Run the PSPDFKit Editor for SharePoint Online (extension).exe file in the folder. Make sure you’re running the file as an administrator.
  2. In the PowerShell window, press 3 to update the web application and/or the license file.
  3. Next, enter the SharePoint tenant URL, https://tenant.sharepoint.com
  4. Enter your PSPDFKit Editor license key where it asks for you to update the license key.

Uninstalling PDF Editor

To uninstall the PDF Editor for SharePoint Online, follow the steps outlined below.

Removing a Web Part Page from a Site

  1. Run the PSPDFKit Editor for SharePoint Online (extension).exe file in the folder. Make sure you’re running the file as an administrator.
  2. In the PowerShell window, press 6 to remove a web part page from a site.
  3. Enter the site URL from where to remove the web part page pspdfkit.aspx.
  4. In the next step, enter your Office 365 login credentials (email and password).
  5. You’ll be asked if you want to remove a client-side page. Enter Y. The web part page will be removed from the site.

Removing the PSPDFKit Editor App from the App Catalog

  1. Run the PSPDFKit Editor for SharePoint Online (extension).exe file in the folder. Make sure you’re running the file as an administrator.
  2. In the PowerShell window, press 7 to remove the PSPDFKit Editor app from the app catalog.
  3. Then, enter the site URL from where to remove the web part page pspdfkit.aspx.
  4. You’ll be prompted where to remove it from: 1 to remove it from the tenant app catalog, and 2 to remove it from the site app catalog.
  5. Select the appropriate option — in this scenario, press 1. The PSPDFKit Editor app will be removed from the tenant app catalog.

Granting Access to a Guest User

The PDF Editor for SharePoint Online web part supports guest users. By default, the Everyone group is deactivated in the tenant, so you’ll need to activate this group at the tenant level by running the command below and giving Read permissions on the App Catalog site to the Everyone group.

Go to Site Permissions of App Catalog, and add the Everyone group with Read permission. Clear the browser cache. The PDF Editor for SharePoint Online will then be available for guest users.

Have a Question?
We’re Always Happy to Help.

© Muhimbi Ltd. 2008 - 2024
This website uses cookies to ensure you get the best experience. Learn more