Set archive file name

Set filename when rendering archive files

When rendering the archive files GroupDocs.Viewer displays an archive filename in the header of each page, like it is shown on the screenshot above. By default, the name of the original file is used. The GroupDocs.Viewer enables you to change or hide filename by setting FileName option of the ArchiveOptions class. The FileName option can be set to:

The following code snippet shows how to set “my filename” instead of source filename when rendering an archive file.

using (Viewer viewer = new Viewer(""))
    PdfViewOptions viewOptions = new PdfViewOptions();
    viewOptions.ArchiveOptions.FileName = new FileName("my filename");


© Aspose Pty Ltd 2001-2022. All Rights Reserved.