Foxit PDF RDK
NativeObjectWrapper Class Reference
Inheritance diagram for NativeObjectWrapper:
Action ActionCallback AdditionalAction Annot AnnotArray AnnotationSummary AnnotationSummaryCallback AnnotationSummarySettings AppProviderCallback AssociatedFiles AsyncReaderCallback Attachments Barcode Bitmap Bookmark BorderInfo ButtonItem CertificateEncryptData CertIssuerPair CertVerifyResult CertVerifyResultArray ChoiceOption ChoiceOptionArray Codec Color ColorSpace ColorState Combination CombineDocumentInfo CombineDocumentInfoArray CompareResultInfo CompareResultInfoArray CompareResults Comparison Control Convert CustomEncryptData CustomSecurityCallback DefaultAppearance Destination DialogDescriptionConfig DialogDescriptionElement DialogDescriptionElementArray DocEventCallback DocProviderCallback DocViewerPrefs DrawPageTaskSettingData DRMEncryptData DWG2PDFSettingData EmbeddedFontData EmbeddedGotoTarget Excel2PDFSettingData FDFDoc Field FieldArray Filler FillerAssistCallback FillSign FillSignObject FloatArray FloatingInfo Font FontMapperCallback FontMapResult Form GetPagesInputParams GraphicsObject GraphicsObjectArray GraphicsObjects GraphState HeaderFooter HeaderFooterContent HeaderFooterContentGenerator HTML2PDFRelatedResource HTML2PDFRelatedResourceArray HTML2PDFSettingData IconFit IconProviderCallback IdentityProperties Image ImageSettings Int32Array LayerContext LayerNode LayerNodeArray LayerPrintData LayerTree LayerZoomData Library LTVVerifier MarkedContent MarkupArray Matrix2D MediaPlayer MediaPlayerCallback MediaSettings MenuItemConfig MenuItemEx MenuItemExArray MenuList MenuListArray Metadata MonoImageSettings NoteArray NotifierCallback OFDConvertParam OpenDocumentSettingData Optimizer OptimizerSettings OutputPreview PageBasicInfo PageLabels PageNumberRange PageSizeTaskSettingData PageTextLinks PagingSealConfig Path PathArray PathInfo PayLoadData PDFDoc PDFNameTree PDFNumberTree PDFObject PDFStructTree PlayerArgs Point PointF PointFArray Portfolio PortfolioFolderNode PortfolioNode PortfolioNodeArray PowerPoint2PDFSettingData PrintParams Progressive PSI PSICallback QuadPoints QuadPointsArray Range ReaderCallback ReadingBookmark RectF RectFArray RectI Redaction ReflowPage RenderConfig Renderer RenderPageModel Rendition Response RevocationArrayInfo RevocationCallback RichTextStyle RMSEncryptData SchemaField SchemaFieldArray SearchCancelCallback SearchIndexConfig SearchOption SearchPageInfo SearchResult SearchResultArray SecurityCallback SecurityHandler ShadingColor SignatureArray SignatureCallback SignatureVerifyResult SignatureVerifyResultArray SnappedPoint SnapPointMgr SOAPAuthenticateInfo SOAPRequestProperties SOAPResponseInfo StdEncryptData StreamCallback StringArray StructTreeEntity TableOfContentsConfig TabOrderMgr Task TaskServer TextFillSignObjectData TextFillSignObjectDataArray TextLink TextPage TextPageCharInfo TextSearch TextState TiledWatermarkSettings TimeRange TimerCallback TimeStampCallback TimeStampServer TimeStampServerMgr TrustedCertStoreCallback TXT2PDFSettingData UInt32Array UnembeddedFontSettings UrlHeader ViewStatus Watermark WatermarkSettings WatermarkTextProperties WidgetChoiceOption WidgetChoiceOptionArray WidgetMenu Word2PDFSettingData WrapperData WriterCallback WStringArray XFADoc XFAPage XFAWidget

Public Member Functions

 constructor (r)
 
 GetPointerAsNumber ()
 

Detailed Description

@abstract @description Base class for N-API object wrappers with manual lifecycle control

Remarks
This class provides the foundation for TypeScript objects that wrap C++ objects via Node-API, offering both automatic and manual resource management.
Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

Member Function Documentation

◆ constructor()

NativeObjectWrapper.constructor ( )

@constructor

Parameters
{NativeObjectReference}r - The native object reference to wrap

@description Creates a new wrapper instance around a native C++ object. The wrapper manages the object's lifecycle according to the ownership rules.

Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

◆ GetPointerAsNumber()

NativeObjectWrapper.GetPointerAsNumber ( )

@method GetPointerAsNumber

Returns
{number} The memory address of the wrapped C++ object as a numeric value

@description Retrieves the raw pointer to the underlying C++ object.

Warning
This exposes direct memory access - use with extreme caution. The pointer should only be used for interop purposes and never modified directly from TypeScript.
Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.