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

Free Support Forum - aspose.com

Wrapping of Text during Search and Replace

Hi


Is this issue solved ? I am currently evaluating aspose pdf for java and facing similar issue. If the replace text is big, then the word wrap doesn’t happen. I am using the facade api’s for this purpose. The sample code looks like this.

PdfContentEditor editor = new PdfContentEditor();
editor.bindPdf(“orig.pdf”);
editor.getReplaceTextStrategy().setReplaceScope(ReplaceTextStrategy.Scope.REPLACE_ALL);
editor.getTextReplaceOptions();
boolean replaced = editor.replaceText(“small”,“big big big replacement text”);
FileOutputStream pdfOutpustStream = new FileOutputStream(“modified.pdf”);
editor.save(pdfOutpustStream);

Is there any option to specify wrap ?

Thanks
Suren

Hi Suren,


Thanks for your inquiry. I am afraid the subjected issue of text replacement is not resolved. The referred issue is logged against .NET version, so we have logged another issue against Java version, PDFNEWJAVA-34411, and also linked the issue to this thread. We will notify you as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,