We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Shape and tabe position is changed after DOCX to PDF conversion using C#

I generate DOCX from HTML blocks, but I assume it’s not that important. Then I save the Document as DOCX and PDF. And here I’ve got some differences:

  1. Look at the logo: at PDF it’s left-aligned, and at Word it’s right-aligned (correct).
    image.png (43.8 KB)

  2. The header is a simple 3-column table. All 3 columns have the same width at Word, but at PDF the block with logo is much wider
    image.png (41.8 KB)

@emfbd33

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input document.
  • Please attach the output file that shows the undesired behavior.
  • Please attach the expected output file that shows the desired behavior.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

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

PS: To attach these resources, please zip and upload them.

2029.zip (726.8 KB)
Can you start by trying to convert the attached DOCX to PDF?

It will take me considerable time to extract my document generator into a standalone app…

  1. Look at the table: at PDF it’s not 100% wide, and at DOCX it’s 100% wide (looks much better)

image.png (75.8 KB)
2030.zip (330.1 KB)

@emfbd33

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-19952. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

We are working over this query and will get back to you soon.

@emfbd33

We have logged this problem in our issue tracking system as WORDSNET-19953 . You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.