Hello,
I configured an apache server with mod_ssl and created a certificate.
Viewer crashes on "LoadSettings" because my configuration file is "https: / / localhost / visio / SETTINGS.DAT" and "visio" is an alias.
I added "visio"in the "httpd.conf" and the "virtual host" on port 443. More if I do not load config file myself the viewer is loaded but displays an error message on opening a PDF.
I wish I had more information about my problem, cordially.
HTTPS and configuration file
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: HTTPS and configuration file
Hi mr_steph,
I have asked someone with more knowledge in the Viewer SDKs to have a look at this topic and we will reply shortly.
Best,
Stefan
I have asked someone with more knowledge in the Viewer SDKs to have a look at this topic and we will reply shortly.
Best,
Stefan
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: HTTPS and configuration file
Hi, mr_steph.
1. Your example URL is somewhat wrong - it contains spaces (may be our forum engine added it, I don't known):
For example in VB.NET: - see our Viewer ActiveX examples for other programming languages...
If you call LoadSettings() or any other function from our control without the try-catch block then your program can generate an exception when our control returns error status code.
HTH.
1. Your example URL is somewhat wrong - it contains spaces (may be our forum engine added it, I don't known):
2. About "Viewer crashes". Please check your code - the call to the LoadSettings(...) function should be in a special try-catch "brackets" because it can return an error code (either one of our own special error codes or system standard) - it is the standard behavior for all COM-components.https: / / localhost / visio / SETTINGS.DAT
For example in VB.NET:
Code: Select all
Try
AxCoPDFXCview1.LoadSettings(pathToSettingsFile)
Catch ex As Exception
ShowErrorMessage(System.Runtime.InteropServices.Marshal.GetHRForException(ex))
End Try
If you call LoadSettings() or any other function from our control without the try-catch block then your program can generate an exception when our control returns error status code.
HTH.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 52
- Joined: Tue Jul 22, 2008 8:18 am
Re: HTTPS and configuration file
Thank you for your reply, but the path is correct and no spaces (I'm a bad copy and paste).
My problem is to open a file via HTTPS with the method openDocument and LoadSettings into the ActiveX in Javascript.
Does PDF viewer Pro supports SSL?
I put a try catch and e.message is empty. The viewer displays "Error in opening document: https://localhost/123.pdf Error [Application]: unable to download file "
After testing multiple aliases are not the cause of the problem because by loading a file from the site this does not work either.
My problem is to open a file via HTTPS with the method openDocument and LoadSettings into the ActiveX in Javascript.
Does PDF viewer Pro supports SSL?
I put a try catch and e.message is empty. The viewer displays "Error in opening document: https://localhost/123.pdf Error [Application]: unable to download file "
After testing multiple aliases are not the cause of the problem because by loading a file from the site this does not work either.
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: HTTPS and configuration file
Hi, mr_steph.

We will investigate and offer this as an option in the near future... Thanks for your report.
Best
Regards.
No, the downloading files through SSL is not supported currently.Does PDF viewer Pro supports SSL?

We will investigate and offer this as an option in the near future... Thanks for your report.
Best
Regards.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 52
- Joined: Tue Jul 22, 2008 8:18 am
Re: HTTPS and configuration file
Thank you for your reply.
Have you a way around the problem now?
Cordially
Have you a way around the problem now?
Cordially
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: HTTPS and configuration file
Hi, mr_steph.
Now you may:
1. use the non-SSL connection for downloading a document or settings file.
or
2. create IStream object assigned to any remote resource and pass this stream-object to our control directly and our control will read and process this resource from your stream-object...
Look to OpenDocumentFromStream, SettingsIO examples.
HTH.
Now you may:
1. use the non-SSL connection for downloading a document or settings file.
or
2. create IStream object assigned to any remote resource and pass this stream-object to our control directly and our control will read and process this resource from your stream-object...
Look to OpenDocumentFromStream, SettingsIO examples.
HTH.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.