Word to pdf 2 error

Hi

Word File converted pdf but have 2 errors
error1.png (93.6 KB)
error2.jpg (99.4 KB)

Thanks

@srmbimser,

Thanks for your inquiry. Unfortunately, we are unable to download Word and images files. Please ZIP and attach them again. We will investigate the issue and provide you more information about your query.

Hi
New link word file

@srmbimser,

Thanks for sharing the detail. Unfortunately, we are unable to get the files. The shared link shows warning message “Link limit exceeded”. Please ZIP and attach your documents for testing. Thanks for your cooperation.

Hi
New link 14Mb zip file
error2.jpg (99.4 KB)
error1.png (93.6 KB)

Thanks

@srmbimser,

Thanks for sharing the detail. 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-17055. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

We have not found this issue while using latest version of Aspose.Words for .NET 18.6. Please use Aspose.Words for .NET 18.6. Please check the attached image of output. output.png (82.9 KB)

Hi

I used “Aspose.Words for .NET 18.7” for error. But the following code blocks are not working. Some properties removed


Aspose.Words.Document eskiDoc = new Aspose.Words.Document(msDocument);
Aspose.Words.Document yeniDoc = new Aspose.Words.Document(msDocument2);
foreach (DictionaryEntry entryEski in eskiDoc.Variables)
{
    if (yeniDoc.Variables[entryEski.Key.ToString()] != null)
    {
        yeniDoc.Variables[entryEski.Key.ToString()] = entryEski.Value.ToString();
    } 
}

DocumentBuilder builder = new DocumentBuilder(wordDoc);
builder.RowFormat.AllowAutoFit = true;

@srmbimser,

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

  • Your input Word documents.
  • Please attach the output document that shows the undesired behavior.
  • Please attach the expected output document 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.

@tahir.manzoor

Thank you for your answer. But I guess I could not tell you the problem.
The “oldDoc.Variables” type was “DictionaryEntry”. Changed!
The “builder.RowFormat.AllowAutoFit” property has been removed.
What we need to use instead of these codes. The project is not compiled anyway.
These codes work in “Aspose.Words for .NET 18.2”

@srmbimser,

Thanks for your inquiry. Obsolete property RowFormat.AllowAutoFit was removed in Aspose.Words 18.6. Please use the Table.AllowAutoFit property instead.

The VariableCollection has been changed in Aspose.Words 18.7.

Before:
public class VariableCollection : IEnumerable

After:
public class VariableCollection : IEnumerable<KeyValuePair<string, string>>

We suggest you please check the following code example.

Document doc = new Document(dataDir + "TestFile.doc");
string variables = "";
foreach (KeyValuePair<string, string> entry in doc.Variables)
{
    string name = entry.Key.ToString();
    string value = entry.Value.ToString();
    if (variables == "")
    {
        // Do something useful.
        variables = "Name: " + name + "," + "Value: {1}" + value;
    }
    else
    {
        variables = variables + "Name: " + name + "," + "Value: {1}" + value;
    }
}

Please check the following release notes.
Aspose.Words for .NET 18.7 Release Notes
Aspose.Words for .NET 18.6 Release Notes

The issues you have found earlier (filed as WORDSNET-17055) have been fixed in this Aspose.Words for .NET 18.8 update and this Aspose.Words for Java 18.8 update.

Hi

The update was made, but the problem did not improve. There is still an error in the picture error1.png (93.6 KB) in the PDF conversion. Page 2
word file

@srmbimser,

Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for .NET 18.8 and have not found the shared issue. Please make sure that you are using latest version of Aspose.Words for .NET 18.8. We have attached the screenshot of 2nd page of output PDF.

https://imgur.com/a/fnduaix