Skip to content

Commit

Permalink
fix formatting for specify-rendering-options
Browse files Browse the repository at this point in the history
  • Loading branch information
vyacheslav-prokopenko authored and vladimir-litvinchik committed Apr 29, 2023
1 parent f756230 commit 1c2b68f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,18 +253,16 @@ The following code example demonstrates how to convert an Excel workbook to PDF
{{< tabs "example8">}}
{{< tab "C#" >}}
```cs
/// Implement the service
using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;
// ...
using (var viewer = new Viewer("invoice.xlsx"))
{
// Convert the spreadsheet to PDF.
var viewOptions = new PdfViewOptions("output.pdf");

// Set margins for worksheets in the output pdf pages
viewOptions.SpreadsheetOptions.LeftMargin = 0;
// Set margins for worksheets in the output pdf pages
viewOptions.SpreadsheetOptions.LeftMargin = 0;
viewOptions.SpreadsheetOptions.RightMargin = 0.5;
viewOptions.SpreadsheetOptions.TopMargin = 1;
viewOptions.SpreadsheetOptions.BottomMargin = -10; // set to default value
Expand Down

0 comments on commit 1c2b68f

Please sign in to comment.