Is ArcMap compatible with JavaScript? - javascript

I need to make an add-in in ArcMap, that I upload an arcmaps window where a 360 image type PhotoSphereViewer is displayed.
Ref: http://photo-sphere-viewer.js.org/
But when loading in viewer html a page that makes use of this library throws an error.
I would like to know how I can work with JavaScript in ArcMap, or if there is another alternative to present 360 images in ArcMap.

Related

Microsoft Edge PDF Viewer Extension Location

I am interested in messing with the built-in PDF viewer of Microsoft Edge. I know you can inspect its files in the Dev console, but I would like to know where these files are actually located so I can change them to alter/add some functionality.
Another possibility would be to run a user script when a PDF is loaded, but tampermonkey does not seem to work when a PDF file is opened in Edge.
Why I want to do this: I would like to see whether I can implement additional functions that I'd like to use in the PDF viewer. I know there are pdf js libraries out there, but I feel like none of them display pdfs as nicely as Edge does and I haven't found one that allows drawing on pdfs.
You can see the edge_pdf source code by inspect the page ,then click the Source panel, it show all the resource which edge_pdf loaded.

Disable pdf download and save option

I have a PDF file being viewed on the browser.
I want to disable Save, Download and print option of the PDF file.
Please help.
Try this:
<object width="100%" height="100%" type="application/pdf"
data="yourpdffile.pdf#toolbar=0" id="pdf_content"><p>Document load was not
successful.</p></object>
Make sure you add #toolbar=0 in the data attribute after your pdf file.
You can use iframe to your own version of PDF viewer.
Use pdfJS and when showing viewer.html just remove these buttons.
If user is viewing it on it's own tool, than you can't control it.
Google Drive can disable the PDF functions to download, print and copy as of 2015.
Note however, that users can still print using the browser print function.
https://gsuiteupdates.googleblog.com/2015/07/disable-downloading-printing-and.html
As others have noted, once the pdf is being viewed by the user, they can save it.
If you are just wanting to obfuscate the download, you could disable the menu as described but to truly prevent downloading of the PDF, then only thing you could really do is a little crazy but not impossible.
You could convert it to images and show those instead. Not an ultimate solution as they would still be able to save each image, but at the very least they would not get a PDF file from it (or at least if they are smart enough to convert the images to one, it would not be the same pdf file or content)
There are many tools to do this and you'd have to implement a viewer with paging but this might achieve what you want.

Convert interactive flash animation to javascript to use in html5

Hi,
I have a banner on my site made in flash. Its an animation that ends with a sequence showing buttons which the user can click to navigate to inner pages. Since flash seems to be dead soon I would like to replace that with html5 friendly code. Is it possible to have a program such as Adobe Flash CS5 to convert the full movie for me into javascript code? Or I have to write the javascript all by myself from scratch?
Thank you.
You can use Flash CC to publish you flash file into HTML canvas base structure. Steps -
Open file in Flash CC select commands->Convert to other Documents.
Folder Select HTML 5 Canvas from Dropdown and press OK. Now open
newly created Flash file and publish. It will give you the canvas
base html file.
The html and javascript you get is in organized format and you can even edit code as well.
Hope it solve your problem.

How can I get the x, y dimensions of a PDF Image

As you can see in the image above, the dimensions are embedded somewhere, but I know not where. Is there a utility which I could call through shell to determine the dimensions of the PDF?
Any help is appreciated.
I used Visual FoxPro above with a browser ActiveX in a form to display PDFs HTMLs etc..., I can use any shellScript or EXEs, dlls etc, if anyone knows how to do this....
Is Javascript able to look into a browser like FireFox which has a PDF displayed, to get the dimensions???
DKean

Embedding .rh 3d models in html for interactive display

I have to embed the 3D models (format: right hemisphere) in the HTML page (WebHelp). The 3D player has to be embedded in the page/browser, rather than being a pop-up page.
In other words, to act like a YouTube video player embedded in the HTML page, showing a lightweight splash screen or multimedia thumbnail, that you can turn into full screen.
I am not able to follow on how to use the SAP VisualEnterpriseViewer to accomplish this. Otherwise, can we use javascript for this purpose? I know that jsc3d does not support .rh format yet.
Please help.
Thanks
No one can support .rh format, except RH/SAP. It is a closed, proprietary format. And forget about html5, canvas, webgl etc. These are too open, SAP / RH have traditionally created data silos rather than working off of open standards.
SAP VEV , formerly DeepView, does have a complete JS interface. The viewer doesn't have to be a popup. Look in the docs, you can embed the viewer in a page, and disable all the menus etc through appropriate javascript calls. The docs are distributed with the viewer sdk, however it is getting rather hard to come by now. Also helpful, and included with the docs, are examples.

Categories