-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/7.0.6' into 7.0-master
- Loading branch information
Showing
108 changed files
with
4,036 additions
and
1,688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+27.4 KB
...sts/itext.forms.tests/resources/itext/forms/PdfFormFieldTest/cmp_regenerateAppearance.pdf
Binary file not shown.
Binary file added
BIN
+39.1 KB
...ts/itext.forms.tests/resources/itext/forms/PdfFormFieldTest/cmp_regenerateAppearance2.pdf
Binary file not shown.
Binary file added
BIN
+25.2 KB
...t.tests/itext.forms.tests/resources/itext/forms/PdfFormFieldTest/regenerateAppearance.pdf
Binary file not shown.
Binary file added
BIN
+34.5 KB
....tests/itext.forms.tests/resources/itext/forms/PdfFormFieldTest/regenerateAppearance2.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...ts/itext.kernel.tests/itext/kernel/pdf/canvas/parser/SimpleFontToUnicodeExtractionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
using iText.Kernel.Pdf; | ||
using iText.Kernel.Pdf.Canvas.Parser.Listener; | ||
using iText.Test; | ||
|
||
namespace iText.Kernel.Pdf.Canvas.Parser { | ||
public class SimpleFontToUnicodeExtractionTest : ExtendedITextTest { | ||
private static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext | ||
.CurrentContext.TestDirectory) + "/resources/itext/kernel/parser/SimpleFontToUnicodeExtractionTest/"; | ||
|
||
/// <exception cref="System.IO.IOException"/> | ||
[NUnit.Framework.Test] | ||
public virtual void Test01() { | ||
PdfDocument pdfDocument = new PdfDocument(new PdfReader(sourceFolder + "simpleFontToUnicode01.pdf")); | ||
String expected = "Information plays a central role in soci-\n" + "ety today, and it is becoming more and \n" | ||
+ "more common for that information to \n" + "be offered in digital form alone. The re-\n" + "liable, user-friendly Portable Document \n" | ||
+ "Format (PDF) has become the world’s \n" + "file type of choice for providing infor-\n" + "mation as a digital document. \n" | ||
+ "Tags can be added to a PDF in order \n" + "to structure the content of a document. \n" + "These tags are a critical requirement if \n" | ||
+ "any form of assistive technology (such \n" + "as screen readers, specialist mice, and \n" + "speech recognition and text-to-speech \n" | ||
+ "software) is to gain access to this con-\n" + "tent. To date, PDF documents have rare-\n" + "ly been tagged, and not all software can \n" | ||
+ "make use of PDF tags. In practical terms, \n" + "this particularly reduces information‘s \n" + "accessibility for people with disabilities \n" | ||
+ "who rely on assistive technology."; | ||
String actualText = PdfTextExtractor.GetTextFromPage(pdfDocument.GetPage(1), new LocationTextExtractionStrategy | ||
()); | ||
NUnit.Framework.Assert.AreEqual(expected, actualText); | ||
} | ||
|
||
/// <exception cref="System.IO.IOException"/> | ||
[NUnit.Framework.Test] | ||
public virtual void Test02() { | ||
PdfDocument pdfDocument = new PdfDocument(new PdfReader(sourceFolder + "simpleFontToUnicode02.pdf")); | ||
String expected = "ffaast"; | ||
String actualText = PdfTextExtractor.GetTextFromPage(pdfDocument.GetPage(1), new LocationTextExtractionStrategy | ||
()); | ||
NUnit.Framework.Assert.AreEqual(expected, actualText); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+99 Bytes
(100%)
...text/kernel/parser/HighlightItemsTest/cmp_ISO-TC171-SC2_N0896_SC2WG5_Edinburgh_Agenda.pdf
Binary file not shown.
Binary file modified
BIN
+120 Bytes
(100%)
.../parser/HighlightItemsTest/cmp_ISO-TC171-SC2_N0896_SC2WG5_Edinburgh_Agenda_characters.pdf
Binary file not shown.
Binary file added
BIN
+68.1 KB
...resources/itext/kernel/parser/SimpleFontToUnicodeExtractionTest/simpleFontToUnicode01.pdf
Binary file not shown.
Binary file added
BIN
+1.37 KB
...resources/itext/kernel/parser/SimpleFontToUnicodeExtractionTest/simpleFontToUnicode02.pdf
Binary file not shown.
Binary file added
BIN
+1013 Bytes
...t.kernel.tests/resources/itext/kernel/pdf/PdfPagesTest/singlePageDocumentWithRotation.pdf
Binary file not shown.
Binary file added
BIN
+1.72 KB
...s/itext/kernel/utils/PdfMergerTest/cmp_mergeDocumentOutlinesWithNullDestinationTest01.pdf
Binary file not shown.
Binary file added
BIN
+9.54 KB
...tests/itext.kernel.tests/resources/itext/kernel/utils/PdfMergerTest/null_dest_outline.pdf
Binary file not shown.
Oops, something went wrong.