Increase Max Document Export Matrix Size Limit

Issue #526 new
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Export a PDF of a 6k by 6k matrix with labels

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

  1. Open large_6kx6k_average.cdt
  2. Command-e to export
  3. Select region "All"
  4. Select 1:1 tile aspect
  5. Select Row labels "Yes" & column labels "Yes"

CURRENT BEHAVIOR

Label options are grayed out because the rows & columns need to be tall/wide enough so that the labels don't overlap (or extend past the cell they're next to) when they are centered on the rows/columns.

EXPECTED BEHAVIOR

Allow label options to be enabled by scaling the matrix up from a smaller size.

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

Currently, to make the rows/cols of a sufficient size to accommodate the labels, the dimensions of the matrix are increased so that each row/col is 13 points (for a 12 point font). Since the matrix in the PDF was made to be an embedded PNG, its size is limited by the BufferedImage class, and in order to make the rows/cols 13 points would result in a w*h that is larger than Integer.MAX_VALUE.

So instead of creating an image that has rows/cols that are 13 points in girth, create a smaller image (say where rows/cols have a size of 3) and scale it up.

FILES AFFECTED (where the changes will be implemented) - developers only

unknown

LEVEL OF EFFORT - developers only

medium

COMMENTS

Comments (0)

  1. Log in to comment