【问题标题】:Zend_pdf - rotate text half way the page 90* then print and continue (-90*)Zend_pdf - 将文本旋转到页面 90* 的一半,然后打印并继续 (-90*)
【发布时间】:2014-05-25 03:34:49
【问题描述】:

我正在使用 zend_pdf(magento 发票)编辑文档

我正在尝试在 A4 纸的左上象限中打印地址块,旋转 90 度(用于信封窗口)

使用此处的提示:How to rotate text while creating PDF in Zend Framework?

$page->rotate(0, 0, deg2rad(-90));
$page->drawText('Hello world!', 100, 100);

我的问题是:当我打印完地址框后,如何将设置转回? (所以我继续旋转 0 度)

另外:旋转0,0是否意味着它会旋转纸张本身? (使用左上角作为锚点?(使用这种方法时,我似乎也失去了纸上的轴承)

非常感谢!

【问题讨论】:

    标签: magento zend-pdf


    【解决方案1】:

    使用旋转返回

    $page->rotate(0, 0, deg2rad(-90));
    

    【讨论】:

      猜你喜欢
      • 2013-08-19
      • 2015-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-09
      • 1970-01-01
      • 2021-05-24
      • 2011-03-22
      相关资源
      最近更新 更多