Optimize spreadsheets in a PDF file
Leave feedback
On this page
This optimization allows to reduce the output file size by setting up border lines. Besides that, it removes the Arial and Times New Roman characters of 32-127 codes.
The default value is false
.
The following code snippet shows how to optimize spreadsheets in a PDF file:
using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;
// ...
using (var viewer = new Viewer("invoice.xlsx"))
{
PdfViewOptions viewOptions = new PdfViewOptions();
viewOptions.PdfOptimizationOptions = new PdfOptimizationOptions
{
OptimizeSpreadsheets = true
};
viewer.View(viewOptions);
}
Imports GroupDocs.Viewer
Imports GroupDocs.Viewer.Options
' ...
Module Program
Sub Main(args As String())
Using viewer = New Viewer("invoice.xlsx")
Dim viewOptions As PdfViewOptions = New PdfViewOptions()
viewOptions.PdfOptimizationOptions = New PdfOptimizationOptions With {
.OptimizeSpreadsheets = True
}
viewer.View(viewOptions)
End Using
End Sub
End Module
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.