Converting Wordtemplates to PDF linespacing/layout issues


#1

Hi,
we are using Aspose Words since some years (Version 1.2) to convert MS Wordtemplates, fillout the content from external DB and export the result to PDF (PDF/A).
Now we upgraded to current version and figured out some strange results.

  • TOC of the Word Template is always empty
  • linespacing of Elements is different --> elements are now stretched --> which results in additional page breaks
  • therefore result page layout is different between version 1.2 and current version

Any idea to get the same results from layout perspective with the current version?

Thanks in advance
Tom


#2

@gustavder3,

Do you get the correct results when saving the final output to DOCX format instead of PDF?

If yes, please ZIP and attach both the Aspose.Words generated DOCX file and the PDF file showing the undesired behavior here for testing.

We will then investigate the issue on our end and provide you more information.


#3

Hi,
thanks for your response.
No the issue is already in the generated DOCX.

We are loading the DOCX template file, doing some placeholder replacements (text only).
And then writing this out to an DOCX and PDF.

Before I can upload the files, I need to prepare an file with anonymous data because of data protection of our customers.

Cheers
Tom


#4

@gustavder3,

We will wait for you further input on this. Please provide complete resources so that we will be able to reproduce the exact issue on our end e.g. the input word document, Aspose.Words generated DOCX/PDF files showing the undesired behavior, expected document, console application (source code without compilation errors). Thanks for your cooperation.