You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The table when exported using the ExportOption interface in PDF format, the exported file is not supported in chrome as well as Adobe pdf viewer.
Steps to Reproduce
Use this code on the export button click
exportTable() {
this.angularGrid.exportService.exportToFile({
filename: 'myExport',
format: FileType.pdf
})
}
Expected Behavior
We should be able open the downloaded file in any PDF viewer.
Current Behavior
When we try to open the downloaded file the following error messages arise.
Edge browser - "This PDF is corrupted"
Chrome - "Failed to load PDF document."
Adobe Acrobat Reader DC - "Adobe Acrobat Reader could not open the file"
Possible Solution
Code Sample
You can check this by changing the exportToFile method in the Example 12: Localization (i18n) class in the examples.
exportToFile(type = 'csv') {
this.angularGrid.exportService.exportToFile({
filename: 'myExport',
format: FileType.pdf
});
}
The text was updated successfully, but these errors were encountered:
You cannot use anything else but txt in the Export to File Service, I should (will) remove pdf from the list, it's not a valid option since there are no PDF Exporter Service.
So the best approach is to create a PDF Export Service, but I personally will not invest time in creating this. I never use grid PDF export, however I would certainly be happy to receive and accept Pull Request for this feature.
This is an Open Source project, if you want a new feature then please help and contribute.
- PDF and DOC are unsupported file type since there are no Exporter Services that exist for them, so they should be removed from acceptable file type formats
- closes#452
- PDF and DOC are unsupported file type since there are no Exporter Services that exist for them, so they should be removed from acceptable file type formats
- closes#452
I'm submitting a Bug report
Your Environment
Describe the Bug
The table when exported using the ExportOption interface in PDF format, the exported file is not supported in chrome as well as Adobe pdf viewer.
Steps to Reproduce
Use this code on the export button click
exportTable() {
this.angularGrid.exportService.exportToFile({
filename: 'myExport',
format: FileType.pdf
})
}
Expected Behavior
We should be able open the downloaded file in any PDF viewer.
Current Behavior
When we try to open the downloaded file the following error messages arise.
Edge browser - "This PDF is corrupted"
Chrome - "Failed to load PDF document."
Adobe Acrobat Reader DC - "Adobe Acrobat Reader could not open the file"
Possible Solution
Code Sample
You can check this by changing the exportToFile method in the Example 12: Localization (i18n) class in the examples.
exportToFile(type = 'csv') {
this.angularGrid.exportService.exportToFile({
filename: 'myExport',
format: FileType.pdf
});
}
The text was updated successfully, but these errors were encountered: