[This is preliminary documentation and is subject to change.]
These examples illustrate the basics of using the RadPdfApi to interface a web application with a RadPdfWebControl instance.
Introduction
The RadPdfApi Class for JavaScript can be used to assist with web application integration and allow for smooth PostBacks to your ASP.NET application
An instance of the RadPdfApi can be created to interface with a single RadPdfWebControl instance. This is done by creating an instance of the RadPdfApi class via the RadPdfApi Constructor. When constructing an instance of the RadPdfApi class, the ID of the RadPdfWebControl instance which you wish to interface with must be passed as a parameter. For example:
var myRadPdfApi = new RadPdfApi("RadPdfWebControl1"); // where "RadPdfWebControl1" is the ID (ClientID) assigned to the RadPdfWebControl instance
Methods of the RadPdfApi class can then be called. For example:
myRadPdfApi.save(false);
Examples
| Name | Description | |
|---|---|---|
| Pre PostBack Save Example | Save RadPdfWebControl contents before PostBack |