|
FoxitPDFSDKforWeb v12.0.0
Foxit PDF SDK for Web
|
An interface for injecting custom content or gating default page bitmap rendering. Assign a constructor that implements this interface to options.customs.PageCustomRender. The SDK creates an instance with the page custom container (.fv__pdf-custom-page-container) and the owner PDFPageRender, then calls PageCustomRender.render before the page bitmap is rendered.
More...
Public Member Functions | |
| constructor (eCustom, pdfPageRender) | |
| Create a page custom render controller. More... | |
| void | destroy () |
| Destroy the custom render controller and release references. More... | |
| CustomRenderResult | render (scale, rotate) |
Called before the page bitmap is rendered. Use eCustom to inject overlay content, or return/resolves to false to skip default page content rendering. More... | |
An interface for injecting custom content or gating default page bitmap rendering. Assign a constructor that implements this interface to options.customs.PageCustomRender. The SDK creates an instance with the page custom container (.fv__pdf-custom-page-container) and the owner PDFPageRender, then calls PageCustomRender.render before the page bitmap is rendered.
false, the SDK skips default page content rendering for that page.| PageCustomRender::constructor | ( | eCustom | , |
| pdfPageRender | |||
| ) |
Create a page custom render controller.
| eCustom | HTMLElement - Host element for custom page content (.fv__pdf-custom-page-container). |
| pdfPageRender | PDFPageRender - Owner page render instance. |
| void PageCustomRender::destroy | ( | ) |
Destroy the custom render controller and release references.
| CustomRenderResult PageCustomRender::render | ( | scale | , |
| rotate | |||
| ) |
Called before the page bitmap is rendered. Use eCustom to inject overlay content, or return/resolves to false to skip default page content rendering.
| scale | number - Current page scale. |
| rotate | number - Current page rotation. |
false (or a Promise that resolves to false) to skip default page content rendering.