Lucee 5: Convert xls(x) to pdf

Hi,
is it possible to convert an excel-File to PDF?
I tried:


But it converts only the ascii-content of the xls(x) to pdf.

Thank you for your tipps

Michael

Hello Julian,
thank you very much!
This works.

Greetings from sunny Butzbach in Germany

MichaelAm Montag, 8. August 2016 14:38:54 UTC+2 schrieb Michael Vornkahl:

Hi,
is it possible to convert an excel-File to PDF?
I tried:


But it converts only the ascii-content of the xls(x) to pdf.

Thank you for your tipps

Michael

You could read the file into an HTML table using my spreadsheet
library ( https://github.com/cfsimplicity/lucee-spreadsheet ) and then
use to convert that to PDF:

spreadsheet=New spreadsheetLibrary.spreadsheet(); file=ExpandPath( "my.xls" ); html=spreadsheet.read( file,"html" ); #html#

That will give you an unstyled table, but you could add CSS to the
document output.

Julian.On 8 August 2016 at 13:38, Michael Vornkahl <@Michael_Vornkahl> wrote:

is it possible to convert an excel-File to PDF?