PDF export right margin wrong when fields are hidden

PDF export right margin wrong when fields are hidden

If you unselect a column in a view with "More Actions,Column Display/Rearrange", the PDF export still sets the right margin and column spacing as if the unselected column was included. This means that there can be a lot of wasted horizontal space in the PDF output.

Example: create a view that includes 5 columns. Do a PDF export of this view for reference. Then in "More Actions,Column Display/Rearrange" uncheck 3 of the columns. Do another PDF export. The right margin of the view and the auto-spacing of the columns will still be set as if the deselected columns were still in the output, so the two remaining columns will be squashed on the left-hand side of the PDF.

Obviously the workaround is to not have any hidden columns but in my case I want to have a column in the view for sorting purposes that I don't want to include in the PDF export.