problem with open document from stream

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Stifelch
User
Posts: 9
Joined: Tue Oct 01, 2013 8:27 am

problem with open document from stream

Post by Stifelch »

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
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: problem with open document from stream

Post by Stefan - PDF-XChange »

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
Stifelch
User
Posts: 9
Joined: Tue Oct 01, 2013 8:27 am

Re: problem with open document from stream

Post by Stifelch »

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 :P

Is there a way to disable the "local saving" here?

Greets,
Chris
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: problem with open document from stream

Post by Stefan - PDF-XChange »

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
Stifelch
User
Posts: 9
Joined: Tue Oct 01, 2013 8:27 am

Re: problem with open document from stream

Post by Stifelch »

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
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: problem with open document from stream

Post by Stefan - PDF-XChange »

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