Differences in the conversion to PDF with Aspose

Best regard,

Currently in production environment we are having many problems because we have templates that lawyers want to be identical in the conversion of Word to PDF.

They also have a criterion and that is that the same officials save the file from Microsoft Word and see how the conversion is accurate and complain and are complaining that the conversions we are doing with the Aspose library are not true or identical copies of the document they view from Word and for legal documents it is very important that the conversion is accurate.

We are using the latest version of Aspose released for the Java platform.

Two cases have been identified that are shown in the file called: Explanation.docx

The source document is appended in Word and the two generated files, one with the conversion of the same Microsoft Word from the “save as” menu and the other document generated with the Aspose.Words for Java library.

Source code used:

import com.aspose.words.Document;
import static com.aspose.words.SaveFormat.PDF;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.logging.Level;
import java.util.logging.Logger;

public class PruebaAspose {

    public static void main(String[] args) {

        Document doc;
        
        try 
        {
            com.aspose.words.License license = new com.aspose.words.License();
            license.setLicense("Aspose.Words.lic");
            doc = new Document(new FileInputStream(new File("entrada.docx")));
            FileOutputStream fileOutputStream = new FileOutputStream(new File("salida.pdf"));
            doc.save(fileOutputStream, PDF);
            fileOutputStream.close();

        } catch (FileNotFoundException ex) {
            Logger.getLogger(PruebaAspose.class.getName()).log(Level.SEVERE, null, ex);
        }
        catch (Exception ex) 
        {
                Logger.getLogger(PruebaAspose.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
} 

Thank you very much and many successes.

Sorry, I forgot to upload the files.

Next I share the archives in ZIP file
Files.zip (1.7 MB)

  1. Document_converted_aspose.pdf
  2. Document_converted_save_as_word.pdf
  3. Document_source_word.docx
  4. Explanation.pdf

@jduenas.ugpp.gov.co,

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

Could you please share the Java version that you are using at your end? Thanks for your cooperation.

Thank you very much for the response, we are attentive to the solution, the version we are using is

Aspose-words-17.9-jdk16.jar

@jduenas.ugpp.gov.co,

Please share the JDK version that you are using at your end. Thanks for your cooperation.

Thank you very much for the help,

It’s the Java JDK: jdk1.7.0_75

I look forward to hearing your comments.

@jduenas.ugpp.gov.co,
The issues you have found earlier (filed as WORDSNET-16249) have been fixed in this Aspose.Words for .NET 18.2 update and this Aspose.Words for Java 18.2 update.
Please also check the following articles: