# Revision history [back]

### How to print xlsx (excel) file with grid borderline?

I need to print xlsx using command line. This is the command I use.

$libreoffice --headless --print-to-file output.ps example.xlsx$ ps2pdf output.ps output.pdf


As shown, I first print to ps then convert to pdf. But the file printed does not have grid borderline. Is there way to include borderline in the print? Note, I don't want GUI solution, only CLI. Thanks for the help

### How to print xlsx (excel) file with grid borderline?

I need to print xlsx using command line. This is the command I use.

$libreoffice --headless --print-to-file output.ps example.xlsx$ ps2pdf output.ps output.pdf


As shown, I first print to ps then convert to pdf. But the file printed does not have grid borderline. Is there way to include borderline in the print? Note, I don't want GUI solution, only CLI. Thanks for the help

### How to print xlsx (excel) file with grid borderline?

I need to print xlsx using command line. This is the command I use.

$libreoffice --headless --print-to-file output.ps example.xlsx$ ps2pdf output.ps output.pdf


As shown, I first print to ps then convert to pdf. But the file printed does not have grid borderline. Is there way to include borderline in the print? Note, I don't want GUI solution, only CLI. Thanks for the help

### How to print xlsx (excel) file with grid borderline?

I need to print xlsx using command line. This is the command I use.

$libreoffice --headless --print-to-file output.ps example.xlsx$ ps2pdf output.ps output.pdf


As shown, I first print to ps then convert to pdf. But the file printed does not have grid borderline. Is there way to include borderline in the print? Note, I don't want GUI solution, only CLI. Thanks for the help