Hi Team,
Recent one month we got a Aspose your file format API image by default while convert the base64 data to Aspose.Words document.
Reference Image :
Base64-to-JPG-PNG.png (53.2 KB)
obj.getBase64Content() having 3 images base64 data.
Document document = new Document(obj.getBase64Content()));
NodeCollection shapes1 = document.getChildNodes(NodeType.SHAPE, true);
for (Shape image : (Iterable<Shape>) shapes1) {
}
We got 4 images while looping, the 4th image is Aspose your file format API. after conversion by default added below base64 data
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+gAAAF etc…
Please let me know if any API changes or we need to add anything for ignore this extra image.
We have checked old version aspose.words too but not working. We have paid license with validity date up to August 2022. Please help us ASAP.
Aspose Words version
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>22.3</version>
<type>pom</type>
</dependency>
Thanks,
Krishna.S
@krishnass Most likely you are using Aspose.Words in evaluation mode. In this case Aspose.Words injects an evaluation watermark into the document.
https://docs.aspose.com/words/net/licensing/
If you would like to test Aspose.Words without evaluation version limitations, you can request a temporary 30-days license.
Hi @alexey.noskov ,
We already have a Aspose.Total paid license valid up to August 2022. Anyhow we are still getting Aspose watermark in the document.
Since we already have the license. Can you please clarify Is it necessary to purchase aspose.words separately?
Thanks,
Krishna.S
@krishnass Please make sure you have applied license as described here.
If the problem still persist please check the following points:
- Make sure your call to
SetLicense
gets executed. Step through in the debugger.
- Make sure your code does not catch an exception thrown by Aspose.Words licensing code. For example, Aspose.Words will throw if it cannot find the license.
- Make sure the input documents do not already have the evaluation watermark. Aspose.Words does not delete existing evaluation messages and watermarks.
- Make sure
SetLicense
is executed before you instantiate any Document
object.
Hi @alexey.noskov
We have added the license to every section - Now its working fine. Thanks!
1 Like