How do I create a custom Filter in C++?

Question:

I want to create a custom filter that I can pass to PDFDoc constructor, but I can’t find any info on how to do this for C++.

Answer:

Please take a look at Headers/C/Filters/TRN_Filter.h and the TRN_FilterCreateCustom function. This is the C API you would implement for a custom filter.