Tiff setting to Exclude page header and footer

Hi,

I am using Aspose.Words (.NET) for processing Word Documents.
I am converting word documents to tiff image.
How to exclude Page Header, Page Footer, Comments and Revisions while converting documents to tiff.
Is there any tiff settings available for this?
Thanks,
Sarath

Hi
Thanks for your request. There is no such option// but you can easily remove Headers/Footers, comments and revisions from the document before converting to Tiff. Please see the following code:

// Open document.
Document doc = new Document(@"Test001\in.doc");
// Remove all headers/footers.
NodeCollection headersFooters = doc.GetChildNodes(NodeType.HeaderFooter, true);
headersFooters.Clear();
// Remove comments.
NodeCollection comments = doc.GetChildNodes(NodeType.Comment, true);
comments.Clear();
// Accept all revisions.
doc.AcceptAllRevisions();
// Save documents as TIFF.
doc.Save(@"Test001\out.tiff", SaveFormat.Tiff);

Hope this helps.
Best regards,