Some test text!

menu
How can I get the .NET Core SDK to work on Docker?keyboard_arrow_down

How can I get the .NET Core SDK to work on Docker?

The project needs to know where the shared lib is located. You can achieve this by any one of the following 2 approaches.

Approach 1:

You will add the following to the Docker file: ​ COPY libPDFNet* /usr/lib/ RUN rm /usr/lib/libPDFNetC.so;\ mv /usr/lib/libPDFNetC.so.6.10.0 /usr/lib/libPDFNetC.so

Adding the above commands will resolve the following two issues:

  1. PDFTron's native library needs to be placed directly in "/usr/lib/" folder
  2. Docker does not like how we symlink the so files, so removing the symlink is required

Approach 2:

  1. Manually remove the symlink libPDFNetC.so and rename the versioned so to libPDFNetC.so
  2. Edit the .csproj file to directly point to libPDFNetC.so
<Content Include="/src/MyApp/libPDFNetC.so">
    <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

Join our upcoming webinar to learn about how to collaborate on videos frame by frame directly in your browser

Save your seat
close