Skip to content

Commit

Permalink
Merge pull request #192 from xuges/main
Browse files Browse the repository at this point in the history
Fix experimental FPDFText_HasUnicodeMapError implement.
  • Loading branch information
jerbob92 authored Sep 23, 2024
2 parents 999a43a + 5225909 commit f581494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/implementation_cgo/fpdf_text_experimental.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (p *PdfiumImplementation) FPDFText_HasUnicodeMapError(request *requests.FPD
return nil, err
}

hasUnicodeMapError := C.FPDFText_IsGenerated(textPageHandle.handle, C.int(request.Index))
hasUnicodeMapError := C.FPDFText_HasUnicodeMapError(textPageHandle.handle, C.int(request.Index))
if int(hasUnicodeMapError) == -1 {
return nil, errors.New("could not get whether text has a unicode map error")
}
Expand Down

0 comments on commit f581494

Please sign in to comment.