Skip to content

Commit 6b9a51a

Browse files
EvgenyB1001iText-CI
authored andcommitted
Rename PdfDocument.addFileAttachment() argument
It is required to rename the 1st argument of the PdfDocument.addFileAttachment(String, PdfFileSpec) method to make the method description more correct.
1 parent 5620b00 commit 6b9a51a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,12 +1466,12 @@ public void checkShowTextIsoConformance(CanvasGraphicsState gState, PdfResources
14661466
/**
14671467
* Adds file attachment at document level.
14681468
*
1469-
* @param description the file description
1470-
* @param fs {@link PdfFileSpec} object.
1469+
* @param key name of the destination.
1470+
* @param fs {@link PdfFileSpec} object.
14711471
*/
1472-
public void addFileAttachment(String description, PdfFileSpec fs) {
1472+
public void addFileAttachment(String key, PdfFileSpec fs) {
14731473
checkClosingStatus();
1474-
catalog.addNameToNameTree(description, fs.getPdfObject(), PdfName.EmbeddedFiles);
1474+
catalog.addNameToNameTree(key, fs.getPdfObject(), PdfName.EmbeddedFiles);
14751475
}
14761476

14771477
/**

0 commit comments

Comments
 (0)