Installation and running examples JavaScript via C++
Contents
[
Hide
Show
]Installing Aspose.Page for JavaScript
To install and use Aspose.Page for JavaScript from a ZIP archive, follow the following instructions:
- Extract the files from the ZIP archive into a folder.
- Encrypt your *.lic file using
encrypt_lic.html
. - Edit
settings.JSON
and set up your settings. - Use AsposePageforJS.js in your html:
1<!-- Load and initiate Aspose.Page for JavaScript -->
2<script type="text/javascript" async src="AsposePageforJS.js"></script>
or using with Web Workers
1/* Web Worker*/
2const AsposePageWebWorker = new Worker("AsposePageforJS.js");
You can directly download a ZIP archive by clicking the ‘Download’ button or get a specific release.
If there is no web server installed, you can run the examples locally, using Python. So, if you are using Linux or Mac OS X, everything is ready on your system. If you are a Windows user, you can download the installation file from the Python home page:
Installing Python on Windows
- Go to python.org.
- In the download section, select the link to Python “3.xxx”
- At the bottom of the page, select the Windows x86 executable installer and download it.
- After downloading the file, run it.
- On the first page of the installer, select the “Add Python 3.xxx to PATH” checkbox
- Click Install, and then click Close when the installation ends.
Run examples
- Then go to the directory where to open the ZIP archive.
- Run in the console ‘python -m http.server 8080’.
- Then we open the browser and follow the link: ‘http://localhost:8080/example.html’
System Requirements
Aspose.Page for JavaScript supports the modern web browsers:
- Chrome
- Edge
- Firefox
- WebKit/Safari