Comments (3)
Tested and working fine as expected, please check the demo code i updated it with an example to pdf orientation.
@rocaramon it doesn't work because you did not change anything, this is the default options!
options: { jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } }
from ngx-export-as.
please check the readme file, here is an example how to set the custom options and do not forget to check each library for its special options
https://github.com/wnabil/ngx-export-as#configuration
from ngx-export-as.
Hi i have the same problem when trying to add configuration for PDF , i was trying to add the current configuration and none if the two worked
config: ExportAsConfig = { type: 'pdf', elementId: 'statementTable', options: { margin: 1, filename: 'myfile.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2 }, jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } } }
config: ExportAsConfig = { type: 'pdf', elementId: 'statementTable', options: { jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } } }
from ngx-export-as.
Related Issues (20)
- Error: webpack < 5 (Angular 12) HOT 3
- Unable to view the data in exported excel when the size of data is more than 500 records HOT 7
- Angular 13 Support HOT 1
- Upgrade to 1.13 with Angular 13 fails due to xmlbuilder2 dependency HOT 1
- How to download the table which is having pagination HOT 1
- Namespace '"@angular/core/core"' has no exported member HOT 2
- Can't resolve 'fs' in html-to-docx package. I got this error and i dont know to fix it. HOT 3
- TypeError: Cannot read properties of undefined (reading 'colSpan') HOT 1
- Any plans to support Angular 14 in the near future? HOT 1
- Support for Angular 15 HOT 3
- Exported CSV displying non-english characters currupted HOT 2
- [Question] line break issue in textArea HOT 2
- Could not resolve dependency: peer @angular/common@"^10.1.3" from [email protected] node_modules/ngx-export-as ngx-export-as@"*" from the root project HOT 2
- Cannot export Option Value HOT 1
- Support Angular 11 HOT 2
- how to add utf-8 encode when export csv HOT 2
- Gap at the top of the generated PDF if I scrolled down the page HOT 1
- PDF Page break. HOT 1
- Add support for changing delimiter in CSV or support for double quoting data if it contains comma(,) in data HOT 1
- Module not found: Error: Can't resolve 'util' in 'E:\potatoLogics\name\node_modules\xmlbuilder2\lib' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-export-as.