PdfIntegrationProvider Class |
Namespace: RadPdf.Integration
The PdfIntegrationProvider type exposes the following members.
| Name | Description | |
|---|---|---|
| PdfIntegrationProvider |
Creates a new instance of the PdfIntegrationProvider class.
|
| Name | Description | |
|---|---|---|
| AdvancedSettings |
Gets an object that specifies the HTTP settings used with RAD PDF applications using this integration provider.
| |
| Current |
Gets a reference to the current PdfIntegrationProvider being used by this code.
| |
| FontResources |
Gets an object that specifies the font resources available in RAD PDF applications using this integration provider.
| |
| HttpSettings |
Gets an object that specifies the HTTP settings used with RAD PDF applications using this integration provider.
| |
| License |
Gets or sets an object that represents the Red Software issued license currently used by RAD PDF applications using this integration provider.
| |
| LiteSessionProvider |
Gets or sets an object that specifies the session provider used for Lite Documents with RAD PDF applications using this integration provider.
| |
| LiteStorageProvider |
Gets or sets an object that specifies the storage provider used for Lite Documents with RAD PDF applications using this integration provider.
| |
| PdfWebControlResources |
Gets or sets a ResourceManager used by the PdfWebControl for visible resources (e.g. text strings used in the interface).
| |
| StorageProvider |
Gets an object that specifies the storage provider used with RAD PDF applications using this integration provider.
| |
| WcfSettings |
Gets an object that specifies the WCF settings used with RAD PDF applications using this integration provider.
|
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnDocumentAppending |
Called before a document is appended.
| |
| OnDocumentCreated |
Called after a document is created.
| |
| OnDocumentDownloading |
Called before a document is downloaded.
| |
| OnDocumentEmbeddedFileDownloading |
Called before an embedded file is download from a document.
| |
| OnDocumentInit |
Called before a document is loaded, as the document interface is initializing.
| |
| OnDocumentPasswordAttempt |
Called before a document password attempt is made by the GUI.
| |
| OnDocumentPrinting |
Called before a document is printed.
| |
| OnDocumentSaved |
Called after a document is saved.
| |
| OnDocumentSaving |
Called before a document is saved.
| |
| OnDocumentSearching |
Called before a document is searched.
| |
| OnDocumentUploading |
Called before a document is uploaded into an empty PdfWebControlLite instance.
| |
| OnHttpHandlerException |
Called when an exception occurs in a call to the RAD PDF Middleware.
| |
| OnInternalWarning |
Called when an internal warning occurs.
| |
| OnObjectDataAdding |
Called before an object's data (e.g. the image data for an PdfImageShape object) is added.
| |
| OnPageRenderOnDemand |
Called before an page is rendered on demand.
| |
| ProcessAppendDataRequest |
Called when processing a request for object data initiated by the Client API which set the user mode to object insertion with a custom object key.
| |
| ProcessObjectDataRequest |
Called when processing a request for object data initiated by the Client API which set the user mode to object insertion with a custom object key.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
using System; using System.Web; using RadPdf.Integration; public class CustomPdfIntegrationProvider : PdfIntegrationProvider { public override void OnDocumentSaving(DocumentSavingEventArgs e) { base.OnDocumentSaving(e); // Set that a PDF reader should construct the appearance for // form fields in the document. e.Document.Fields.NeedAppearances = true; } }
using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using RadPdf; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddRazorPages(); builder.Services.AddSession(); var app = builder.Build(); app.UseStaticFiles(); app.UseRouting(); app.UseSession(); app.UseAuthorization(); // Or however you normally process page requests app.MapRazorPages(); // Create middleware settings RadPdfCoreMiddlewareSettings settings = new RadPdfCoreMiddlewareSettings() { // Add SQL Server Connection String, if not using Lite Documents // Sample connection string below connects to a SQL Server Express instance on localhost // TrustServerCertificate=True is set to avoid a trust exception (e.g. "The certificate chain was issued by an authority that is not trusted.") // ConnectionString = @"Server=.\SQLExpress;Database=RadPdf;Trusted_Connection=Yes;TrustServerCertificate=True;", // Add License Key LicenseKey = "DEMO", // Attach the Integration Provider IntegrationProvider = new CustomPdfIntegrationProvider() // To run RAD PDF without the System Service, add UseService = false // If using Lite Documents without the System Service, a LiteStorageProvider must also be implemented //UseService = false }; // Add RAD PDF's middleware to app app.UseRadPdf(settings); app.Run();