Calc Spreadsheet to Pdf conversion with cells

Would it be possible to do a command line export to pdf of an excel file with the cells , something like a grid view.

Something like a option in the command line export
libreoffice3.6 --headless --invisible --convert-to pdf sample.xls (–with-grid) :smiley:

It’s a page style option to print the grid or only the data. Is that option set in you xls files? If not, you may need a macro to modify the file before exporting to PDF:

(Comment → Answer for Resolution)

@tohuwawohu writes:

It’s a page style option to print the grid or only the data. Is that option set in you xls files? If not, you may need a macro to modify the file before exporting to PDF