1. Roland Smith
  2. PowerBuilder
  3. Monday, 20 May 2019 21:12 PM UTC

If I have a PDF file in a blob variable, is there a way to display it without writing it to a file? Currently I am writing to a file and displaying it in the WebBrowser control.

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 21 May 2019 21:28 PM UTC
  2. PowerBuilder
  3. # 1

Hi Roland;

  No .. there is no native PB feature for viewing PDF's in PB currently. You would have to use the web browser approach (which I like to do) or use a 3rd party OLE / Active-X solution.

Regards ... Chris

Comment
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Tuesday, 21 May 2019 10:53 AM UTC
  2. PowerBuilder
  3. # 2

I guess you could start with this link:

https://stackoverflow.com/questions/24535799/pdf-js-and-viewer-js-pass-a-stream-or-blob-to-the-viewer

Using this idea you could use an ole browser connection and build the HTML with the PDF data in the page?

David

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.