Hi,
I tried to save as PDF documents .docx containing graphs with ASPOSE.WORDS 14.5.0 and graphs are not correct in generated pdf.
In attacment, two exanmple of docx with graph.
Thx
Eric Hamel
devlopment ingeneer
SopraSteria
Hi,
I tried to save as PDF documents .docx containing graphs with ASPOSE.WORDS 14.5.0 and graphs are not correct in generated pdf.
In attacment, two exanmple of docx with graph.
Thx
Eric Hamel
devlopment ingeneer
SopraSteria
Hi SopraSteria,
Thanks for your inquiry. I have tested the scenario and have managed to reproduce the following issues at my side. See the attached images for detail.
WORDSJAVA-1006 : Contents of DrawingML is missing after conversion from Docx to Pdf
WORDSJAVA-1007 : Color of DrawingML is changed after conversion from Docx to Pdf
For the sake of correction, I have logged these
problems in our issue tracking system. I
have linked this forum thread to the same issues and you will be
notified via this forum thread once these issues are resolved.
We apologize for your inconvenience.
The issues you have found earlier (filed as WORDSJAVA-1007) have been fixed in this .NET update and this Java update.
Hi SopraSteria,
Thanks
for your patience. I like to share with you that the issue WORDSJAVA-1006 (Contents of DrawingML is missing after conversion from Docx to Pdf) has been resolved in latest version of Aspose.Words for Java 15.7.0. Please use Aspose.Words for Java 15.7.0. I have attached the output Pdf with this post for your kind reference.
Please let us know if you have any more queries.
Hi Tahir,
Thank you for this new version. We’ve converted the original docx with Aspose.Words 15.8.0 and the result is indeed more satisfactory than before.
However there are always slight differences between the original image and the pdf result:
- the aliasing of characters
- the border around
- readability of legends
We cannot read the pdf when we zoom (200% for example), do you think it is possible to have a better resolution of the image in the pdf?
Karine
Hi Karine,
Thanks for your inquiry. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSJAVA-1161. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
The issues you have found earlier (filed as WORDSJAVA-1006) have been fixed in this .NET update and this Java update.
Thx, i’m going to test this update and come back to you.
Regards,
E. Hamel
Hi Tahir,
sorry for the delay of my answer.
I have loaded the Aspose Words 15.11.0 realease and make tests with it.
The result is perfect with most of graphs … except the graph in the docx file attached.
I attached too, the pdf result file with Aspose and the pdf result file Words saveAs, for you to check the difference.
Could you do something more ?
Thx
Eric Hamel
Hi Eric,
Thanks for your inquiry. The issue WORDSJAVA-1006 was fixed in Aspose.Words v15.11.0. This issue is related to missing contents in output pdf. However, the issue (WORDSJAVA-1161) reported in this post has not fixed yet. You will be notified via this forum thread once this issue is resolved.
PdfSaveOptions optPdf = new PdfSaveOptions();
optPdf.getMetafileRenderingOptions().setRenderingMode(MetafileRenderingMode.VECTOR);
optPdf.getMetafileRenderingOptions().setEmfPlusDualRenderingMode(EmfPlusDualRenderingMode.EMF_PLUS);
// The following 2 lines are optional, just to minimize the output file size
optPdf.setImageCompression(PdfImageCompression.JPEG);
optPdf.setJpegQuality(60);
Document doc = new Document(MyDir + "DocInit.docx");
doc.save(MyDir + "Out v16.10.0.pdf", optPdf);