wnabil / ngx-export-as

Angular 2+ / Ionic 2+ HTML/table element to export it as JSON, XML, PNG, CSV, TXT, MS-Word, Ms-Excel, PDF
MIT License
68 stars 40 forks source link

Export as Excel or PDF or etc, don't have a headers #28

Closed shyam9396 closed 5 years ago

shyam9396 commented 5 years ago

we are missing here Headers setting, every page has to have a Header and we don't have much control on this plugin, that is big drawback, when we have full control on customization that will give flexibility.

wnabil commented 5 years ago

What do you mean by the headers setting ?

shyam9396 commented 5 years ago

EX:- Header : Title, Description, Value These above titles has to print in every page of Header section and Styling control

wnabil commented 5 years ago

Typescript angular module to export Table/HTML to popular file formats As simple as it is, This package exports only the HTML Elements to a file format and per format file customization are not supported and not actually the goal of this project, Pull request is welcome for sure if you were able to manage it.

However you can set some styles using the options but it will not do what you want, since the header and footer and other things like this are special to specific file types like PDF then we have nothing to do with here. The best choice for you is uninstall the package and install html2pdf or jspdf and use the functions inside it to manage your requirements.