Bullet spacing issue while converting aspose created word document to PDF using Documentum Transformation Service

Hi,

In our project, I have created a word document(attached) using aspose.word having Numbered bullets. The document is having 3 lines with 3 numbered bullets. The issue that we are facing is that when we convert the word document to PDF(screenshot attached) using the Documentum Transformation Services, the PDF shows blank spaces between the bullet and the text in the 2nd and the 3rd bullet(about a tab space). The 1st bullet is shown correctly. Can you give suggestions as to why this might be happening?

Thanks & Regards
Gaurang

Hi Gaurang,

Thanks for your inquiry. After an initial test with Aspose.Words 13.12.0, I was unable to reproduce this issue on my side. I would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

I hope, this helps.

Best regards,

Hi Awais,

Thank you for your prompt reply. Using the latest version of aspose.word in our application did resolve our issue.

Thanks,
Gaurang

Hi Awais,

We were testing our application with the new jar and found out that the images that were displayed correctly in the earlier version of aspose.words are now not visible using the latest version. Are there any changes made in displaying images while HTML-DOCX conversion. Kindly explain if any changes are needed in the code?

The following is the HTML and the code that is used while converting to the document.

  • Please enter content here



com.aspose.words.Document asposeDoc = new com.aspose.words.Document(defaultWordFile);
DocumentBuilder builder = new DocumentBuilder(asposeDoc);
builder.insertHtml(htmlInput);
File outputFile = new File(destinationPath);
asposeDoc.save(destinationPath+File.separator+fileName);


Thanks,
Gaurang

Hi Gaurang,


Thanks for your inquiry. This problem is probably caused by the fact that the image file was not available to Aspose.Words on the time of InsertHtml method call. Could you please double check if the path to your image file is correct and accessible when querying through web browser’s URL bar? Could you please provide a little more information about the Aspose.Words’ version number for which there were no problems on your side previously. Aspose.Words Html engine mimics the behavior of Microsoft Word so please try converting this Html document to Word format using Microsoft Word and see how it goes?

Best regards,

Hi Awais,

The earlier version of aspose for which the image displays correctly is Aspose.Words 13.8.0. Keeping the code same and replacing the old jar with the new one is creating this issue. Since it is working for older version, I don’t think that there may be any issue accessing the image. This might be issue due to some fixes in recent release. Can you check from your side if its(inserthtml with html having images) working?

Thanks,
Gaurang

Could you please double check if the path to your image
file is correct and accessible when querying through web browser’s URL
bar? Yes Its accessible from browser.

Words Html engine mimics the behavior of Microsoft Word so
please try converting this Html document to Word format using Microsoft Word and see how it goes? Yes the image is visible when i open the html using Microsoft Word

Hi Gaurang,

Thanks for the additional information. I am afraid, we are unable to replicate this issue on our end. Please attach the sample image file (0903c02a803994bf.png) you're getting this problem with. Also, please share the details of the development environment (e.g. OS, JDK versions) of the machine you're getting this problem on.

We successfully tested the scenario by running the following code on our end over Windows 7 environment.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertHtml("Title<ul style=\"list-style-type: disc\">
  • <span style=\"font-size: 10pt\"><span style=\"font-family: amplitude-light\">Please enter content here

  • <img alt=\"\" src=\"file:///C:/Temp/Aspose.Words.png\" style=\"height: 37px; width: 41px\" />"); doc.save("C:\\temp\\out-java.docx");
    Best regards,

    Hi Awais,

    We have tested this standalone code in windows and it is working but the same standalone code on Linux OS is not working. This was working with the older version (Aspose.Words 13.8.0) on Linux OS.The following is the code we have used. Also find the attached image that we have used. We have attached the word file that was created. There is a cross sign in place of the image.

    Document doc = new Document();
    DocumentBuilder builder1 = new DocumentBuilder(doc);
    builder1.insertHtml("

    1. <span style=“font-size:10pt”><span style=“font-family:amplitude-light”>Please enter content here
    2. <span style=“font-size:10pt”><span style=“font-family:amplitude-light”><img alt="" src=“file:///tmp/documentum/NestedBulletWordFiles/0903c02a8036cb1f.png” style=“height:37px; width:41px”/>
    ");
    doc.save("/tmp/documentum/NestedBulletWordFiles/testsample.docx");

    Thanks,
    Gaurang.
    Hi Gaurang,

    Thanks for the additional information. For the sake of correction, we have logged this problem in our issue tracking system as WORDSJAVA-840. Our development team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.

    Best regards,

    The issues you have found earlier (filed as WORDSJAVA-840) have been fixed in this .NET update and this Java update.


    This message was posted using Notification2Forum from Downloads module by aspose.notifier.