Rather than creating a new PDImageXObject for each boxable Image, I would like to share one PDImageXObject among multiple Images so it is not created multiple times in the PDF, thus bloating the size of the PDF unnecessarily.
If I instead share the Image object between multiple cells, then the internals of boxable will scale the Image according to the dimensions each cell before the draw, so presumably only the last scale will take effect when the PDImageXObject is drawn in multiple cells.
Could we possibly add an Image constructor that takes a pre-loaded PDImageXObject instead of a BufferedImage? Or is there some other alternative solution?
Rather than creating a new PDImageXObject for each boxable Image, I would like to share one PDImageXObject among multiple Images so it is not created multiple times in the PDF, thus bloating the size of the PDF unnecessarily.
If I instead share the Image object between multiple cells, then the internals of boxable will scale the Image according to the dimensions each cell before the draw, so presumably only the last scale will take effect when the PDImageXObject is drawn in multiple cells.
Could we possibly add an Image constructor that takes a pre-loaded PDImageXObject instead of a BufferedImage? Or is there some other alternative solution?