# PDFMergerUtility

Element | Missed Instructions | Cov. | Missed Branches | Cov. | Missed | Cxty | Missed | Lines | Missed | Methods
Total | 343 of 2,265 | 84% | 74 of 334 | 77% | 80 | 214 | 89 | 565 | 16 | 47
optimizedMergeDocuments(MemoryUsageSetting, CompressParameters) |  | 0% |  | 0% | 6 | 6 | 26 | 26 | 1 | 1
appendDocument(PDDocument, PDDocument) |  | 92% |  | 84% | 16 | 57 | 14 | 202 | 0 | 1
acroFormLegacyMode(PDFCloneUtility, PDAcroForm, PDAcroForm) |  | 81% |  | 68% | 4 | 9 | 4 | 23 | 0 | 1
mergeAcroForm(PDFCloneUtility, PDDocumentCatalog, PDDocumentCatalog) |  | 64% |  | 58% | 3 | 7 | 5 | 15 | 0 | 1
mergeViewerPreferences(PDDocumentCatalog, PDDocumentCatalog) |  | 81% |  | 60% | 11 | 15 | 5 | 22 | 0 | 1
mergeRoleMap(PDStructureTreeRoot, PDStructureTreeRoot) |  | 80% |  | 75% | 3 | 7 | 2 | 16 | 0 | 1
legacyMergeDocuments(MemoryUsageSetting, CompressParameters) |  | 91% |  | 81% | 3 | 9 | 2 | 25 | 0 | 1
mergeMarkInfo(PDDocumentCatalog, PDDocumentCatalog) |  | 82% |  | 58% | 5 | 7 | 1 | 11 | 0 | 1
mergeDocuments(MemoryUsageSetting, CompressParameters) |  | 55% |  | 25% | 2 | 3 | 2 | 5 | 0 | 1
updatePageReferences(PDFCloneUtility, COSArray, Map) |  | 78% |  | 83% | 1 | 4 | 1 | 7 | 0 | 1
addSource(String) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
addSources(List) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
acroFormJoinFieldsMode(PDFCloneUtility, PDAcroForm, PDAcroForm) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
setDocumentMergeMode(PDFMergerUtility.DocumentMergeMode) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
setAcroFormMergeMode(PDFMergerUtility.DocumentMergeMode) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
setDestinationDocumentInformation(PDDocumentInformation) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
setDestinationMetadata(PDMetadata) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
setIgnoreAcroFormErrors(boolean) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
getAcroFormMergeMode() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
getDocumentMergeMode() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
getDestinationFileName() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
getDestinationStream() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
getDestinationDocumentInformation() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
getDestinationMetadata() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
isIgnoreAcroFormErrors() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
hasOnlyDocumentsOrParts(COSArray) |  | 94% |  | 87% | 1 | 5 | 1 | 9 | 0 | 1
isDynamicXfa(PDAcroForm) |  | 77% |  | 75% | 1 | 3 | 0 | 1 | 0 | 1
mergeKEntries(PDFCloneUtility, PDStructureTreeRoot, PDStructureTreeRoot) |  | 99% |  | 87% | 3 | 13 | 1 | 38 | 0 | 1
mergeOutputIntents(PDFCloneUtility, PDDocumentCatalog, PDDocumentCatalog) |  | 98% |  | 75% | 3 | 7 | 1 | 17 | 0 | 1
updatePageReferences(PDFCloneUtility, Map, Map) |  | 97% |  | 83% | 1 | 4 | 1 | 10 | 0 | 1
updatePageReferences(PDFCloneUtility, COSDictionary, Map) |  | 100% |  | 100% | 0 | 7 | 0 | 24 | 0 | 1
mergeIDTree(PDFCloneUtility, PDStructureTreeRoot, PDStructureTreeRoot) |  | 100% |  | 100% | 0 | 5 | 0 | 18 | 0 | 1
getIDTreeAsMap(PDNameTreeNode) |  | 100% |  | 100% | 0 | 4 | 0 | 10 | 0 | 1
getNumberTreeAsMap(PDNumberTreeNode) |  | 100% |  | 100% | 0 | 4 | 0 | 10 | 0 | 1
mergeInto(COSDictionary, COSDictionary, Set) |  | 100% |  | 100% | 0 | 4 | 0 | 5 | 0 | 1
updateParentEntry(COSArray, COSDictionary, COSName) |  | 100% |  | 83% | 1 | 4 | 0 | 8 | 0 | 1
updateStructParentEntries(PDPage, int) |  | 100% |  | 50% | 1 | 2 | 0 | 8 | 0 | 1
PDFMergerUtility() |  | 100% |  | n/a | 0 | 1 | 0 | 9 | 0 | 1
lambda$updateStructParentEntries$0(int, List, PDAnnotation) |  | 100% |  | 100% | 0 | 2 | 0 | 5 | 0 | 1
mergeLanguage(PDDocumentCatalog, PDDocumentCatalog) |  | 100% |  | 100% | 0 | 3 | 0 | 5 | 0 | 1
addSource(File) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
addSource(InputStream) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
mergeDocuments(MemoryUsageSetting) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
setAcroFormMergeMode(PDFMergerUtility.AcroFormMergeMode) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
setDestinationFileName(String) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
setDestinationStream(OutputStream) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
static {...} |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1