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/awt/geom/Point2D.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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. * * This code was originally part of the Apache Harmony project. * The Apache Harmony project has been discontinued. * That's why we imported the code into iText. */ /** * @author Denis M. Kishenko */ package com.itextpdf.awt.geom; import com.itextpdf.awt.geom.misc.HashCode; public abstract class Point2D implements Cloneable { public static class Float extends Point2D { public float x; public float y; public Float() { } public Float(float x, float y) { this.x = x; this.y = y; } @Override public double getX() { return x; } @Override public double getY() { return y; } public void setLocation(float x, float y) { this.x = x; this.y = y; } @Override public void setLocation(double x, double y) { this.x = (float)x; this.y = (float)y; } @Override public String toString() { return getClass().getName() + "[x=" + x + ",y=" + y + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } } public static class Double extends Point2D { public double x; public double y; public Double() { } public Double(double x, double y) { this.x = x; this.y = y; } @Override public double getX() { return x; } @Override public double getY() { return y; } @Override public void setLocation(double x, double y) { this.x = x; this.y = y; } @Override public String toString() { return getClass().getName() + "[x=" + x + ",y=" + y + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } } protected Point2D() { } public abstract double getX(); public abstract double getY(); public abstract void setLocation(double x, double y); public void setLocation(Point2D p) { setLocation(p.getX(), p.getY()); } public static double distanceSq(double x1, double y1, double x2, double y2) { x2 -= x1; y2 -= y1; return x2 * x2 + y2 * y2; } public double distanceSq(double px, double py) { return Point2D.distanceSq(getX(), getY(), px, py); } public double distanceSq(Point2D p) { return Point2D.distanceSq(getX(), getY(), p.getX(), p.getY()); } public static double distance(double x1, double y1, double x2, double y2) { return Math.sqrt(distanceSq(x1, y1, x2, y2)); } public double distance(double px, double py) { return Math.sqrt(distanceSq(px, py)); } public double distance(Point2D p) { return Math.sqrt(distanceSq(p)); } @Override public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); } } @Override public int hashCode() { HashCode hash = new HashCode(); hash.append(getX()); hash.append(getY()); return hash.hashCode(); } @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof Point2D) { Point2D p = (Point2D) obj; return getX() == p.getX() && getY() == p.getY(); } return false; } }
⏎ com/itextpdf/awt/geom/Point2D.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, 110446👍, 0💬
Popular Posts:
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
What Is jms.jar? I heard it's related to JMS (Java Message Service) 1.1? The if you have an jms.jar ...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
Where to find answers to frequently asked questions on Downloading and Installing Connector/J - JDBC...
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...