Skip to content

Commit 68872aa

Browse files
committed
Merge pull request #10 from fahadadeel/master
Merged Aspose.BarCode Java for Jython Examples
2 parents 5fb1796 + 99828e2 commit 68872aa

110 files changed

Lines changed: 1403 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Aspose.BarCode Java for Jython
2+
3+
Aspose.BarCode Java for Jython is a project that demonstrates / provides the Aspose.BarCode for Java API usage examples in Jython.
4+
5+
## Download
6+
7+
* To download Aspose.BarCode for Java API to be used with these examples, Please navigate to [Aspose.BarCode for Java](http://www.aspose.com/downloads/barcode-family/java)
8+
* Place downloaded jar file into "lib" directory.
9+
10+
## Documentation
11+
12+
For most complete documentation of the project, check [Aspose.BarCode Java For Jython confluence wiki](http://www.aspose.com/docs/display/barcodejava/Aspose.Barcode+Java+For+Jython).
13+
14+
## Download Latest Versions?
15+
16+
* [Latest Releases on Codeplex](http://asposebarcodejavajython.codeplex.com/releasesce)
17+
18+
## Clone Plugin SourceCodes?
19+
20+
This project is also hosted and maintained at CodePlex. To clone navigate to:
21+
22+
* [Aspose.BarCode Java for Jython on CodePlex - click here](https://asposebarcodejavajython.codeplex.com/SourceControl/latest)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Metadata-Version: 1.1
2+
Name: aspose-barcode-java-for-jython
3+
Version: 1.0
4+
Summary: Aspose.BarCode Java for Jython is a project that demonstrates / provides the Aspose.BarCode for Java API usage examples in Jython.
5+
Home-page: http://www.aspose.com/docs/display/barcodejava/Aspose.Barcode+Java+For+Jython
6+
Author: Fahad Adeel
7+
Author-email: barcode@aspose.com
8+
License: UNKNOWN
9+
Description: UNKNOWN
10+
Platform: UNKNOWN
11+
Classifier: Programming Language :: Python
12+
Classifier: Programming Language :: Python :: 2
13+
Classifier: License :: OSI Approved :: MIT License
14+
Classifier: Operating System :: OS Independent
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
setup.py
2+
aspose_barcode_java_for_jython.egg-info/PKG-INFO
3+
aspose_barcode_java_for_jython.egg-info/SOURCES.txt
4+
aspose_barcode_java_for_jython.egg-info/dependency_links.txt
5+
aspose_barcode_java_for_jython.egg-info/top_level.txt
6+
asposebarcode/__init__.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
asposebarcode
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# To change this license header, choose License Headers in Project Properties.
2+
# To change this template file, choose Tools | Templates
3+
# and open the template in the editor.
4+
5+
__author__ = "nhp09"
6+
__date__ = "$Apr 6, 2016 10:18:32 AM$"
7+
8+
if __name__ == "__main__":
9+
print "Hello World"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
from asposebarcode import Settings
2+
from com.aspose.barcode import BarCodeBuilder
3+
from com.aspose.barcode import Symbology
4+
5+
class Creating2DBarcode:
6+
7+
def __init__(self):
8+
9+
dataDir = Settings.dataDir + 'WorkingWith2DBarcodes/Basic2DBarcodeFeatures/Creating2DBarcode'
10+
11+
# Instantiate barcode object
12+
builder = BarCodeBuilder()
13+
14+
symbology= Symbology
15+
builder.setSymbologyType(symbology.Pdf417)
16+
17+
# Width of each module
18+
builder.setxDimension(0.6)
19+
20+
# Height of each module
21+
builder.setyDimension(1.2)
22+
builder.setCodeText("this is some test code text. \n Second line \n third line.")
23+
24+
# Save the image to your system and set its image format to Jpeg
25+
builder.save(dataDir + "Creating2DBarcode.jpg")
26+
27+
# Display Status
28+
print "Created 2D Barcode Successfully."
29+
30+
if __name__ == '__main__':
31+
Creating2DBarcode()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from asposebarcode import Settings
2+
from com.aspose.barcode import BarCodeBuilder
3+
from com.aspose.barcode import Symbology
4+
5+
class CreatingAztecBarcode:
6+
7+
def __init__(self):
8+
9+
dataDir = Settings.dataDir + 'WorkingWith2DBarcodes/Basic2DBarcodeFeatures/CreatingAztecBarcode/'
10+
11+
# Instantiate barcode object
12+
builder = BarCodeBuilder()
13+
14+
symbology= Symbology
15+
builder.setSymbologyType(symbology.Aztec)
16+
17+
builder.setCodeText("1234567890")
18+
19+
# Save the image to your system and set its image format to Jpeg
20+
builder.save(dataDir + "CreatingAztecBarcode.jpg")
21+
22+
# Display Status
23+
print "Created Aztec Barcode Successfully."
24+
25+
if __name__ == '__main__':
26+
CreatingAztecBarcode()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from asposebarcode import Settings
2+
from com.aspose.barcode import BarCodeBuilder
3+
from com.aspose.barcode import Symbology
4+
5+
class CreatingDataMatrixBarcode:
6+
7+
def __init__(self):
8+
dataDir = Settings.dataDir + 'WorkingWith2DBarcodes/Basic2DBarcodeFeatures/CreatingDataMatrixBarcode/'
9+
10+
# Instantiate barcode object
11+
builder = BarCodeBuilder()
12+
13+
symbology= Symbology
14+
builder.setSymbologyType(symbology.DataMatrix)
15+
16+
builder.setCodeText("1234567890")
17+
18+
# Save the image to your system and set its image format to Jpeg
19+
builder.save(dataDir + "CreatingDataMatrixBarcode.jpg")
20+
21+
# Display Status
22+
print "Created DataMatrix Barcode Successfully."
23+
24+
25+
if __name__ == '__main__':
26+
CreatingDataMatrixBarcode()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from asposebarcode import Settings
2+
from com.aspose.barcode import BarCodeBuilder
3+
from com.aspose.barcode import Symbology
4+
5+
class CreatingPdf417Barcode:
6+
7+
def __init__(self):
8+
9+
dataDir = Settings.dataDir + 'WorkingWith2DBarcodes/Basic2DBarcodeFeatures/CreatingPdf417Barcode/'
10+
11+
# Instantiate barcode object
12+
builder = BarCodeBuilder()
13+
14+
symbology= Symbology
15+
builder.setSymbologyType(symbology.Pdf417)
16+
17+
builder.setCodeText("12345")
18+
19+
# Save the image to your system and set its image format to Jpeg
20+
builder.save(dataDir + "CreatingPdf417Barcode.jpg")
21+
22+
# Display Status
23+
print "Created Pdf417 Barcode Successfully."
24+
25+
if __name__ == '__main__':
26+
CreatingPdf417Barcode()

0 commit comments

Comments
 (0)