-
Notifications
You must be signed in to change notification settings - Fork 0
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
yevgen-nykytenko
committed
Oct 5, 2023
1 parent
0cf7e69
commit e4a153b
Showing
21 changed files
with
189 additions
and
18 deletions.
There are no files selected for viewing
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
33 changes: 31 additions & 2 deletions
33
english/net/groupdocs.viewer.options/loadoptions/resourceloadingtimeout/_index.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
53 changes: 53 additions & 0 deletions
53
english/net/groupdocs.viewer.options/loadoptions/skipexternalresources/_index.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,53 @@ | ||
--- | ||
title: SkipExternalResources | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: When set to true all external resource such as images will not be loaded except WhitelistedResourcesgroupdocs.viewer.options/loadoptions/whitelistedresources. | ||
type: docs | ||
weight: 70 | ||
url: /net/groupdocs.viewer.options/loadoptions/skipexternalresources/ | ||
--- | ||
## LoadOptions.SkipExternalResources property | ||
|
||
When set to `true` all external resource such as images will not be loaded except [`WhitelistedResources`](../whitelistedresources). | ||
|
||
```csharp | ||
public bool SkipExternalResources { get; set; } | ||
``` | ||
|
||
### Remarks | ||
|
||
**This option is supported when rendering the following file formats:** | ||
|
||
* Word processing - DOCX, DOC, etc. | ||
* Spreadsheet - XLSX, XLS, etc. | ||
* Web - HTML, HTM, etc. | ||
* Presentation - PPTX, PPT, etc. | ||
|
||
**Learn more about options to manage external resources:** | ||
|
||
* [Set timeout for loading external resources](https://docs.groupdocs.com/viewer/net/set-timeout-for-loading-external-resources-contained-by-a-document/) | ||
|
||
### Examples | ||
|
||
The example demonstrates a typical usage of this option. | ||
|
||
```csharp | ||
LoadOptions loadOptions = new LoadOptions(); | ||
loadOptions.SkipExternalResources = true; // Skip loading of external resources | ||
using (Viewer viewer = new Viewer("business-flyer.docx", loadOptions)) | ||
{ | ||
HtmlViewOptions viewOptions = | ||
HtmlViewOptions.ForEmbeddedResources(); | ||
|
||
viewer.View(viewOptions); | ||
} | ||
``` | ||
|
||
### See Also | ||
|
||
* class [LoadOptions](../../loadoptions) | ||
* namespace [GroupDocs.Viewer.Options](../../loadoptions) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
53 changes: 53 additions & 0 deletions
53
english/net/groupdocs.viewer.options/loadoptions/whitelistedresources/_index.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,53 @@ | ||
--- | ||
title: WhitelistedResources | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: The list of URL fragments corresponding to external resources that should be loaded when SkipExternalResourcesgroupdocs.viewer.options/loadoptions/skipexternalresources is set to true. | ||
type: docs | ||
weight: 80 | ||
url: /net/groupdocs.viewer.options/loadoptions/whitelistedresources/ | ||
--- | ||
## LoadOptions.WhitelistedResources property | ||
|
||
The list of URL fragments corresponding to external resources that should be loaded when [`SkipExternalResources`](../skipexternalresources) is set to `true`. | ||
|
||
```csharp | ||
public List<string> WhitelistedResources { get; set; } | ||
``` | ||
|
||
### Remarks | ||
|
||
**This option is supported when rendering the following file formats:** | ||
|
||
* Word processing - DOCX, DOC, etc. | ||
* Spreadsheet - XLSX, XLS, etc. | ||
* Web - HTML, HTM, etc. | ||
* Presentation - PPTX, PPT, etc. | ||
|
||
**Learn more about options to manage external resources:** | ||
|
||
* [Set timeout for loading external resources](https://docs.groupdocs.com/viewer/net/set-timeout-for-loading-external-resources-contained-by-a-document/) | ||
|
||
### Examples | ||
|
||
The example demonstrates a typical usage of this option. | ||
|
||
```csharp | ||
LoadOptions loadOptions = new LoadOptions(); | ||
loadOptions.SkipExternalResources = true; // Skip loading of external resources | ||
loadOptions.WhitelistedResources.Add("avatars.githubusercontent.com"); //Enable loading of external resources that has 'avatars.githubusercontent.com' fragment in resource URL. | ||
using (Viewer viewer = new Viewer("business-flyer.docx", loadOptions)) | ||
{ | ||
HtmlViewOptions viewOptions = | ||
HtmlViewOptions.ForEmbeddedResources(); | ||
|
||
viewer.View(viewOptions); | ||
} | ||
``` | ||
|
||
### See Also | ||
|
||
* class [LoadOptions](../../loadoptions) | ||
* namespace [GroupDocs.Viewer.Options](../../loadoptions) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
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
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
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
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
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
33 changes: 33 additions & 0 deletions
33
....viewer.options/spreadsheetoptions/forrenderingprintareaandpagebreaks/_index.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,33 @@ | ||
--- | ||
title: ForRenderingPrintAreaAndPageBreaks | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: Initializes new instance of SpreadsheetOptionsgroupdocs.viewer.options/spreadsheetoptions for rendering print areas and page breaks. | ||
type: docs | ||
weight: 40 | ||
url: /net/groupdocs.viewer.options/spreadsheetoptions/forrenderingprintareaandpagebreaks/ | ||
--- | ||
## SpreadsheetOptions.ForRenderingPrintAreaAndPageBreaks method | ||
|
||
Initializes new instance of [`SpreadsheetOptions`](../../spreadsheetoptions) for rendering print areas and page breaks. | ||
|
||
```csharp | ||
public static SpreadsheetOptions ForRenderingPrintAreaAndPageBreaks() | ||
``` | ||
|
||
### Return Value | ||
|
||
New instance of [`SpreadsheetOptions`](../../spreadsheetoptions) for rendering pages basing on page brakes that are included into print area. The behaviour similar to printing in Excel. | ||
|
||
### Remarks | ||
|
||
**Learn more** | ||
|
||
* Learn more about spliting a worksheet into pages in C#: [How to split pages basing on page brakes that are included into print area using GroupDocs.Viewer](https://docs.groupdocs.com/viewer/net/split-worksheet-into-pages/) | ||
|
||
### See Also | ||
|
||
* class [SpreadsheetOptions](../../spreadsheetoptions) | ||
* namespace [GroupDocs.Viewer.Options](../../spreadsheetoptions) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
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
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
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
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
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
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
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
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
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
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
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