We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Bug when saving to PDF after replacement operation

Hi,

the attached “TestDocument.docx” shows the base document where I want to replace the highlighted {REPLACE_ME} inside a textfield with another value using the following code:

Document document1 = new Document("…\TestDocument.docx");

Pattern p = Pattern.compile("\{REPLACE_ME\}");

document1.getRange().replace(p, “NEW_VALUE”);

document1.save("…\Result.pdf", SaveFormat.PDF);

If the result is saved into a PDF file, the text below the textfield overlaps the text inside the textfield (see, “Result.pdf”).
Whereas, if the result is saved into a DOCX file, everything looks fine (see, “Result.docx”).
Thank you so much in advance.

Best regards

Hi Dolten,

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 WORDSNET-12018. 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.

How are the chances that this bug will be fixed with the July release of Aspose Words?

Hi Dolten,

Thanks for your inquiry. I would like to
share with you that issues
are addressed and resolved based on first come first serve
basis. Currently, your issue is pending for analysis and is in the
queue. I am afraid, we can’t provide you any reliable estimate at the
moment. Once your issue is analyzed, we will then be able to provide you
an estimate.

Thanks for your patience and understanding.

Hi Tahir,

How are the chances that this bug will be fixed with the August release of Aspose Words?

Is there any progress in the analysis or fixing of this issue?

Best regards
Scherge

Hi Scherge,

Thanks for your inquiry. I
have verified the status of this issue from our issue tracking system
and like to share with you that this issue has been planned for
development. Hopefully, the fix of this issue will be available in
Aspose.Words’ August 2015 release i.e. 15.8.0. Please note that this
estimate is not final at the moment. We will be sure to inform you via
this forum thread as soon as this issue is resolved.

We appreciate your patience.

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


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