Skip to content

Commit e462c81

Browse files
Kate IvanovaiText-CI
authored andcommitted
Add InheritedPageEntriesTest#setRotationToPageTest
DEVSIX-3834, DEVSIX-1704 Autoported commit. Original commit hash: [65011089b]
1 parent 7784f41 commit e462c81

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

itext.tests/itext.kernel.tests/itext/kernel/pdf/InheritedPageEntriesTest.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,19 @@ public virtual void AddNewPageToDocumentWithInheritedPageRotationTest() {
5757
));
5858
}
5959

60+
[NUnit.Framework.Test]
61+
public virtual void SetRotationToPageTest() {
62+
String outputFileName = destinationFolder + "setRotationToPage.pdf";
63+
String cmpFileName = sourceFolder + "cmp_setRotationToPage.pdf";
64+
PdfDocument pdfDoc = new PdfDocument(new PdfReader(sourceFolder + "srcFileTestRotationInheritance.pdf"), new
65+
PdfWriter(outputFileName));
66+
PdfPage page = pdfDoc.GetPage(1);
67+
page.SetRotation(90);
68+
pdfDoc.Close();
69+
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outputFileName, cmpFileName, destinationFolder
70+
));
71+
}
72+
6073
[NUnit.Framework.Test]
6174
public virtual void MediaBoxInheritance() {
6275
String inputFileName = sourceFolder + "mediaBoxInheritanceTestSource.pdf";

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
47675581bacab5be717748639b4c58a0a9a9b9cd
1+
65011089bb7512af40c97fe2597e3d9d36e7dee8

0 commit comments

Comments
 (0)