For anti-aliasing, we use FreeType, so if you look in the PDFium
source for "FXFT_RENDER_MODE" and see how that's set. There's probably
more options there than what is available with the public APIs. If you
want to experiment with that. Changing the anti-aliasing mode may
speed things up, but produce hard to read text.
For Chromium's PDF Viewer, the way it uses
FPDF_RenderPageBitmap_Start() is to only render what is visible. So in
some cases, it may be able to perform faster because it is rendering
fewer pixels.
So you have looked into how much time is spent rendering PDFs vs.
encoding them with libpng? I think if you profile your application's
performance, you can get a clearer picture of where the time is spent
and figure out what to do.
>
https://groups.google.com/d/msgid/pdfium/5135eb31-1f56-4823-add5-ae2eff7cc824%40googlegroups.com.