The issues you have found earlier (filed as CELLSGRIDJS-1944,CELLSGRIDJS-1982) have been fixed in this update.
for CELLSGRIDJS-1944 Support option “Fit all columns on one page” while exporting to PDF in GridJs
now you can set Config.CustomPdfSaveOptions or through GridJsOptions.CustomPdfSaveOptions
below is the example code:
PdfSaveOptions MyCustomPdfSaveOptions=new PdfSaveOptions();
.......
Config.CustomPdfSaveOptions=MyCustomPdfSaveOptions;
PdfSaveOptions MyCustomPdfSaveOptions=new PdfSaveOptions();
.......
services.Configure<GridJsOptions>(options =>
{
options.LazyLoading = true;
options.FileCacheDirectory = TestConfig.TempDir;
options.CustomPdfSaveOptions= MyCustomPdfSaveOptions;
});