2

I have a table with more than 20 columns. This table is displayed with scrolling on a website. I have to scale these columns for a PDF export.

Is there a UI pattern that helps fitting these columns into a PDF?

  • 5
    Take a look on responsive tables. You can apply some patterns to the PDF. – Alexey Kolchenko Feb 20 '18 at 9:37
  • 2
    if it's 20 cols it sounds more like a spreadsheet – colmcq Feb 20 '18 at 10:59
  • 1
    Set your pdf to output as a custom size that your table will fit on – Andrew Martin Feb 23 '18 at 17:16
  • 1
    Landscape orientation :) – invot May 10 '18 at 15:09
  • What will people be using the PDF for? If they're looking at it on a screen, then just export it full size and let their Reader app scroll it. If it's for printing, then you've got an interesting problem. – Ken Mohnkern Sep 4 '18 at 17:57
0

Quite hard for 20 columns. You could find another way to transfer it to a pdf depending on the rows you have. Possibly in a card view one after the other. Or you could eliminate some secondary columns in order to make it fit.

0

It is all a question of output size & quality.

I have one spreadsheet that I have been exporting as a PDF for years and it keeps growing. So I have one version where I drop a column at the beginning for each column I add on the end (it is time based) and another where the columns just keep getting smaller. Currently up to 18 columns - next year it will be 19 columns.

The things you can do:

  • Paper size, orientation, margins

PDF is based on a printable document design. If you print (US sizes) letter size, portrait and have 1" margins, then you only have 6.5" to work with. If you print legal size and landscape and 0.5" margins then you have 13" to work with - double the size. The typical user may not be able to print on legal paper, but landscape & smaller margins should not be a problem at all.

  • Font size

Typical font size is around 12pt. 10pt is still quite readable. But if you simply must have everything on one page, go smaller - even 8pt can work if it has to.

  • Content

Depending on the document, you may have some columns where you can replace a full word or two with a number or short code and make the column smaller, but at the expense of having a legend somewhere to explain the codes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.