277
Views
6
Comments
How can I open PDF File in new tab using Binary Data, without using plugin?

How can I open PDF File in new tab using Binary Data, without using plugin in Traditional Web Outsystem 11?

I'm thinking using javascript, see sample for mobile
https://www.outsystems.com/forge/component-overview/10446/binary-base64-data-to-pdf

2021-04-17 09-53-48
José Gonçalves

Check this topic to learn how to display PDFs in several manners:

https://www.outsystems.com/forums/discussion/71570/screen-not-found-error/#Post291065

UserImage.jpg
Kevin Rosuelo

Thank you for this. Is there any method that will not requires a plug in or component?

2021-04-17 09-53-48
José Gonçalves

Yes, your browser should be able to open the PDF so you can point the link to a new tab.

UserImage.jpg
Kevin Rosuelo

I tried to implement that scenario, but i can't open in new tab for pdf file. My source file of pdf is on shared folder or server directory. 

2021-04-17 09-53-48
José Gonçalves

Since there isn't any known component to convert from binary to pdf you may need to create an extension.

There are several examples in C# to convert binary to pdf, this is just one:

https://stackoverflow.com/questions/14111442/convert-binary-data-to-a-pdf-file


UserImage.jpg
Kevin Rosuelo

I found one, but this is implemented in mobile. not in traditional web
https://www.outsystems.com/forge/component-overview/10446/binary-base64-data-to-pdf

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.