[{"id":"7e3f7136-1a64-4958-84b8-24a4fbd2ef63","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"ab9ddf70-2472-43cc-94cd-2d03e0184d91","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"5e8a53c6-6b91-48cd-948d-406d4b128766","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"1acc9c3e-8bdd-4252-8798-4c4daf6db52c","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"074fc315-ff19-4be5-90ff-4fafbf049047","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"b94af2a4-df24-4732-825c-934150ecfcd3","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"985baaf2-5017-40cd-9cc9-b50fdb4b0b6c","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"fb2abd65-126a-4d70-9674-c1c331d2a4ad","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"cda48895-8088-4634-9e44-c92fdfbc024c","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]}]
        
(Showing Draft Content)

Viewer Export settings

In Overview, we mentioned that you could use the exportsSettings property of Angular, React, and Vue Report Viewer Components or the ExportsSettings property of the second argument of ActiveReports.Viewer constructor to preset the default export settings for each supported format.

The value of exportsSettings should be an object of the following shape:

const exportsSettings = {
  pdf: {
    author: "GrapeCity",
    // default values for other PDF Export settings
  },
  html: {
    title: "GrapeCity",
    // default value for other HTML export settings
  },
  'tabular-data': {
    outputType: "plain",
    // default value for other TabularData export settings
  } 
};

Each export format has unique settings. The following sections list them.

PDF Export Settings

Name

Type

Description

title

string

Sets the title that appears in the PDF document metadata

author

string

Sets the author name that appears in the PDF document metadata

subject

string

Sets the subject that appears in the PDF document metadata

keywords

string

Sets the list of keywords that appears in the PDF document metadata

userPassword

string

Sets the password that a user should enter in the PDF viewer to access the document. Restrictions specified in the settings are applied.

ownerPassword

string

Sets the password that a user should enter in the PDF viewer to get the unrestricted access to the document

printing

'lowResolution' | 'highResolution' | 'none'

Sets the allowed printing mode for the PDF document

copying

boolean

Indicates whether it is allowed to copy the content of the PDF document

modifying

boolean

Indicates whether it is allowed to modify the content of the PDF document

annotating

boolean

Indicates whether it is allowed to annotate the content of the PDF document

contentAccessibility

boolean

Indicates whether accessibility features are allowed for the PDF document

documentAssembly

boolean

Indicates whether it is allowed to assemble the PDF document with other documents

pdfVersion

'1.3' | '1.4' | '1.5' | '1.6' | '1.7' | '1.7ext3'|'PDF/A-2b'|'PDF/A-3b'

Sets the PDF document version

autoPrint

boolean

Indicates whether the PDF document should start printing when opens

filename

string

Indicates the file name of the PDF document

Notes:

  • The default PDF Version (1.3) allows setting only four base types of permissions: printing, modifying, copying, and annotating. All other permissions need PDF 1.4+.

  • Document assembly permission is always displayed as "Not allowed" in the Adobe Acrobat Reader (and possibly in other reader applications), as this application does not allow combining documents at all. The Adobe Acrobat should show the real state of assembly permission.

TabularData Export settings

Name

Type

Description

colSeparator

string

Sets the string that is used to separate columns in the output CSV file

rowSeparator

string

Sets the string that is used to separate rows in the output CSV file

quotationSymbol

string

Sets the string that is used to wrap together text that should be kept as one value in the output CSV file

outputType

'zip' or 'plain'

Sets the output type. If a report contains multiple tables or tablices, and the outputType is 'zip' then each table and tablix is saved in a separate file

tableSeparator

string

Sets the string that is used to separate tables and tablices between each other in case a report contains multiple tables and tablices and the outputType is set to 'plain'

Html Export settings

Name

Type

Description

title

string

Sets the title of the HTML document

filename

string

Sets the file name of the HTML document

autoPrint

boolean

Indicates whether the document should start printing when opened

multiPage

boolean

Indicates whether the output HTML document should export each report page into a separate document.

embedImages

'embed' | 'external' | 'none'

Sets the mode of saving images in the output document. 'embed' indicates that images are converted to base64 and embedded within the document. 'external' indicates that images reside in external files. This mode only available if outputType is 'zip' or 'auto'.

outputType

'zip' | 'html' | 'auto'

Sets the format of the output document. 'zip' compresses the output files to an archive, 'html' produces one or more HTML files, and 'auto' chooses the output format based on multiPage and embedImages properties values