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.