Dtronix / PDFiumCore

.NET Standard P/Invoke bindings for PDFium.
Apache License 2.0
146 stars 23 forks source link

FPDFText_FindStart findwhat in c++ is FPDF_WIDESTRING ,but in FPDFTextFindStart is ushort findwhat,i dont know How to convert? #16

Open 1000374 opened 1 year ago

1000374 commented 1 year ago

I found parameter “findwhat” in other projects define byte[] not “ref ushort findwhat”,Suggestions for other ways to do this?ths

// Function: FPDFText_FindStart // Start a search. // Parameters: // text_page - Handle to a text page information structure. // Returned by FPDFText_LoadPage function. // findwhat - A unicode match pattern. // flags - Option flags. // start_index - Start from this character. -1 for end of the page. // Return Value: // A handle for the search context. FPDFText_FindClose must be called // to release this handle. // FPDF_EXPORT FPDF_SCHHANDLE FPDF_CALLCONV FPDFText_FindStart(FPDF_TEXTPAGE text_page, FPDF_WIDESTRING findwhat, unsigned long flags, int start_index);

public static global::PDFiumCore.FpdfSchhandleT FPDFTextFindStart(global::PDFiumCore.FpdfTextpageT text_page, ref ushort findwhat, uint flags, int start_index)