Skip to content

Op::DrawRectangle doesn't work #259

@tower120

Description

@tower120

Maybe I am missing something, but I can't make Op::DrawRectangle work.
I don't see it in examples and tests.

Document processed and saved without warnings. But I don't see rectangle, when I open pdf with Acrobat.

I use it like this

        self.ops.push(Op::DrawRectangle { rectangle: Rect {
            x: Pt(50.0),
            y: Pt(50.0),
            width: Pt(20.0),
            height: Pt(20.0),
            mode: Some(PaintMode::Stroke),
            winding_order: Some(WindingOrder::NonZero),  // I tried None as well
        } });

While line and polygon works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions