ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Generating and previewing PDF in Angular 10 - Custom Fonts & Icons - Using virtual file system (VFS)
ฝัง
- เผยแพร่เมื่อ 21 ธ.ค. 2020
- pdfmake is the client/server side PDF printing in pure JavaScript.
ng2-pdf-viewer i sthe angular component for the viewing the pdf file.
Links of the libraries using :
pdfmake : pdfmake.org/#/
pdf viewer : www.npmjs.com/package/ng2-pdf...
And also attaching github repo of the reference.
github.com/Anand-Paul/example...
Thanks it's really help ..Keep it up men
Awesome!
Hi guys, any idea on how to use specific fonts for certain components and maintain the default font on other components in angular?
hi i am using this package in react project and installed it using "npm i pdfmake" but i am not getting that example folder
How I use vfs_fonts.js in API TypeScript project?
Does the fonts reflects to the other users if we uploaded it on github?
why i run npm run build:vfs: no file generate?
it will update the file in the build directory, that is vfs_fonts.js, here you can see the custom fonts that you added.
@@inprogressdev2187 i follow the video delete the roboto fonts and add NotoSansSC .tff into examples folder and run build:vfs: and check the vfs_fonts.js in build directory it only show the roboto fonts
@chun wei soo : if not could you check by deleting all the fonts in examples/fonts/ and also delete the vfs_fonts.js in the build/ again. And then insert your custom fonts to the examples/fonts/ and run the command "npm run build:vfs:". i think it will generate in the build/vfs_fonts.js file as a object. could check that. I have tried it now also, am getting the perfect result.
@@inprogressdev2187 not working. i check your video you using 0.1.68 and i download the 0.1.68 version and follow your tutorial the package.json only have the build, test and playground under script only the 0.1.70 version have build:vfs under script in package.json
install npm using npm i thn i works.. I face same issue