FoxitPDFSDKforWeb v12.0.0
Foxit PDF SDK for Web
PDFPageRendering Interface Reference

An interface for customizing the page-level loading overlay. Assign a constructor that implements this interface to options.customs.PDFPageRendering. The SDK creates an instance with the page rendering host element and the owner PDFPageRender, then calls PDFPageRendering.rendering / PDFPageRendering.rendered around page render, and PDFPageRendering.destroy when the page render is destroyed. More...

Public Member Functions

 constructor (eUi, pdfPageRender)
 Create a page rendering overlay controller. More...
 
void destroy ()
 Destroy the overlay controller and release references. More...
 
void rendered ()
 Called when the page finishes rendering. Hide or clear the loading UI. More...
 
void rendering ()
 Called when the page starts rendering. Show loading UI on the host element. More...
 

Detailed Description

An interface for customizing the page-level loading overlay. Assign a constructor that implements this interface to options.customs.PDFPageRendering. The SDK creates an instance with the page rendering host element and the owner PDFPageRender, then calls PDFPageRendering.rendering / PDFPageRendering.rendered around page render, and PDFPageRendering.destroy when the page render is destroyed.

See also
PDFViewer.constructor
class CustomPDFPageRendering {
constructor(eUi, pdfPageRender) {
this.$ui = PDFViewCtrl.Deps.jQuery(eUi);
}
this.$ui.html('page loading');
}
this.$ui.empty();
}
destroy() {
this.$ui = null;
}
}
customs: {
PDFPageRendering: CustomPDFPageRendering
}

Member Function Documentation

◆ constructor()

PDFPageRendering::constructor ( eUi  ,
pdfPageRender   
)

Create a page rendering overlay controller.

Parameters
eUiHTMLElement - Host element for the page loading overlay.
pdfPageRenderPDFPageRender - Owner page render instance.

◆ destroy()

void PDFPageRendering::destroy ( )

Destroy the overlay controller and release references.

Returns
void

◆ rendered()

void PDFPageRendering::rendered ( )

Called when the page finishes rendering. Hide or clear the loading UI.

Returns
void

◆ rendering()

void PDFPageRendering::rendering ( )

Called when the page starts rendering. Show loading UI on the host element.

Returns
void

Foxit Software Corporation Logo
@2026 Foxit Software Incorporated. All rights reserved.