From 948ca7d0926d171424b9d4cc2e4b7fe4f800738e Mon Sep 17 00:00:00 2001 From: yevgen-nykytenko Date: Fri, 3 Nov 2023 13:03:12 -0500 Subject: [PATCH] Update content 2023-11-03 13:03:12 --- .../loadoptions/_index.md | 2 +- .../loadoptions/detectencoding/_index.md | 2 +- .../loadoptions/encoding/_index.md | 2 +- .../resourceloadingtimeout/_index.md | 17 ++++--- .../skipexternalresources/_index.md | 12 ++--- .../whitelistedresources/_index.md | 12 ++--- .../pdfoptions/_index.md | 2 + .../disablefontlicenseverifications/_index.md | 40 +++++++++++++++ .../pdfoptions/enablefonthinting/_index.md | 2 +- .../enablelayeredrendering/_index.md | 2 +- .../pdfoptions/fixedlayout/_index.md | 2 +- .../pdfoptions/imagequality/_index.md | 2 +- .../renderoriginalpagesize/_index.md | 2 +- .../pdfoptions/rendertextasimage/_index.md | 2 +- .../pdfoptions/wrapimagesinsvg/_index.md | 49 +++++++++++++++++++ 15 files changed, 121 insertions(+), 29 deletions(-) create mode 100644 english/net/groupdocs.viewer.options/pdfoptions/disablefontlicenseverifications/_index.md create mode 100644 english/net/groupdocs.viewer.options/pdfoptions/wrapimagesinsvg/_index.md diff --git a/english/net/groupdocs.viewer.options/loadoptions/_index.md b/english/net/groupdocs.viewer.options/loadoptions/_index.md index 6f32921d7..ab3bd6822 100644 --- a/english/net/groupdocs.viewer.options/loadoptions/_index.md +++ b/english/net/groupdocs.viewer.options/loadoptions/_index.md @@ -29,7 +29,7 @@ public class LoadOptions | [Encoding](../../groupdocs.viewer.options/loadoptions/encoding) { get; set; } | 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) { get; set; } | The type of the file to open. | | [Password](../../groupdocs.viewer.options/loadoptions/password) { get; set; } | The password for opening encrypted file. | -| [ResourceLoadingTimeout](../../groupdocs.viewer.options/loadoptions/resourceloadingtimeout) { get; set; } | The external resources e.g. graphics loading timeout. The default value is 30 seconds. | +| [ResourceLoadingTimeout](../../groupdocs.viewer.options/loadoptions/resourceloadingtimeout) { get; set; } | The external resources loading timeout. The default value is 10 seconds. | | [SkipExternalResources](../../groupdocs.viewer.options/loadoptions/skipexternalresources) { get; set; } | When set to `true` all external resource such as images will not be loaded except [`WhitelistedResources`](./whitelistedresources). | | [WhitelistedResources](../../groupdocs.viewer.options/loadoptions/whitelistedresources) { get; set; } | The list of URL fragments corresponding to external resources that should be loaded when [`SkipExternalResources`](./skipexternalresources) is set to `true`. | diff --git a/english/net/groupdocs.viewer.options/loadoptions/detectencoding/_index.md b/english/net/groupdocs.viewer.options/loadoptions/detectencoding/_index.md index db94b671c..e7654b973 100644 --- a/english/net/groupdocs.viewer.options/loadoptions/detectencoding/_index.md +++ b/english/net/groupdocs.viewer.options/loadoptions/detectencoding/_index.md @@ -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/) diff --git a/english/net/groupdocs.viewer.options/loadoptions/encoding/_index.md b/english/net/groupdocs.viewer.options/loadoptions/encoding/_index.md index a2a94ab46..fe7181bed 100644 --- a/english/net/groupdocs.viewer.options/loadoptions/encoding/_index.md +++ b/english/net/groupdocs.viewer.options/loadoptions/encoding/_index.md @@ -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) diff --git a/english/net/groupdocs.viewer.options/loadoptions/resourceloadingtimeout/_index.md b/english/net/groupdocs.viewer.options/loadoptions/resourceloadingtimeout/_index.md index 127c6dcdc..88d81df6c 100644 --- a/english/net/groupdocs.viewer.options/loadoptions/resourceloadingtimeout/_index.md +++ b/english/net/groupdocs.viewer.options/loadoptions/resourceloadingtimeout/_index.md @@ -1,14 +1,14 @@ --- 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; } @@ -16,13 +16,14 @@ 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/) @@ -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)) { diff --git a/english/net/groupdocs.viewer.options/loadoptions/skipexternalresources/_index.md b/english/net/groupdocs.viewer.options/loadoptions/skipexternalresources/_index.md index 1ad84311a..3ada7f30d 100644 --- a/english/net/groupdocs.viewer.options/loadoptions/skipexternalresources/_index.md +++ b/english/net/groupdocs.viewer.options/loadoptions/skipexternalresources/_index.md @@ -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/) diff --git a/english/net/groupdocs.viewer.options/loadoptions/whitelistedresources/_index.md b/english/net/groupdocs.viewer.options/loadoptions/whitelistedresources/_index.md index 636c9a29b..c040b6d67 100644 --- a/english/net/groupdocs.viewer.options/loadoptions/whitelistedresources/_index.md +++ b/english/net/groupdocs.viewer.options/loadoptions/whitelistedresources/_index.md @@ -16,14 +16,14 @@ public List 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/) diff --git a/english/net/groupdocs.viewer.options/pdfoptions/_index.md b/english/net/groupdocs.viewer.options/pdfoptions/_index.md index 2b9b4d390..09a28fa51 100644 --- a/english/net/groupdocs.viewer.options/pdfoptions/_index.md +++ b/english/net/groupdocs.viewer.options/pdfoptions/_index.md @@ -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) { get; set; } | Disable any license restrictions for all fonts in current XPS/OXPS document | | [EnableFontHinting](../../groupdocs.viewer.options/pdfoptions/enablefonthinting) { get; set; } | 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) { get; set; } | Enables rendering of text and graphics according to z-order in original PDF document when rendering into HTML. | | [FixedLayout](../../groupdocs.viewer.options/pdfoptions/fixedlayout) { get; set; } | 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) { get; set; } | Specifies output image quality for image resources when rendering into HTML. The default value is Low. | | [RenderOriginalPageSize](../../groupdocs.viewer.options/pdfoptions/renderoriginalpagesize) { get; set; } | 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) { get; set; } | 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) { get; set; } | Enable this option to wrap each image in the output HTML document in SVG tag to improve output quality. | ### See Also diff --git a/english/net/groupdocs.viewer.options/pdfoptions/disablefontlicenseverifications/_index.md b/english/net/groupdocs.viewer.options/pdfoptions/disablefontlicenseverifications/_index.md new file mode 100644 index 000000000..83592dad0 --- /dev/null +++ b/english/net/groupdocs.viewer.options/pdfoptions/disablefontlicenseverifications/_index.md @@ -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](../../../) + + diff --git a/english/net/groupdocs.viewer.options/pdfoptions/enablefonthinting/_index.md b/english/net/groupdocs.viewer.options/pdfoptions/enablefonthinting/_index.md index b28149373..e9d30754d 100644 --- a/english/net/groupdocs.viewer.options/pdfoptions/enablefonthinting/_index.md +++ b/english/net/groupdocs.viewer.options/pdfoptions/enablefonthinting/_index.md @@ -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 diff --git a/english/net/groupdocs.viewer.options/pdfoptions/enablelayeredrendering/_index.md b/english/net/groupdocs.viewer.options/pdfoptions/enablelayeredrendering/_index.md index 4d68685c6..d2b8ccd00 100644 --- a/english/net/groupdocs.viewer.options/pdfoptions/enablelayeredrendering/_index.md +++ b/english/net/groupdocs.viewer.options/pdfoptions/enablelayeredrendering/_index.md @@ -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 diff --git a/english/net/groupdocs.viewer.options/pdfoptions/fixedlayout/_index.md b/english/net/groupdocs.viewer.options/pdfoptions/fixedlayout/_index.md index 3e35ec391..f864bece8 100644 --- a/english/net/groupdocs.viewer.options/pdfoptions/fixedlayout/_index.md +++ b/english/net/groupdocs.viewer.options/pdfoptions/fixedlayout/_index.md @@ -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 diff --git a/english/net/groupdocs.viewer.options/pdfoptions/imagequality/_index.md b/english/net/groupdocs.viewer.options/pdfoptions/imagequality/_index.md index 1aefb4bcf..5a0ccddad 100644 --- a/english/net/groupdocs.viewer.options/pdfoptions/imagequality/_index.md +++ b/english/net/groupdocs.viewer.options/pdfoptions/imagequality/_index.md @@ -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 diff --git a/english/net/groupdocs.viewer.options/pdfoptions/renderoriginalpagesize/_index.md b/english/net/groupdocs.viewer.options/pdfoptions/renderoriginalpagesize/_index.md index 6ff5b78b0..c317f5b7e 100644 --- a/english/net/groupdocs.viewer.options/pdfoptions/renderoriginalpagesize/_index.md +++ b/english/net/groupdocs.viewer.options/pdfoptions/renderoriginalpagesize/_index.md @@ -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 diff --git a/english/net/groupdocs.viewer.options/pdfoptions/rendertextasimage/_index.md b/english/net/groupdocs.viewer.options/pdfoptions/rendertextasimage/_index.md index 49e20523d..836da8a06 100644 --- a/english/net/groupdocs.viewer.options/pdfoptions/rendertextasimage/_index.md +++ b/english/net/groupdocs.viewer.options/pdfoptions/rendertextasimage/_index.md @@ -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 diff --git a/english/net/groupdocs.viewer.options/pdfoptions/wrapimagesinsvg/_index.md b/english/net/groupdocs.viewer.options/pdfoptions/wrapimagesinsvg/_index.md new file mode 100644 index 000000000..a1df5d15b --- /dev/null +++ b/english/net/groupdocs.viewer.options/pdfoptions/wrapimagesinsvg/_index.md @@ -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](../../../) + +