how to use poppler in azure web app (Linux server)

Su Myat Hlaing 200 Reputation points
2023-09-14T06:52:58.7733333+00:00

how to use poppler in azure web app (Linux server). I can not install poppler from ssh. any way to try? please.

sudo apt-get install poppler-data -bash: sudo: command not found

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,175 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Su Myat Hlaing 200 Reputation points
    2023-10-01T07:10:10.1333333+00:00

    I need to install sudo first.

    apt-get install sudo

    after that ,

    sudo apt-get install poppler-data

    sudo apt-get install poppler-utils

    I can resolve with this way.

    1 person found this answer helpful.

  2. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2023-09-14T07:51:25.33+00:00

    To fix this error, log into your system as the root user or simply switch to the root user.

    sudo su -
    

    Next, update the package lists and install the sudo package as follows.

    apt update -y
    apt install sudo -y
    

    Try installing poppler again, after finishing the above command


    --please don't forget to upvote and Accept as answer if the reply is helpful--


  3. brtrach-MSFT 17,731 Reputation points Microsoft Employee Moderator
    2023-09-25T03:09:06.7133333+00:00

    @Su Myat Hlaing To use Poppler in an Azure Web App running on Linux, you can try using the Poppler NuGet package. Here are the steps to use Poppler in your Azure Web App:

    1. Open your Azure Web App in the Azure portal.
    2. Go to the "Configuration" blade.
    3. Scroll down to the "Application settings" section and click "New application setting".
    4. Add an application setting with the name "WEBSITE_RUN_FROM_PACKAGE" and the value "1".
    5. Save the application setting.
    6. Go to the "Deployment Center" blade.
    7. Choose your preferred deployment method and follow the instructions to deploy your application.
    8. Once your application is deployed, you can use the Poppler NuGet package in your code.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.