Generator or Producer Name Included in Output Documents

Contents
[ ]

You can easily know if a document is produced by using Aspose.Words for Python via .NET. You can also find the version number of Aspose.Words for Python via .NET that was used to create a particular output document. Aspose.Words directly writes this information into the generated document.

The version number is specified in the format YY.MM.N or YY.M.N, for example, 23.12.0 or 24.1.0.
Here YY is the last two digits of the release year, M or MM is the release month (1–12), and N is the minor release number. Usually, N is “0”.

Depending on the output file format, the following table lists the ways that you can use to know the generator name and version number.

SaveFormat Value String, Comment, or Field Written in the File How to Find
Doc AWN.YY.M.N
For example,
AWN.24.1.0
DOC generated by Aspose.Words gets 8 bytes written. You can check it by opening the file in some binary editor.
Dot AWN.YY.M.N
For example,
AWN.24.1.0
DOT generated by Aspose.Words gets 8 bytes written. You can check it by opening the file in some binary editor.
Docx <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
Rename the file as .zip. Extract the ZIP. Open ~/Word/Document.xml to see this comment.
Docm <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
Rename the file as .zip. Extract the ZIP. Open ~/Word/Document.xml to see this comment.
Dotx <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
Rename the file as .zip. Extract the ZIP. Open ~/Document.xml to see this comment.
Dotm <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
Rename the file as .zip. Extract the ZIP. Open ~/Word/Document.xml to see this comment.
FlatOpc <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
.xml file contains this comment. You can open it in Notepad to see this comment.
FlatOpcMacroEnabled <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
.xml file contains this comment. You can open it in Notepad to see this comment.
FlatOpcTemplate <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
.xml file contains this comment. You can open it in Notepad to see this comment.
FlatOpcTemplateMacroEnabled <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
.xml file contains this comment. You can open it in Notepad to see this comment.
Rtf {\*\generator Aspose.Words for Python via .NET YY.M.N;}
For example,
{\*\generator Aspose.Words for Python via .NET 24.1.0;}
.rtf file contains this comment. You can open it in Notepad to see this comment.
WordML <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
.xml file contains this comment. You can open it in Notepad to see this comment.
Pdf
  • Application: Aspose.Words
  • PDF Producer: Aspose.Words for Python via .NET YY.M.N, for example,
    Aspose.Words for Python via .NET 24.1.0
generator-or-producer-name-aspose-words-net
Xps <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
Rename the file as .zip. Extract the ZIP. In XPS this comment can be found in ~/Documents/1/Pages/1.fpage
XamlFixed <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
.xml file contains this comment. You can open it in Notepad to see this comment.
Svg <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
.xml file contains this comment. You can open it in Notepad to see this comment.
HtmlFixed <meta name="generator" content="Aspose.Words for Python via .NET YY.M.N" />
For example,
<meta name="generator" content="Aspose.Words for Python via .NET 24.1.0" />
HTML file contains this tag. You can open it in Notepad to see.
OpenXps <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
Rename the file as .zip. Extract the ZIP. In OpenXps this comment can be found in ~/Documents/1/Pages/1.fpage
Ps %Generated by Aspose.Words for Python via .NET YY.M.N
For example,
%Generated by Aspose.Words for Python via .NET 24.1.0
.ps file contains this comment. You can open it in Notepad to see this comment.
Pcl
Html <meta name="generator" content="Aspose.Words for Python via .NET YY.M.N" />
For example,
<meta name="generator" content="Aspose.Words for Python via .NET 24.1.0" />
HTML file contains this tag. You can open it in Notepad to see.
Mhtml <meta name="generator" content="Aspose.Words for Python via .NET YY.M.N" />
For example,
<meta name="generator" content="Aspose.Words for Python via .NET 24.1.0" />
MHTML file contains this tag. You can open it in Notepad to see.
Epub <meta name="generator" content="Aspose.Words for Python via .NET YY.M.N" />
For example,
<meta name="generator" content="Aspose.Words for Python via .NET 24.1.0" />
Rename the file as .zip. Extract the ZIP. Go to ~/OEBPS/<file_name>.html.
Odt <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
Rename the file as .zip. Extract the ZIP. Check it in ~/content.xml
Ott <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
Rename the file as .zip. Extract the ZIP. Check it in ~/content.xml
Text
XamlFlow <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
.xml file contains this comment. You can open it in Notepad to see this comment.
XamlFlowPack <!-- Generated by Aspose.Words for Python via .NET YY.M.N -->
For example,
<!-- Generated by Aspose.Words for Python via .NET 24.1.0 -->
.xml file contains this comment. You can open it in Notepad to see this comment.
Markdown
Tiff
Png
Bmp
Emf
Jpeg
Gif

FAQ

  1. Q: How can I remove the generator name and version information from the saved document?
    A: Set the SaveOptions.remove_generator_info property to True (or the equivalent option for the specific format) before calling Document.save. This instructs Aspose.Words not to embed the AWN.YY.M.N comment or meta tag.

  2. Q: Where is the generator information stored in a DOCX file?
    A: It is written as an XML comment <!-- Generated by Aspose.Words for Python via .NET YY.M.N --> inside the word/document.xml part of the DOCX package. Rename the DOCX to .zip, extract it, and open that file to view the comment.

  3. Q: How do I locate the generator string in a PDF created by Aspose.Words?
    A: The PDF contains an XMP metadata entry Producer with the value Aspose.Words for Python via .NET YY.M.N. You can view it in a PDF viewer’s document properties or by inspecting the XMP packet.

  4. Q: Does the generator comment appear in RTF files?
    A: Yes. In RTF the generator is stored as a control word {\*\generator Aspose.Words for Python via .NET YY.M.N;}. Opening the RTF in a text editor will show this line near the top of the file.

  5. Q: Can I customize the text of the generator comment?
    A: No. The format of the generator information is fixed by Aspose.Words and cannot be changed programmatically. You can only choose to include or exclude it.