Hello again,
we're integrating the PDF XChange Viewer into our SAP Frontend. So the Integration is done by ABAP and the ActiveX-Control of the viewer. An important requirement for the viewer is not to load any documents locally. So we tried to use the functionality to open the documents from a stream. The problem here is, that ABAP doesn't know any streaming Objects that would be helpful (in this case such as VB IStream, as mentioned in the examples "OpenDocumentFromStream" and "SaveDocumentToStream").
The documents should be openend by URL.
Any alternative solutions or suggestions, how to solve this problem?
Thanks again,
Chris
problem with open document from stream
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: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: problem with open document from stream
Hi Chris,
Using the " OpenDocument()" method you should be able to specify the URL instead of a local file name directly.
So you can e.g. open a file from URL via code, and then disable the "OpenDocument" command so that the end user can't access it and open another file.
Regards,
Stefan
Using the " OpenDocument()" method you should be able to specify the URL instead of a local file name directly.
So you can e.g. open a file from URL via code, and then disable the "OpenDocument" command so that the end user can't access it and open another file.
Regards,
Stefan
-
- User
- Posts: 9
- Joined: Tue Oct 01, 2013 8:27 am
Re: problem with open document from stream
The problem when opening the file via URL is, that the viewer download it into a given folder (local "document" folder as default). So this leads to the same problem 
Is there a way to disable the "local saving" here?
Greets,
Chris

Is there a way to disable the "local saving" here?
Greets,
Chris
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: problem with open document from stream
Hi Chris,
I am afraid that you can only work wtih streams directly, and documents opened from URLs will always be downloaded (normally to the temp folder) first.
Regards,
Stefan
I am afraid that you can only work wtih streams directly, and documents opened from URLs will always be downloaded (normally to the temp folder) first.
Regards,
Stefan
-
- User
- Posts: 9
- Joined: Tue Oct 01, 2013 8:27 am
Re: problem with open document from stream
OK thanks Stefan,
could it be possible to use JavaScript in order to open the document from stream? As mentioned above, ABAP is not very friendly refering to streams
Greets,
Chris
could it be possible to use JavaScript in order to open the document from stream? As mentioned above, ABAP is not very friendly refering to streams

Greets,
Chris
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: problem with open document from stream
Hi Chris,
Do you mean JS inside the Viewer AX? There are security restrictions on that - and it can't access external files due to security restrictions.
Regards,
Stefan
Do you mean JS inside the Viewer AX? There are security restrictions on that - and it can't access external files due to security restrictions.
Regards,
Stefan