Skip to content

Commit

Permalink
Also fix webassembly code for FPDFText_HasUnicodeMapError and fix tes…
Browse files Browse the repository at this point in the history
…ts for FPDFText_HasUnicodeMapError
  • Loading branch information
jerbob92 committed Sep 23, 2024
1 parent f581494 commit 4d9a958
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/implementation_webassembly/fpdf_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ func (p *PdfiumImplementation) FPDFText_HasUnicodeMapError(request *requests.FPD
return nil, err
}

res, err := p.Module.ExportedFunction("FPDFText_IsGenerated").Call(p.Context, *textPageHandle.handle, uint64(request.Index))
res, err := p.Module.ExportedFunction("FPDFText_HasUnicodeMapError").Call(p.Context, *textPageHandle.handle, uint64(request.Index))
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion shared_tests/fpdf_text_experimental.go
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ var _ = Describe("fpdf_text", func() {
Expect(err).To(BeNil())
Expect(FPDFText_HasUnicodeMapError).To(Equal(&responses.FPDFText_HasUnicodeMapError{
Index: 2,
HasUnicodeMapError: false, // @todo: this SHOULD be true...
HasUnicodeMapError: true,
}))
})
})
Expand Down
Binary file added shared_tests/testdata/test.pdfwith-text.pdf
Binary file not shown.

0 comments on commit 4d9a958

Please sign in to comment.