Skip to content

Commit

Permalink
Spreadsheets optimization added
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel-A-Sokolov committed Jun 13, 2023
1 parent b601b37 commit 1d0fd53
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
id: optimization-pdf-for-web
url: viewer/net/optimization-pdf-for-web
title: Optimize spreadsheets in a PDF file
linkTitle: Optimize spreadsheets in a PDF file
weight: 1
description: "This topic describes how to optimize spreadsheets in a PDF file using the GroupDocs.Viewer .NET API (C#)."
keywords: convert to pdf, optimize browser, optimize web
productName: GroupDocs.Viewer for .NET
hideChildren: False
toc: True
---
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:

{{< tabs "Example1">}}
{{< tab "C#" >}}
```csharp
using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;
using GroupDocs.Viewer.Domain.Documents.PostProcessing.Pdf.Optimization;
// ...
using (var viewer = new Viewer("invoice.xlsx"))
{
PdfViewOptions viewOptions = new PdfViewOptions();
viewOptions.PdfOptimizationOptions = new PdfOptimizationOptions
{
OptimizeSpreadsheets = true
};

viewer.View(viewOptions);
}
```
{{</ tab >}}
{{</ tabs >}}


0 comments on commit 1d0fd53

Please sign in to comment.