SVG is not supproted in 20.7 Java libaray

Hi ALl,

I just saw the SVG removed from com.aspose.barcode.BarCodeImageFormat. it MEANS to us the svg is not supported any more.

Would you please confirm this for me? or I look at the wrong lib?

Thanks

@wtgh524601,
You may visit this link where supported formats are available. Note that SVG format is available for saving only whereas loading a SVG file is not supported.

Here is a sample code for your reference:

BarcodeGenerator Generator = new BarcodeGenerator(EncodeTypes.GS_1_CODE_128, "(420)90221(92)0569013951581555550");
Generator.save("output.svg", BarCodeImageFormat.SVG);//SUPPORTED
 
//BarCodeReader reader = new BarCodeReader("output.svg", DecodeType.GS_1_CODE_128); // NOT SUPPORTED

Can you post your import part? I am having the below

import com.aspose.barcode.generation.BarcodeGenerator;
import com.aspose.barcode.BarCodeImageFormat;

it only support // Field descriptor #67 Lcom/aspose/barcode/BarCodeImageFormat;
public static final enum com.aspose.barcode.BarCodeImageFormat BMP;

// Field descriptor #67 Lcom/aspose/barcode/BarCodeImageFormat;
public static final enum com.aspose.barcode.BarCodeImageFormat GIF;

// Field descriptor #67 Lcom/aspose/barcode/BarCodeImageFormat;
public static final enum com.aspose.barcode.BarCodeImageFormat JPEG;

// Field descriptor #67 Lcom/aspose/barcode/BarCodeImageFormat;
public static final enum com.aspose.barcode.BarCodeImageFormat PNG;

// Field descriptor #67 Lcom/aspose/barcode/BarCodeImageFormat;
public static final enum com.aspose.barcode.BarCodeImageFormat WEBP;

POM is

	<dependency>
		<groupId>com.aspose</groupId>
		<artifactId>aspose-barcode</artifactId>
		<version>20.7</version>
	</dependency>

@wtgh524601,
Here is my import section:

import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

import javax.imageio.ImageIO;

import com.aspose.barcode.BarCodeImageFormat;
import com.aspose.barcode.BuildVersionInfo;
import com.aspose.barcode.ECIEncodings;
import com.aspose.barcode.EncodeTypes;
import com.aspose.barcode.QREncodeMode;
import com.aspose.barcode.QREncodeType;
import com.aspose.barcode.QRErrorLevel;
import com.aspose.barcode.barcoderecognition.BarCodeReader;
import com.aspose.barcode.barcoderecognition.BarCodeResult;
import com.aspose.barcode.barcoderecognition.BarcodeSvmDetectorSettings;
import com.aspose.barcode.barcoderecognition.DecodeType;
import com.aspose.barcode.barcoderecognition.QualitySettings;
import com.aspose.barcode.generation.BarcodeGenerator;

Your POM file entry seems good for Aspose.BarCode.