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

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

Public Member Functions

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

Detailed Description

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

See also
PDFViewer.constructor
class CustomPDFDocRendering {
constructor(eUi, pdfDocRender) {
this.$ui = PDFViewCtrl.Deps.jQuery(eUi);
}
this.$ui.html('doc loading');
}
this.$ui.empty();
}
destroy() {
this.$ui = null;
}
}
customs: {
PDFDocRendering: CustomPDFDocRendering
}

Member Function Documentation

◆ constructor()

PDFDocRendering::constructor ( eUi  ,
pdfDocRender   
)

Create a document rendering overlay controller.

Parameters
eUiHTMLElement - Host element for the document loading overlay (.fv__pdf-doc-rendering).
pdfDocRenderPDFDocRender - Owner document render instance.

◆ destroy()

void PDFDocRendering::destroy ( )

Destroy the overlay controller and release references.

Returns
void

◆ rendered()

void PDFDocRendering::rendered ( )

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

Returns
void

◆ rendering()

void PDFDocRendering::rendering ( )

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

Returns
void

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