Can you please elaborate on what you are trying to achieve? Can you please share the input files you are working with and the output you are generating with your python script?
Your C++ code appears to be running different methods. In the Python example you use CreateTrueTypeFont(PDFDoc, string), but in the C++ example you are using CreateCIDTrueTypeFont(PDFDoc, string, bool, bool, Encoding). Is there a reason for the change?
High level goal is to build software help me read academic papers/patents - my ADHD really makes it hard to work my way through text heavy documents. I discovered a concept where changing the display of characters in a word (i.e using fonts/colors) can help some neurodivergent people read so I’m experimenting with the concept.
I switched to trying Go or C++ to make it easier to distribute pre-compiled binaries of the software to my niece (who also has ADHD).
I’ve attached the input file and the corresponding output file using the python code.
I’m using apryse-sdk 10.1.0
As for the C++ discrepancy - I was just testing if using the CID api made any difference - it didn’t.
The output file probably needs to be downloaded to view it, it looks okay on my desktop, but appears corrupted when view directly in the GitHub viewer.