You are viewing limited content. For full access, please sign in.

Question

Question

streaming a PDF

asked on July 23, 2018

Hello all,

From what I can see of the documentation, Web Access can only stream Audio and Video files.

Is there a way to stream PDFs?

It doesn't appear to be support, according to the documentation and older posts. I suspect I'll have to write a web service to do the trick.

-Ben

0 0

Answer

SELECTED ANSWER
replied on July 23, 2018

You can get a content stream for any electronic file if you have the CMIS gateway. With the CMIS browser binding, the URL of the electronic file has a fixed format.

1 0

Replies

replied on July 23, 2018

In our documentation, we use "streaming" to refer to the UI of giving the user random access into a media file.  It's true that supporting that properly does mean that there is an API that allows random access into the byte stream.  I emphasize the distinction because our PDF viewer (the one that's embedded in WA) also uses random access into the data stream, but we don't refer to it as "streaming a PDF".

These API's aren't documented, but range requests are part of the generic HTTP spec.  So it's likely to be more stable than our other undocumented API's.

0 0
replied on July 23, 2018

Hi Brian,

Are you able to assist with accessing the API via a HTTP request? To be fair, I think I'd rather write my own service using documented APIs than to access an undocumented API/function. But now I'm curious to know if there's a URL I can use to get a PDF stream.

0 0
SELECTED ANSWER
replied on July 23, 2018

You can get a content stream for any electronic file if you have the CMIS gateway. With the CMIS browser binding, the URL of the electronic file has a fixed format.

1 0
replied on July 23, 2018 Show version history

Hi Leif,

I thought of that and suggested it to the customer

They said no because they'd prefer a synchronous REST or SOAP end point.

Thanks though. I'll likely suggest it again and do some POC testing for their response.

 

 

0 0
replied on July 23, 2018

If this is meant to be called outside the context of Web Access, it won't work.  It requires an existing connection to the repository and will be blocked as an XSRF attack if it comes from somewhere other than the browser that logged in to Web Access.

1 0
replied on July 16, 2019

Now I am looking at this as a possible internal solution, so it might very well work.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.