Re-exporting PDF images works by tokenizing the PDF image, identifying which PDF object is the page object and then copying that over to the PDF output, together with the dependencies of that object.
This involves copying the resources of the page object. Previously we assumed that the sub-keys of the resources are always inline dictionaries, but the bugdoc shows that they can be references as well, which point to dictionary objects, so add support for this scenario.
Change-Id: I78ee1c726e6ecd958232e9fab64773595e5b9c86 Reviewed-on: https://gerrit.libreoffice.org/82076
adcdd56471f1 vcl PDF export: fix re-exporting PDF images for dict obj resource sub-keys
.../data/pdf-image-resource-inline-xobject-ref.pdf | Bin 0 -> 1361 bytes
vcl/qa/cppunit/pdfexport/pdfexport.cxx | 64 +++++++++++++++++++++
vcl/source/gdi/pdfwriter_impl.cxx | 17 +++++-
3 files changed, 80 insertions(+), 1 deletion(-)