Skip to content

Rotation of 45 degree for Insert Text in PDF #2721

@khetaniarpan

Description

@khetaniarpan

I am trying to insert text for landscape and potrait mode pages , but i noticed, we cannot do rotation on 45 degrees. Do we have any option to do. I noticed your previous codes , and tried this scenario , but no way to rotate at an angle of 45.

Can you please help
p1 = fitz.Point(100, 100)
p9 = fitz.Point(900, 900)
page.insert_text(p1 * page.derotation_matrix, "test_100", fontsize=50, rotate=page.rotation)
page.insert_text(p9 * page.derotation_matrix, "Preliminary Report", fontsize=100, rotate=page.rotation)

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions