-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b601b37
commit 1d0fd53
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...ents/rendering-to-pdf/optimization-pdf-options/optimization-pdf-spreadsheets.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 >}} | ||
|
||
|