'Get PDF images in an array using PDFIUM to edit them

I am trying to write down a method to get all PDF images from a FPDF_DOCUMENT object to perform actions on them and return back theFPDF_DOCUMENT with the images replaced.

It should be like this:

  1. For each (get image objects) for input FPDF_DOCUMENT document
  2. DO something to each.
  3. Replace the original objects back to the FPDF_DOCUMENT
  4. Return the FPDF_DOCUMENT

Does that make sense?

I am lost in PDFium source as there are no documentation. Pointers would be much appreciated. Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source