My Word document contains a logo in the Header. When it is converted to PDF the logo is duplicated. In word te document looks like this
but when converted it looks like this
Can you explain what is happening here?
My Word document contains a logo in the Header. When it is converted to PDF the logo is duplicated. In word te document looks like this
but when converted it looks like this
Can you explain what is happening here?
The issue of the logo being duplicated in the PDF conversion from your Word document may be related to how the header content is processed during the conversion. When converting to PDF, Aspose.Words attempts to replicate the layout and content as closely as possible to how it appears in Word. However, sometimes elements like headers and footers can be rendered incorrectly, leading to duplication.
To address this, you can use the PdfSaveOptions
class to specify settings that might help control how the header content is rendered. For instance, enabling the OptimizeOutput
property can help reduce redundancy in the output.
Here’s a code snippet to illustrate how to set this up:
Document doc = new Document("YourDocument.docx");
PdfSaveOptions options = new PdfSaveOptions();
options.OptimizeOutput = true; // Optimize the output to reduce duplication
doc.Save("YourDocument.pdf", options);
If the problem persists, check the header settings in your Word document to ensure there are no overlapping elements or duplicate images.
For further assistance, consider reviewing the relevant sections of the Aspose documentation on PDF conversion options.
@john.gleeson Could you please attach your problematic input and output documents here for testing? We will check the issue and provide you more information. Unfortunately, screenshots do not give enough information for analysis.
Just want to add that this is happening on only one document in the system. There are many others using a similar header which do convert correctly.
@john.gleeson
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-28686
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.