'How to rotate text with hummus recipe JS

I want to add text "PO-83274323" to existing PDF file but I want to rotate it.

const HummusRecipe = require('hummus-recipe');
const pdfDoc = new HummusRecipe('046303BO.pdf', 'PO-83274323_046303BO.pdf');
pdfDoc
    // edit
    .editPage(1)
    .text('PO-83274323', 0, 0)
    .endPage()
 
    // end and save
    .endPDF();


Solution 1:[1]

I found the solution :))

.text('PO-00056249', 240, 80, {
        color: '#000000',
        fontSize: 7,
        align: 'center center',
        opacity: 0.8,
        rotation: 270
          })

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Barjadze Temo