Skip to content

Commit

Permalink
Update content 2023-11-03 13:03:12
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgen-nykytenko committed Nov 3, 2023
1 parent e4a153b commit 948ca7d
Show file tree
Hide file tree
Showing 15 changed files with 121 additions and 29 deletions.
2 changes: 1 addition & 1 deletion english/net/groupdocs.viewer.options/loadoptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class LoadOptions
| [Encoding](../../groupdocs.viewer.options/loadoptions/encoding) { getset; } | The encoding used when opening text-based files or email messages such as [`CSV`](../../groupdocs.viewer/filetype/csv), [`TXT`](../../groupdocs.viewer/filetype/txt), and [`MSG`](../../groupdocs.viewer/filetype/msg). Default value is UTF8. |
| [FileType](../../groupdocs.viewer.options/loadoptions/filetype) { getset; } | The type of the file to open. |
| [Password](../../groupdocs.viewer.options/loadoptions/password) { getset; } | The password for opening encrypted file. |
| [ResourceLoadingTimeout](../../groupdocs.viewer.options/loadoptions/resourceloadingtimeout) { getset; } | The external resources e.g. graphics loading timeout. The default value is 30 seconds. |
| [ResourceLoadingTimeout](../../groupdocs.viewer.options/loadoptions/resourceloadingtimeout) { getset; } | The external resources loading timeout. The default value is 10 seconds. |
| [SkipExternalResources](../../groupdocs.viewer.options/loadoptions/skipexternalresources) { getset; } | When set to `true` all external resource such as images will not be loaded except [`WhitelistedResources`](./whitelistedresources). |
| [WhitelistedResources](../../groupdocs.viewer.options/loadoptions/whitelistedresources) { getset; } | The list of URL fragments corresponding to external resources that should be loaded when [`SkipExternalResources`](./skipexternalresources) is set to `true`. |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public bool DetectEncoding { get; set; }

### Remarks

**Learn more about rendering text and tab/comma delimited files**
Learn more about rendering text and tab/comma delimited files:

* [Render text documents as HTML, PDF, and image files](https://docs.groupdocs.com/viewer/net/render-text-files/)
* [Render Excel and Apple Numbers spreadsheets as HTML, PDF, and image files](https://docs.groupdocs.com/viewer/net/render-excel-and-apple-numbers-spreadsheets/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public Encoding Encoding { get; set; }

### Remarks

**Learn more**
Learn more

* [Render Excel and Apple Numbers spreadsheets as HTML, PDF, and image files](https://docs.groupdocs.com/viewer/net/render-excel-and-apple-numbers-spreadsheets/)
* [Render text documents as HTML, PDF, and image files](https://docs.groupdocs.com/viewer/net/render-text-files)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
---
title: ResourceLoadingTimeout
second_title: GroupDocs.Viewer for .NET API Reference
description: The external resources e.g. graphics loading timeout. The default value is 30 seconds.
description: The external resources loading timeout. The default value is 10 seconds.
type: docs
weight: 60
url: /net/groupdocs.viewer.options/loadoptions/resourceloadingtimeout/
---
## LoadOptions.ResourceLoadingTimeout property

The external resources e.g. graphics loading timeout. The default value is 30 seconds.
The external resources loading timeout. The default value is 10 seconds.

```csharp
public TimeSpan ResourceLoadingTimeout { get; set; }
```

### Remarks

**This option is supported when rendering the following file formats:**
This option is supported when rendering the following file formats:

* Word processing - DOCX, DOC, etc.
* Spreadsheet - XLSX, XLS, etc.
* Web - HTML, HTM, etc.
* [Presentation file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#presentation-file-formats)
* [Spreadsheet file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#spreadsheet-file-formats)
* [Web file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#web-file-formats)
* [Word processing file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#word-processing-file-formats)

**Learn more about options to manage external resources:**
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/)

Expand All @@ -32,7 +33,7 @@ The example demonstrates a typical usage of this option.

```csharp
LoadOptions loadOptions = new LoadOptions();
loadOptions.ResourceLoadingTimeout = TimeSpan.FromSeconds(3); // Set resource loading timeout to 3 seconds
loadOptions.ResourceLoadingTimeout = TimeSpan.FromSeconds(5); // Set resource loading timeout to 5 seconds
using (Viewer viewer = new Viewer("business-flyer.docx", loadOptions))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public bool SkipExternalResources { get; set; }

### Remarks

**This option is supported when rendering the following file formats:**
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.
* [Presentation file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#presentation-file-formats)
* [Spreadsheet file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#spreadsheet-file-formats)
* [Web file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#web-file-formats)
* [Word processing file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#word-processing-file-formats)

**Learn more about options to manage external resources:**
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/)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public List<string> WhitelistedResources { get; set; }

### Remarks

**This option is supported when rendering the following file formats:**
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.
* [Presentation file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#presentation-file-formats)
* [Spreadsheet file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#spreadsheet-file-formats)
* [Web file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#web-file-formats)
* [Word processing file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#word-processing-file-formats)

**Learn more about options to manage external resources:**
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/)

Expand Down
2 changes: 2 additions & 0 deletions english/net/groupdocs.viewer.options/pdfoptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ public class PdfOptions
| Name | Description |
| --- | --- |
| [DisableCharsGrouping](../../groupdocs.viewer.options/pdfoptions/disablecharsgrouping) { get; set; } | Disables chars grouping to keep maximum precision during chars positioning when rendering the page. |
| [DisableFontLicenseVerifications](../../groupdocs.viewer.options/pdfoptions/disablefontlicenseverifications) { getset; } | Disable any license restrictions for all fonts in current XPS/OXPS document |
| [EnableFontHinting](../../groupdocs.viewer.options/pdfoptions/enablefonthinting) { getset; } | Enables font hinting. The font hinting adjusts the display of an outline font. Supported only for TTF fonts when these fonts are used in source document. |
| [EnableLayeredRendering](../../groupdocs.viewer.options/pdfoptions/enablelayeredrendering) { getset; } | Enables rendering of text and graphics according to z-order in original PDF document when rendering into HTML. |
| [FixedLayout](../../groupdocs.viewer.options/pdfoptions/fixedlayout) { getset; } | PDF is a fixed format so all of the elements have a specific place on a page. To ensure that the output HTML looks the same as the source PDF the documents are rendered to HTML with a fixed layout by default. When rendering with fixed layout the output HTML has fixed size so the elements will stay on the same place regardless of window size. To render to HTML with fluid layout set this property to `false`. |
| [ImageQuality](../../groupdocs.viewer.options/pdfoptions/imagequality) { getset; } | Specifies output image quality for image resources when rendering into HTML. The default value is Low. |
| [RenderOriginalPageSize](../../groupdocs.viewer.options/pdfoptions/renderoriginalpagesize) { getset; } | When this option enabled the output pages will have the same size in pixels as page size in a source PDF document. By default GroupDocs.Viewer calculates output image page size for better rendering quality. |
| [RenderTextAsImage](../../groupdocs.viewer.options/pdfoptions/rendertextasimage) { getset; } | When this option is set to true, the text is rendered as an image in the output HTML. Enable this option to make text unselectable or to fix characters rendering and make HTML look like PDF. The default value is false. |
| [WrapImagesInSvg](../../groupdocs.viewer.options/pdfoptions/wrapimagesinsvg) { getset; } | Enable this option to wrap each image in the output HTML document in SVG tag to improve output quality. |

### See Also

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: DisableFontLicenseVerifications
second_title: GroupDocs.Viewer for .NET API Reference
description: Disable any license restrictions for all fonts in current XPS/OXPS document
type: docs
weight: 30
url: /net/groupdocs.viewer.options/pdfoptions/disablefontlicenseverifications/
---
## PdfOptions.DisableFontLicenseVerifications property

Disable any license restrictions for all fonts in current XPS/OXPS document

```csharp
public bool DisableFontLicenseVerifications { get; set; }
```

### Remarks

Many operations with font can’t be executed if these operations are prohibited by license of this font. For example some font can’t be embedded into PDF document if license rules disable embedding for this font. Be careful when using this flag. When it is set it means that person who sets this flag, takes all responsibility of possible license/law violations on himself. So He takes it on it’s own risk. It’s strongly recommended to use this flag only when you are fully confident that you are not breaking the copyright law. By default false.

### Examples

The example demonstrates a typical usage of this option.

```csharp
using (Viewer viewer = new Viewer("resume.oxps"))
{
HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources("result.html");
options.PdfOptions.DisableFontLicenseVerifications = true;
viewer.View(options);
}
```

### See Also

* class [PdfOptions](../../pdfoptions)
* namespace [GroupDocs.Viewer.Options](../../pdfoptions)
* assembly [GroupDocs.Viewer](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll -->
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: EnableFontHinting
second_title: GroupDocs.Viewer for .NET API Reference
description: Enables font hinting. The font hinting adjusts the display of an outline font. Supported only for TTF fonts when these fonts are used in source document.
type: docs
weight: 30
weight: 40
url: /net/groupdocs.viewer.options/pdfoptions/enablefonthinting/
---
## PdfOptions.EnableFontHinting property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: EnableLayeredRendering
second_title: GroupDocs.Viewer for .NET API Reference
description: Enables rendering of text and graphics according to zorder in original PDF document when rendering into HTML.
type: docs
weight: 40
weight: 50
url: /net/groupdocs.viewer.options/pdfoptions/enablelayeredrendering/
---
## PdfOptions.EnableLayeredRendering property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: FixedLayout
second_title: GroupDocs.Viewer for .NET API Reference
description: PDF is a fixed format so all of the elements have a specific place on a page. To ensure that the output HTML looks the same as the source PDF the documents are rendered to HTML with a fixed layout by default. When rendering with fixed layout the output HTML has fixed size so the elements will stay on the same place regardless of window size. To render to HTML with fluid layout set this property to false.
type: docs
weight: 50
weight: 60
url: /net/groupdocs.viewer.options/pdfoptions/fixedlayout/
---
## PdfOptions.FixedLayout property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: ImageQuality
second_title: GroupDocs.Viewer for .NET API Reference
description: Specifies output image quality for image resources when rendering into HTML. The default value is Low.
type: docs
weight: 60
weight: 70
url: /net/groupdocs.viewer.options/pdfoptions/imagequality/
---
## PdfOptions.ImageQuality property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: RenderOriginalPageSize
second_title: GroupDocs.Viewer for .NET API Reference
description: When this option enabled the output pages will have the same size in pixels as page size in a source PDF document. By default GroupDocs.Viewer calculates output image page size for better rendering quality.
type: docs
weight: 70
weight: 80
url: /net/groupdocs.viewer.options/pdfoptions/renderoriginalpagesize/
---
## PdfOptions.RenderOriginalPageSize property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: RenderTextAsImage
second_title: GroupDocs.Viewer for .NET API Reference
description: When this option is set to true the text is rendered as an image in the output HTML. Enable this option to make text unselectable or to fix characters rendering and make HTML look like PDF. The default value is false.
type: docs
weight: 80
weight: 90
url: /net/groupdocs.viewer.options/pdfoptions/rendertextasimage/
---
## PdfOptions.RenderTextAsImage property
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
title: WrapImagesInSvg
second_title: GroupDocs.Viewer for .NET API Reference
description: Enable this option to wrap each image in the output HTML document in SVG tag to improve output quality.
type: docs
weight: 100
url: /net/groupdocs.viewer.options/pdfoptions/wrapimagesinsvg/
---
## PdfOptions.WrapImagesInSvg property

Enable this option to wrap each image in the output HTML document in SVG tag to improve output quality.

```csharp
public bool WrapImagesInSvg { get; set; }
```

### Remarks

This option is supported when rendering [PDF and Page Layout file formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/#pdf-and-page-layout-file-formats) to HTML with embedded and external resources.

By default, when rendering to PDF and Page Layout files, all the images are rendered as one PNG image. The rendered PNG image is used as the background for the output HTML document.

Learn more:

* [Render PDF documents as HTML and image files](https://docs.groupdocs.com/viewer/net/render-pdf-documents/)
* [Render to HTML](https://docs.groupdocs.com/viewer/net/rendering-to-html/)

### Examples

The example demonstrates a typical usage of this option.

```csharp
using (Viewer viewer = new Viewer("resume.pdf"))
{
HtmlViewOptions viewOptions =
HtmlViewOptions.ForEmbeddedResources();
viewOptions.PdfOptions.WrapImagesInSvg = true;

viewer.View(viewOptions);
}
```

### See Also

* class [PdfOptions](../../pdfoptions)
* namespace [GroupDocs.Viewer.Options](../../pdfoptions)
* assembly [GroupDocs.Viewer](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll -->

0 comments on commit 948ca7d

Please sign in to comment.