PNG JPG BMP TIFF SVG
Aspose.BarCode  for Java
ISBN

Java ile ISBN Etiketleri oluşturun

Sunucu tarafı Aspose.BarCode for Java API’sini kullanarak Java içinde ISBN barkod oluşturun.

How to Generate ISBN barkod Using Java

ISBN barkod oluşturmak için Java için zengin, güçlü ve kullanımı kolay bir barkod API’si olan Aspose.BarCode for Java API’sini edinin. tabanlı platformlar. En son sürümü doğrudan Maven’den indirin ve ardından Maven’inize kurun- pom.xml dosyasına aşağıdaki yapılandırmaları ekleyerek proje tabanlı:

Repository

<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://repository.aspose.com/repo/</url>
</repository>

Dependency

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-barcode</artifactId>
    <version>version of aspose-barcode API</version>
    <classifier>jdk17</classifier>
</dependency>

Java Dilinde ISBN barkod Oluşturma Adımları

Aspose.BarCode, geliştiricilerin birkaç satır kodla ISBN barkod görüntüleri oluşturmasını kolaylaştırır.

  • BarCodeGenerator sınıfından yeni bir nesne oluşturun
  • EncodeTypes parametresi olarak ISBN barkod ve diğer gerekli barkod türlerini tanımlayın
  • setCodeText yöntemini kullanarak giriş metnini belirtin
  • Oluşturulan barkod görüntüsünü kaydetmek için BarCodeGenerator.save yöntemini kullanın

sistem gereksinimleri

Barkod API’lerinin tüm büyük platformlar ve işletim sistemleri tarafından desteklendiğini varsayalım. Aşağıdaki kod örneğini çalıştırmadan önce, lütfen sisteminizde aşağıdaki önkoşulların etkinleştirildiğinden emin olun.

  • Microsoft Windows, Linux veya JSP/JSF ve masaüstü uygulamaları için Java Runtime Environment ile uyumlu herhangi bir işletim sistemi
  • JRE 1.6 veya üstü gibi Java geliştirme ortamı
  • Java Geliştirme sürümü JSE2 7.0 veya üstü

Code to be executed - Java


// Create an instane of the BarcodeGenerator class
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.ISBN);

// Specify the code text
generator.setCodeText("");

// Specify the X-dimension 
// the smallest width of the unit of BarCode bars or spaces
generator.getParameters().getBarcode().getXDimension().setMillimeters(2);

// Set codetext position
generator.getParameters().getBarcode().getCodeTextParameters().setLocation(CodeLocation.Below);

// Generate image
generator.generateBarCodeImage();
Generation result