Skip to content

Rotate page and Save copy #9

Description

@svobol13

Hello, I am unsure what I am doing wrong but I am unable to rotate page.

Following code produces all wrong oriented pdf files.

        var pdfDocument = PdfDocument.Load(file.OpenReadStream(), "");
        var p = pdfDocument.GetPage(0);
        p.SetRotation(0);
        pdfDocument.Save("./0.pdf");
        p.SetRotation(1);
        pdfDocument.Save("./1.pdf");
        p.SetRotation(2);
        pdfDocument.Save("./2.pdf");
        p.SetRotation(3);
        pdfDocument.Save("./3.pdf");

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions