Skip to content

Share PDImageXObject between cells/Image objects #302

Description

@Susan123456789

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions