ngx-print
ngx-print copied to clipboard
not able to attach external stylesheet using styleSheetFile property
Describe the bug
I am using .scss file to apply styles in pdf. Styles are not getting attached.
To Reproduce I have a folder structure as mention below. Folder name -> statatistics Inside the folder, I have 3 files
- statistics.component.ts 2.statistics.component.html 3.statistics.component.scss
Expected behavior Could you please let me know how to apply external scss file?
Screenshots
Expected PDF:

The result I am getting right now is :

Desktop (please complete the following information):
- OS: Windows
- Browser:chrome
Same thing here.
Same thing here too, but with .css
@Zankhna95 for now it is not possible to attach a .scss file, you'd need to compile first to css and then add it to your /assets/.
Lets say we have this statistics component. I'd create a folder src/assets/reports, and a statistics.css file inside it. Then referring to it as <button styleSheetFile="assets/reports/statistics.css"...>...</button>
Answered by @derickfelix