Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
iText 5 itextpdf.jar Source Code
itextpdf.jar is a component in iText 5 Java library to provide core functionalities. iText Java library allows you to generate and manage PDF documents.
The Source Code files are provided at iText GitHub site.
You can compile it to generate your JAR file, using pom.xml as the build configuration file.
The source code of itextpdf-5.5.14.jar is provided below:
✍: FYIcenter.com
⏎ com/itextpdf/text/pdf/qrcode/ByteMatrix.java
/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.itextpdf.text.pdf.qrcode; /** * A class which wraps a 2D array of bytes. The default usage is signed. If you want to use it as a * unsigned container, it's up to you to do byteValue & 0xff at each location. * * JAVAPORT: The original code was a 2D array of ints, but since it only ever gets assigned * -1, 0, and 1, I'm going to use less memory and go with bytes. * * @author dswitkin@google.com (Daniel Switkin) * @since 5.0.2 */ public final class ByteMatrix { private final byte[][] bytes; private final int width; private final int height; public ByteMatrix(int width, int height) { bytes = new byte[height][width]; this.width = width; this.height = height; } public int getHeight() { return height; } public int getWidth() { return width; } public byte get(int x, int y) { return bytes[y][x]; } public byte[][] getArray() { return bytes; } public void set(int x, int y, byte value) { bytes[y][x] = value; } public void set(int x, int y, int value) { bytes[y][x] = (byte) value; } public void clear(byte value) { for (int y = 0; y < height; ++y) { for (int x = 0; x < width; ++x) { bytes[y][x] = value; } } } public String toString() { StringBuffer result = new StringBuffer(2 * width * height + 2); for (int y = 0; y < height; ++y) { for (int x = 0; x < width; ++x) { switch (bytes[y][x]) { case 0: result.append(" 0"); break; case 1: result.append(" 1"); break; default: result.append(" "); break; } } result.append('\n'); } return result.toString(); } }
⏎ com/itextpdf/text/pdf/qrcode/ByteMatrix.java
Or download all of them as a single archive file:
File name: itextpdf-5.5.14-fyi.zip File size: 2163839 bytes Release date: 2009-10-09 Download
⇒ iText-2.1.6.jar - iText, a JAVA-PDF library
⇐ iText layout.jar Source Code
2021-07-03, 111432👍, 0💬
Popular Posts:
JRE 5 sunjce_provider.jar is the JAR file for JRE 5 Sun JCE Provider, which provides implementations...
What Is commons-io-2.11.jar? commons-io-2.11.jar is the JAR file for Commons IO 2.5, which is a libr...
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
What Is jaxb-impl-2.1.12.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Jav...
ZooKeeper is a centralized service for maintaining configuration information, naming, providing dist...