Skip to content

Commit 5f75477

Browse files
VIEWERNET-5059 - Small fix of hyperlinks
1 parent ccabb34 commit 5f75477

File tree

1 file changed

+2
-2
lines changed
  • net/rendering-basics/render-archives

1 file changed

+2
-2
lines changed

net/rendering-basics/render-archives/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ End Using
393393

394394
Like for all other supported formats, the GroupDocs.Viewer supports getting the view info for the archive documents. This means that for the loaded archive a GroupDocs.Viewer can grab metadata like exact format, whether or not it is password-protected, list of folders inside archive, and a number of pages, which the GroupDcos.Viewer will produce in case when rendering to PDF, PNG, or JPEG will be selected. More info about retrieving the document information in general may be found in the corresponding [article]({{< ref "viewer/net/developer-guide/retrieving-document-information/_index.md" >}}).
395395

396-
In order to retrieve metadata about specific archive, the [`Viewer.GetViewInfo()`] method must be called. This method obtains an instance of [`ViewInfoOptions`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/viewinfooptions/) class, which can be created from its own or from existing view options. The GroupDocs.Viewer constructs the metadata about the archive in accordance to the passed [`ViewInfoOptions`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/viewinfooptions/) and its specific settings. For example, for the HTML-based info options the number of returned [`Pages`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/viewinfo/pages/) is always "1" (because the displaying to the HTML format is pageless), while for the PDF, PNG and JPEG there will be some specific page number depending on count of files and folders within the archive.
396+
In order to retrieve metadata about specific archive, the [`Viewer.GetViewInfo()`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/getviewinfo/#getviewinfo) method must be called. This method obtains an instance of [`ViewInfoOptions`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/viewinfooptions/) class, which can be created from its own or from existing view options. The GroupDocs.Viewer constructs the metadata about the archive in accordance to the passed [`ViewInfoOptions`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/viewinfooptions/) and its specific settings. For example, for the HTML-based info options the number of returned [`Pages`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/viewinfo/pages/) is always "1" (because the displaying to the HTML format is pageless), while for the PDF, PNG and JPEG there will be some specific page number depending on count of files and folders within the archive.
397397

398-
In the context of archives the [`Viewer.GetViewInfo()`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/getviewinfo/#getviewinfo) method returns an instance of the [`ArchiveViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/) class, which is the direct inheritor of the [`ViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/viewinfo/) class. Except for the properties present in the [`ViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/viewinfo/), the [`ArchiveViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/) provides a [`Folders`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/folders/) property of `List<System.String>` type — it contains a list of all folders, stored in the archive. Please note that the GroupDocs.Viewer creates a new `List` with folder names every time when method [`Viewer.GetViewInfo()`] is called. Also [`ArchiveViewInfo.Folders`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/folders/) property does not take into account the value of the [`ArchiveOptions.Folder`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/archiveoptions/folder/) property, even if [`ViewInfoOptions`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/viewinfooptions/) was created from such an option — so [`ArchiveViewInfo.Folders`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/folders/) always returns a complete list of folders inside the archive.
398+
In the context of archives the [`Viewer.GetViewInfo()`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/getviewinfo/#getviewinfo) method returns an instance of the [`ArchiveViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/) class, which is the direct inheritor of the [`ViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/viewinfo/) class. Except for the properties present in the [`ViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/viewinfo/), the [`ArchiveViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/) provides a [`Folders`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/folders/) property of `List<System.String>` type — it contains a list of all folders, stored in the archive. Please note that the GroupDocs.Viewer creates a new `List` with folder names every time when method [`Viewer.GetViewInfo()`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/getviewinfo/#getviewinfo) is called. Also [`ArchiveViewInfo.Folders`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/folders/) property does not take into account the value of the [`ArchiveOptions.Folder`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/archiveoptions/folder/) property, even if [`ViewInfoOptions`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/viewinfooptions/) was created from such an option — so [`ArchiveViewInfo.Folders`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/folders/) always returns a complete list of folders inside the archive.
399399

400400
Concluding: to get the [`ArchiveViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/), just load the archive document to the [`Viewer`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer) [constructor](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/#constructors), create a relevant [`ViewInfoOptions`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/viewinfooptions/), call the [`Viewer.GetViewInfo()`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/getviewinfo/#getviewinfo) and cast the returned [`ViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/viewinfo/) instance to the [`ArchiveViewInfo`](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/archiveviewinfo/) type.
401401

0 commit comments

Comments
 (0)