PDF Viewer not displaying documents being hosted on Linux.

0
0

We upgraded our application from WiseJ 2.5 to 3.1

We also moved hosting the application from IIS to Linux.

The application works as expected however the PDF viewer is not displaying documents.

We have tried both methods below and both are unsuccessful on Linux but successful on Windows.

No errors are thrown, just nothing displays.

PdfViewer1.PdfSource = String.Format(“https://[our domain]/pdf/{0}”, cboDocuments.SelectedItem.ToString)
PdfViewer1.PdfStream = New FileStream(Path.Combine(Application.StartupPath, “pdf”, cboDocuments.SelectedItem.ToString), FileMode.Open)

 

  • You must to post comments
0
0

I am experiencing issue that PDFviewer is not working when Authentication is enabled on NGINX site.

 

I am getting 401 on GET requests

[24/Mar/2023:14:34:20 +0000] – – 401 – GET https someurl.net “/postback.wx?sid=6959d9f4-c5c1-29b8-c39e-11f43b44b8e4&x=ewAiAGkAZAAiADoAIgBpAGQAXwA5ADAAOQAiAH0A&v=638152652604151114” [Client X.X.X.X] [Length 578] [Gzip -] [Sent-to 172.18.0.11] “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.51” “https://mozilla.github.io/”

If authentication is disabled no error is shown and PDFViewer works as expected

  • Luca (ITG)
    The mozilla pdf viewer or any other pdf viewer take a URL to download the file to display. We can’t change the way http authentication works. You probably have to tweak the way you set up the authentication on the server.
  • You must to post comments
0
0

I had to add CAS to NGINX site configuration.

PdfViewer1.PdfSource is now working.

 

  • You must to post comments
0
0

Hi Chad,

I tried previewing a PDF from a Linux server and it works as expected.

We would need a reproducible test case that works on windows but fails on Linux, if you can wrap up a small sample that would be great!

Best,
Alaa

  • You must to post comments
0
0

Hi Chad,

Thank you for reporting this issue, we will try to reproduce it and get back to you ASAP!

Best,
Alaa

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.