Skip to content

Commit 1e8d544

Browse files
Fix javadocs in order in order to make them portable to C# code documentation
Also remove </li> and </dt>, </dd> from javadocs in kernel module. In javadocs it's enough to specify only openning tags and we aim at less cluttered documentation. DEVSIX-3096
1 parent a4e703f commit 1e8d544

39 files changed

+544
-546
lines changed

kernel/src/main/java/com/itextpdf/kernel/font/PdfFont.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ public boolean isSubset() {
376376

377377
/**
378378
* Indicates if all the glyphs and widths for that particular
379-
* encoding should be included in the document. When set to <CODE>true</CODE>
380-
* only the glyphs used will be included in the font. When set to <CODE>false</CODE
379+
* encoding should be included in the document. When set to {@code true}
380+
* only the glyphs used will be included in the font. When set to {@code false}
381381
* the full font will be included and all subset ranges will be removed.
382382
*
383383
* @param subset new value of property subset

kernel/src/main/java/com/itextpdf/kernel/geom/AffineTransform.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,14 @@ public AffineTransform(double[] matrix) {
186186
* translation vector is (m02, m12). Original basis vectors are (1, 0) and (0, 1).
187187
* Type transformations classification:
188188
* <ul>
189-
* <li>{@link AffineTransform#TYPE_IDENTITY} - new basis equals original one and zero translation</li>
190-
* <li>{@link AffineTransform#TYPE_TRANSLATION} - translation vector isn't zero</li>
191-
* <li>{@link AffineTransform#TYPE_UNIFORM_SCALE} - vectors length of new basis equals</li>
192-
* <li>{@link AffineTransform#TYPE_GENERAL_SCALE} - vectors length of new basis doesn't equal</li>
193-
* <li>{@link AffineTransform#TYPE_FLIP} - new basis vector orientation differ from original one</li>
194-
* <li>{@link AffineTransform#TYPE_QUADRANT_ROTATION} - new basis is rotated by 90, 180, 270, or 360 degrees</li>
195-
* <li>{@link AffineTransform#TYPE_GENERAL_ROTATION} - new basis is rotated by arbitrary angle</li>
196-
* <li>{@link AffineTransform#TYPE_GENERAL_TRANSFORM} - transformation can't be inversed</li>
189+
* <li>{@link AffineTransform#TYPE_IDENTITY} - new basis equals original one and zero translation
190+
* <li>{@link AffineTransform#TYPE_TRANSLATION} - translation vector isn't zero
191+
* <li>{@link AffineTransform#TYPE_UNIFORM_SCALE} - vectors length of new basis equals
192+
* <li>{@link AffineTransform#TYPE_GENERAL_SCALE} - vectors length of new basis doesn't equal
193+
* <li>{@link AffineTransform#TYPE_FLIP} - new basis vector orientation differ from original one
194+
* <li>{@link AffineTransform#TYPE_QUADRANT_ROTATION} - new basis is rotated by 90, 180, 270, or 360 degrees
195+
* <li>{@link AffineTransform#TYPE_GENERAL_ROTATION} - new basis is rotated by arbitrary angle
196+
* <li>{@link AffineTransform#TYPE_GENERAL_TRANSFORM} - transformation can't be inversed
197197
* </ul>
198198
*
199199
* @return the type of this AffineTransform
@@ -384,7 +384,7 @@ public void setToRotation(double angle) {
384384
/**
385385
* Set this affine transformation to represent a rotation over the passed angle,
386386
* using the passed point as the center of rotation
387-
*
387+
*
388388
* @param angle angle to rotate over in radians
389389
* @param px x-coordinate of center of rotation
390390
* @param py y-coordinate of center of rotation

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfDate.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ This file is part of the iText (R) project.
4949

5050
/**
5151
* {@code PdfDate} is the PDF date object.
52-
* <P>
52+
* <p>
5353
* PDF defines a standard date format. The PDF date format closely follows the format
5454
* defined by the international standard ASN.1 (Abstract Syntax Notation One, defined
5555
* in CCITT X.208 or ISO/IEC 8824). A date is a {@code PdfString} of the form:
56-
* <P><BLOCKQUOTE>
57-
* (D:YYYYMMDDHHmmSSOHH'mm')
58-
* </BLOCKQUOTE><P>
56+
* <p>
57+
* {@code (D:YYYYMMDDHHmmSSOHH'mm') }
58+
* <p>
5959
* See also ISO-320001 7.9.4, "Dates".
6060
*
6161
* @see PdfString

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfObject.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,12 +534,12 @@ protected void copyContent(PdfObject from, PdfDocument document) {
534534
/**
535535
* Processes two cases of object copying:
536536
* <ol>
537-
* <li>copying to the other document</li>
538-
* <li>cloning inside of the current document</li>
537+
* <li>copying to the other document
538+
* <li>cloning inside of the current document
539539
* </ol>
540540
* <p>
541-
* This two cases are distinguished by the state of <code>document</code> parameter:
542-
* the second case is processed if <code>document</code> is <code>null</code>.
541+
* This two cases are distinguished by the state of {@code document} parameter:
542+
* the second case is processed if {@code document} is {@code null}.
543543
*
544544
* @param documentTo if not null: document to copy object to; otherwise indicates that object is to be cloned.
545545
* @param allowDuplicating indicates if to allow copy objects which already have been copied.

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfString.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ This file is part of the iText (R) project.
6262
* way to represent characters outside the printable ASCII character set.<br>
6363
* This object is described in the 'Portable Document Format Reference Manual
6464
* version 1.7' section 3.2.3 (page 53-56).
65-
* <p>
66-
* {@link PdfObject}
65+
* @see PdfObject
6766
*/
6867
public class PdfString extends PdfPrimitiveObject {
6968

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfTextArray.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,24 @@ This file is part of the iText (R) project.
4444
package com.itextpdf.kernel.pdf;
4545

4646
import com.itextpdf.kernel.font.PdfFont;
47+
import com.itextpdf.kernel.pdf.canvas.PdfCanvas;
4748
import java.util.Collection;
4849

4950
/**
50-
* <CODE>PdfTextArray</CODE> defines an array with displacements and <CODE>PdfString</CODE>-objects.
51+
* {@link PdfTextArray} defines an array with displacements and {@link PdfString}-objects.
5152
* <P>
52-
* A <CODE>PdfTextArray</CODE> is used with the operator <VAR>TJ</VAR> in <CODE>PdfCanvas</CODE>.
53-
* The first object in this array has to be a <CODE>PdfString</CODE>;
53+
* A {@link PdfTextArray} is used with the operator TJ in {@link PdfCanvas}.
54+
* The first object in this array has to be a {@link PdfString};
5455
* see reference manual version 1.3 section 8.7.5, pages 346-347.
5556
* OR
5657
* see reference manual version 1.6 section 5.3.2, pages 378-379.
5758
* To emit a more efficient array, we consolidate repeated numbers or strings into single array entries.
58-
* "add( 50 ); add( -50 );" will REMOVE the combined zero from the array.
59+
* For example: "add( 50 ); add( -50 );" will REMOVE the combined zero from the array.
5960
*/
6061
public class PdfTextArray extends PdfArray {
6162

6263
private static final long serialVersionUID = 2555632135770071680L;
63-
64+
6465
private float lastNumber = Float.NaN;
6566
private StringBuilder lastString;
6667

kernel/src/main/java/com/itextpdf/kernel/pdf/WriterProperties.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,14 @@ public WriterProperties setFullCompressionMode(boolean fullCompressionMode) {
157157
* {@link EncryptionConstants#ALLOW_FILL_IN}, {@link EncryptionConstants#ALLOW_SCREENREADERS},
158158
* {@link EncryptionConstants#ALLOW_ASSEMBLY} and {@link EncryptionConstants#ALLOW_DEGRADED_PRINTING}.
159159
* The permissions can be combined by ORing them.
160-
* <p>
160+
*
161161
* @param userPassword the user password. Can be null or empty
162162
* @param ownerPassword the owner password. Can be null or empty
163163
* @param permissions the user permissions
164164
* @param encryptionAlgorithm the type of encryption. It can be one of {@link EncryptionConstants#STANDARD_ENCRYPTION_40},
165-
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128}, {@link EncryptionConstants#ENCRYPTION_AES_128}
166-
* or {@link EncryptionConstants#ENCRYPTION_AES_256}.
167-
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA} can be ORed to output the metadata in cleartext
165+
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128}, {@link EncryptionConstants#ENCRYPTION_AES_128}
166+
* or {@link EncryptionConstants#ENCRYPTION_AES_256}.
167+
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA} can be ORed to output the metadata in cleartext
168168
* @return this {@code WriterProperties} instance
169169
*/
170170
public WriterProperties setStandardEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionAlgorithm) {
@@ -181,13 +181,13 @@ public WriterProperties setStandardEncryption(byte[] userPassword, byte[] ownerP
181181
* {@link EncryptionConstants#ALLOW_FILL_IN}, {@link EncryptionConstants#ALLOW_SCREENREADERS},
182182
* {@link EncryptionConstants#ALLOW_ASSEMBLY} and {@link EncryptionConstants#ALLOW_DEGRADED_PRINTING}.
183183
* The permissions can be combined by ORing them.
184-
* <p>
184+
*
185185
* @param certs the public certificates to be used for the encryption
186186
* @param permissions the user permissions for each of the certificates
187187
* @param encryptionAlgorithm the type of encryption. It can be one of {@link EncryptionConstants#STANDARD_ENCRYPTION_40},
188-
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128}, {@link EncryptionConstants#ENCRYPTION_AES_128}
189-
* or {@link EncryptionConstants#ENCRYPTION_AES_256}.
190-
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA} can be ORed to output the metadata in cleartext
188+
* {@link EncryptionConstants#STANDARD_ENCRYPTION_128}, {@link EncryptionConstants#ENCRYPTION_AES_128}
189+
* or {@link EncryptionConstants#ENCRYPTION_AES_256}.
190+
* Optionally {@link EncryptionConstants#DO_NOT_ENCRYPT_METADATA} can be ORed to output the metadata in cleartext
191191
* @return this {@code WriterProperties} instance
192192
*/
193193
public WriterProperties setPublicKeyEncryption(Certificate[] certs, int[] permissions, int encryptionAlgorithm) {

kernel/src/main/java/com/itextpdf/kernel/pdf/annot/BorderStyleUtil.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ private BorderStyleUtil(){
5454
/**
5555
* Setter for the border style. Possible values are
5656
* <ul>
57-
* <li>{@link PdfAnnotation#STYLE_SOLID} - A solid rectangle surrounding the annotation.</li>
58-
* <li>{@link PdfAnnotation#STYLE_DASHED} - A dashed rectangle surrounding the annotation.</li>
59-
* <li>{@link PdfAnnotation#STYLE_BEVELED} - A simulated embossed rectangle that appears to be raised above the surface of the page.</li>
60-
* <li>{@link PdfAnnotation#STYLE_INSET} - A simulated engraved rectangle that appears to be recessed below the surface of the page.</li>
61-
* <li>{@link PdfAnnotation#STYLE_UNDERLINE} - A single line along the bottom of the annotation rectangle.</li>
57+
* <li>{@link PdfAnnotation#STYLE_SOLID} - A solid rectangle surrounding the annotation.
58+
* <li>{@link PdfAnnotation#STYLE_DASHED} - A dashed rectangle surrounding the annotation.
59+
* <li>{@link PdfAnnotation#STYLE_BEVELED} - A simulated embossed rectangle that appears to be raised above the surface of the page.
60+
* <li>{@link PdfAnnotation#STYLE_INSET} - A simulated engraved rectangle that appears to be recessed below the surface of the page.
61+
* <li>{@link PdfAnnotation#STYLE_UNDERLINE} - A single line along the bottom of the annotation rectangle.
6262
* </ul>
6363
* See also ISO-320001, Table 166.
6464
* @param bs original border style dictionary.

kernel/src/main/java/com/itextpdf/kernel/pdf/annot/PdfAnnotation.java

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -510,39 +510,39 @@ public PdfAnnotation setFlags(int flags) {
510510
* <li>{@link PdfAnnotation#INVISIBLE} - If set, do not display the annotation if it does not belong to one of the
511511
* standard annotation types and no annotation handler is available. If clear, display such unknown annotation
512512
* using an appearance stream specified by its appearance dictionary, if any.
513-
* </li>
513+
*
514514
* <li>{@link PdfAnnotation#HIDDEN} - If set, do not display or print the annotation or allow it to interact with
515515
* the user, regardless of its annotation type or whether an annotation handler is available.
516-
* </li>
516+
*
517517
* <li>{@link PdfAnnotation#PRINT} - If set, print the annotation when the page is printed. If clear, never print
518518
* the annotation, regardless of whether it is displayed on the screen.
519-
* </li>
519+
*
520520
* <li>{@link PdfAnnotation#NO_ZOOM} - If set, do not scale the annotation’s appearance to match the magnification of
521521
* the page. The location of the annotation on the page (defined by the upper-left corner of its annotation
522522
* rectangle) shall remain fixed, regardless of the page magnification.}
523-
* </li>
523+
*
524524
* <li>{@link PdfAnnotation#NO_ROTATE} - If set, do not rotate the annotation’s appearance to match the rotation
525525
* of the page. The upper-left corner of the annotation rectangle shall remain in a fixed location on the page,
526526
* regardless of the page rotation.
527-
* </li>
527+
*
528528
* <li>{@link PdfAnnotation#NO_VIEW} - If set, do not display the annotation on the screen or allow it to interact
529529
* with the user. The annotation may be printed (depending on the setting of the Print flag) but should be considered
530530
* hidden for purposes of on-screen display and user interaction.
531-
* </li>
531+
*
532532
* <li>{@link PdfAnnotation#READ_ONLY} - If set, do not allow the annotation to interact with the user. The annotation
533533
* may be displayed or printed (depending on the settings of the NoView and Print flags) but should not respond to mouse
534534
* clicks or change its appearance in response to mouse motions.
535-
* </li>
535+
*
536536
* <li>{@link PdfAnnotation#LOCKED} - If set, do not allow the annotation to be deleted or its properties
537537
* (including position and size) to be modified by the user. However, this flag does not restrict changes to
538538
* the annotation’s contents, such as the value of a form field.
539-
* </li>
539+
*
540540
* <li>{@link PdfAnnotation#TOGGLE_NO_VIEW} - If set, invert the interpretation of the NoView flag for certain events.
541-
* </li>
541+
*
542542
* <li>{@link PdfAnnotation#LOCKED_CONTENTS} - If set, do not allow the contents of the annotation to be modified
543543
* by the user. This flag does not restrict deletion of the annotation or changes to other annotation properties,
544544
* such as position and size.
545-
* </li>
545+
*
546546
* </ul>
547547
*
548548
* @param flag - an integer interpreted as set of one-bit flags which will be enabled for this annotation.
@@ -780,7 +780,6 @@ public PdfAnnotation setAppearanceState(PdfName as) {
780780
}
781781

782782
/**
783-
* <p>
784783
* An array specifying the characteristics of the annotation’s border.
785784
* The array consists of three numbers defining the horizontal corner radius,
786785
* vertical corner radius, and border width, all in default user space units.
@@ -820,16 +819,16 @@ public PdfAnnotation setBorder(PdfArray border) {
820819
/**
821820
* An array of numbers in the range 0.0 to 1.0, representing a colour used for the following purposes:
822821
* <ul>
823-
* <li>The background of the annotation’s icon when closed</li>
824-
* <li>The title bar of the annotation’s pop-up window</li>
825-
* <li>The border of a link annotation</li>
822+
* <li>The background of the annotation’s icon when closed
823+
* <li>The title bar of the annotation’s pop-up window
824+
* <li>The border of a link annotation
826825
* </ul>
827826
* The number of array elements determines the colour space in which the colour shall be defined:
828827
* <ul>
829-
* <li>0 - No colour; transparent</li>
830-
* <li>1 - DeviceGray</li>
831-
* <li>3 - DeviceRGB</li>
832-
* <li>4 - DeviceCMYK</li>
828+
* <li>0 - No colour; transparent
829+
* <li>1 - DeviceGray
830+
* <li>3 - DeviceRGB
831+
* <li>4 - DeviceCMYK
833832
* </ul>
834833
*
835834
* @return An array of numbers in the range 0.0 to 1.0, representing an annotation colour.

kernel/src/main/java/com/itextpdf/kernel/pdf/annot/PdfCircleAnnotation.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ public PdfCircleAnnotation setBorderStyle(PdfDictionary borderStyle) {
9999
/**
100100
* Setter for the annotation's preset border style. Possible values are
101101
* <ul>
102-
* <li>{@link PdfAnnotation#STYLE_SOLID} - A solid rectangle surrounding the annotation.</li>
103-
* <li>{@link PdfAnnotation#STYLE_DASHED} - A dashed rectangle surrounding the annotation.</li>
104-
* <li>{@link PdfAnnotation#STYLE_BEVELED} - A simulated embossed rectangle that appears to be raised above the surface of the page.</li>
105-
* <li>{@link PdfAnnotation#STYLE_INSET} - A simulated engraved rectangle that appears to be recessed below the surface of the page.</li>
106-
* <li>{@link PdfAnnotation#STYLE_UNDERLINE} - A single line along the bottom of the annotation rectangle.</li>
102+
* <li>{@link PdfAnnotation#STYLE_SOLID} - A solid rectangle surrounding the annotation.
103+
* <li>{@link PdfAnnotation#STYLE_DASHED} - A dashed rectangle surrounding the annotation.
104+
* <li>{@link PdfAnnotation#STYLE_BEVELED} - A simulated embossed rectangle that appears to be raised above the surface of the page.
105+
* <li>{@link PdfAnnotation#STYLE_INSET} - A simulated engraved rectangle that appears to be recessed below the surface of the page.
106+
* <li>{@link PdfAnnotation#STYLE_UNDERLINE} - A single line along the bottom of the annotation rectangle.
107107
* </ul>
108108
* See also ISO-320001, Table 166.
109109
* @param style The new value for the annotation's border style.

0 commit comments

Comments
 (0)