Skip to content

Can't seem to rotate text #476

Description

@durango
      vectorDoc
        .rotate(90, {origin: [650, 45]})
        .fillColor(is_express ? 'red' : 'black')
        .font('OpenSans-Light')
        .fontSize(12)
        .text('hello', 650, 53)

Seems to make my script fail, I've even tried setting rotation to 89.9, tried this as well:

      vectorDoc
        .save()
        .rotate(90, {origin: [650, 45]})
        .fillColor(is_express ? 'red' : 'black')
        .font('OpenSans-Light')
        .fontSize(12)
        .text('hello', 650, 53)
        .restore()

I've tried removing the font/fontSize options but nothing seems to work. Using the latest npm version with pdftk 2.01 a Handy Tool for Manipulating PDF Documents

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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