When using the GetDocumentPageText I get a lot of gibberish when the pdf contains embedded unicode fonts. The pdf is an existing pdf created by Adobe Indesign.
The extracted text looks like:
v./26.'#$A'e'#$A'O%%'#$A'GG v./26.'#$A'Fo '#$A'O%%'#$A'GG v./26.'#$A'O%%'#$A'GG v./26.'#$A'a'#$A'e'#$A'ks'#$A',g'#$A'O'#$A'// v./26.....
While the text in the pdf is extracted correct using pdfium or pdftotext
Result of pdffonts:
name type emb sub uni prob object ID
JFNELQ+StagSans-Medium Type 1C yes yes yes 1264 0
SDBBHY+ChunkFive-Roman Type 1C yes yes yes 1266 0
SDBBHY+Poppins-Black TrueType yes yes yes 1268 0
YVGZUM+StagSans-Book Type 1C yes yes yes 1273 0
KRAFZO+StagSans-Light Type 1C yes yes yes 322 0
YVGZUM+StagSans-Book Type 1C yes yes yes 329 0
QNAPFC+Arial-Black TrueType yes yes yes 331 0
...
link to file: