@@ -469,8 +469,10 @@ public virtual String CompareByContent(String outPdf, String cmpPdf, String outP
469
469
/// <param name="cmpPdf">the absolute path to the cmp-file, which is to be compared to output file.</param>
470
470
/// <param name="outPath">the absolute path to the folder, which will be used to store image files for visual comparison.
471
471
/// </param>
472
- /// <param name="differenceImagePrefix">file name prefix for image files with marked visual differences if there is any.
473
- /// </param>
472
+ /// <param name="differenceImagePrefix">
473
+ /// file name prefix for image files with marked visual differences if there is any;
474
+ /// if it's set to null the prefix defaults to diff_%outPdfFileName%_ format.
475
+ /// </param>
474
476
/// <returns>
475
477
/// string containing text report of the encountered content differences and also list of the pages that are
476
478
/// visually different, or null if there are no content and therefore no visual differences.
@@ -517,8 +519,10 @@ public virtual String CompareByContent(String outPdf, String cmpPdf, String outP
517
519
/// <param name="cmpPdf">the absolute path to the cmp-file, which is to be compared to output file.</param>
518
520
/// <param name="outPath">the absolute path to the folder, which will be used to store image files for visual comparison.
519
521
/// </param>
520
- /// <param name="differenceImagePrefix">file name prefix for image files with marked visual differences if there is any.
521
- /// </param>
522
+ /// <param name="differenceImagePrefix">
523
+ /// file name prefix for image files with marked visual differences if there is any;
524
+ /// if it's set to null the prefix defaults to diff_%outPdfFileName%_ format.
525
+ /// </param>
522
526
/// <param name="outPass">password for the encrypted document specified by the outPdf absolute path.</param>
523
527
/// <param name="cmpPass">password for the encrypted document specified by the cmpPdf absolute path.</param>
524
528
/// <returns>
@@ -560,8 +564,10 @@ public virtual String CompareByContent(String outPdf, String cmpPdf, String outP
560
564
/// <param name="cmpPdf">the absolute path to the cmp-file, which is to be compared to output file.</param>
561
565
/// <param name="outPath">the absolute path to the folder, which will be used to store image files for visual comparison.
562
566
/// </param>
563
- /// <param name="differenceImagePrefix">file name prefix for image files with marked visual differences if there is any.
564
- /// </param>
567
+ /// <param name="differenceImagePrefix">
568
+ /// file name prefix for image files with marked visual differences if there is any;
569
+ /// if it's set to null the prefix defaults to diff_%outPdfFileName%_ format.
570
+ /// </param>
565
571
/// <param name="ignoredAreas">a map with one-based page numbers as keys and lists of ignored rectangles as values.
566
572
/// </param>
567
573
/// <returns>
@@ -604,8 +610,10 @@ public virtual String CompareByContent(String outPdf, String cmpPdf, String outP
604
610
/// <param name="cmpPdf">the absolute path to the cmp-file, which is to be compared to output file.</param>
605
611
/// <param name="outPath">the absolute path to the folder, which will be used to store image files for visual comparison.
606
612
/// </param>
607
- /// <param name="differenceImagePrefix">file name prefix for image files with marked visual differences if there is any.
608
- /// </param>
613
+ /// <param name="differenceImagePrefix">
614
+ /// file name prefix for image files with marked visual differences if there is any;
615
+ /// if it's set to null the prefix defaults to diff_%outPdfFileName%_ format.
616
+ /// </param>
609
617
/// <param name="ignoredAreas">a map with one-based page numbers as keys and lists of ignored rectangles as values.
610
618
/// </param>
611
619
/// <param name="outPass">password for the encrypted document specified by the outPdf absolute path.</param>
@@ -2430,12 +2438,6 @@ public override bool Equals(Object obj) {
2430
2438
return obj . GetType ( ) == GetType ( ) && key . Equals ( ( ( CompareTool . ObjectPath . DictPathItem ) obj ) . key ) ;
2431
2439
}
2432
2440
2433
- protected internal override XmlElement ToXmlNode ( XmlDocument document ) {
2434
- XmlElement element = document . CreateElement ( "dictKey" ) ;
2435
- element . AppendChild ( document . CreateTextNode ( key . ToString ( ) ) ) ;
2436
- return element ;
2437
- }
2438
-
2439
2441
/// <summary>
2440
2442
/// The key which defines to which entry of the
2441
2443
/// <see cref="iText.Kernel.Pdf.PdfDictionary"/>
@@ -2453,6 +2455,12 @@ protected internal override XmlElement ToXmlNode(XmlDocument document) {
2453
2455
public virtual PdfName GetKey ( ) {
2454
2456
return key ;
2455
2457
}
2458
+
2459
+ protected internal override XmlElement ToXmlNode ( XmlDocument document ) {
2460
+ XmlElement element = document . CreateElement ( "dictKey" ) ;
2461
+ element . AppendChild ( document . CreateTextNode ( key . ToString ( ) ) ) ;
2462
+ return element ;
2463
+ }
2456
2464
}
2457
2465
2458
2466
/// <summary>
@@ -2492,12 +2500,6 @@ public override bool Equals(Object obj) {
2492
2500
return obj . GetType ( ) == GetType ( ) && index == ( ( CompareTool . ObjectPath . ArrayPathItem ) obj ) . index ;
2493
2501
}
2494
2502
2495
- protected internal override XmlElement ToXmlNode ( XmlDocument document ) {
2496
- XmlElement element = document . CreateElement ( "arrayIndex" ) ;
2497
- element . AppendChild ( document . CreateTextNode ( index . ToString ( ) ) ) ;
2498
- return element ;
2499
- }
2500
-
2501
2503
/// <summary>
2502
2504
/// The index which defines element of the
2503
2505
/// <see cref="iText.Kernel.Pdf.PdfArray"/>
@@ -2510,6 +2512,12 @@ protected internal override XmlElement ToXmlNode(XmlDocument document) {
2510
2512
public virtual int GetIndex ( ) {
2511
2513
return index ;
2512
2514
}
2515
+
2516
+ protected internal override XmlElement ToXmlNode ( XmlDocument document ) {
2517
+ XmlElement element = document . CreateElement ( "arrayIndex" ) ;
2518
+ element . AppendChild ( document . CreateTextNode ( index . ToString ( ) ) ) ;
2519
+ return element ;
2520
+ }
2513
2521
}
2514
2522
2515
2523
/// <summary>
0 commit comments