Header shrinking when importing header node from source to destination document and save as PDF

Using two documents, one Word document and the second an RTF document when importing the HeaderFooter node of the Word document to the RTF document and then saving the RTF document as a .PDF the header of the document is shrunken.


Code for “moving” the header from the source document to the destination document:

HeaderFooter SCMDocHeaderAndFooter = (HeaderFooter)enumerator2.Current;
Node SCMDocHeaderFooterNode = document.ImportNode(SCMDocHeaderAndFooter, true, ImportFormatMode.KeepSourceFormatting);
section.HeadersFooters.Add(SCMDocHeaderFooterNode);

Source document with header also attached.

Thanks,
Hi Larry,

Thanks for your inquiry. Please attach the following resources here for testing:

  • Input Word and RTF documents
  • Aspose.Words generated output PDF document which shows incorrect result
  • Please create a standalone Console application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing..

As soon as you get these pieces of information ready, we'll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.

Best regards,