[pdfJS Viewer] Need default entry (eSpace attached)

[pdfJS Viewer] Need default entry (eSpace attached)

  
Forge Component
(6)
Published on 3 Apr by Caio Santana Magalhães
6 votes
Published on 3 Apr by Caio Santana Magalhães

Hello,


I would like to include this component as a dependency of my PDFObject module (currently at 152 downloads).


https://www.outsystems.com/forge/component/1264/pdfobject/


 It should be used as a fallback mechanism for when the browser does not support embedding PDF files natively.


Since I'll be including the URL address to pdfJSViewer in a Site Property inside PDFObject, I need pdfJSViewer to have a default entry so I can set the initial value of my Site Property to:


"/pdfJSViewer/"


Instead of


"/pdfJSViewer/ViewerScreen.aspx"


The issue here is the leading ".aspx", which would make my component only compatible with the .NET stack.


I've attached an altered version of the latest version of the pdfJSViewer eSpace including the default entry, and also solved two warnings by wrapping two variables around EncodeJavaScript() functions.


Please consider pushing these changes. I'll publish the aforementioned dependency once this update goes live.


Thank you!

Hello Caio,

Would you like to be part of the team and do this? :)
I would appreciate ;)

Cheers!

Eduardo Jauch wrote:

Hello Caio,

Would you like to be part of the team and do this? :)
I would appreciate ;)

Cheers!


Hi, Eduardo.


Yes, that would be great.


Thanks

Solution

Done! :)

Welcome to the team! :)

Solution

Eduardo Jauch wrote:

Done! :)

Welcome to the team! :)


Dependency added. You can see it in action by opening the following link on Mozilla Firefox and clicking Sample.pdf


http://caiosm1005.outsystemscloud.com/SimpleViewerDemo/


Thanks.