Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8476561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:12:49+00:00 2026-06-10T18:12:49+00:00

I am using Zend PDF to draw text, like this: $page->drawText(‘Hinweis: ‘ . $note,

  • 0

I am using Zend PDF to draw text, like this:

$page->drawText('Hinweis: ' . $note, $this->getAlignCenter('Hinweis: ' . $note, 66, 100, $font, $fontSize), $this->y, 'UTF-8');

According to how long $note is, the text is placed somewhere else. How could I always align the complete text like 30px from the left border?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:12:50+00:00Added an answer on June 10, 2026 at 6:12 pm

    getAlignCenter() calculates the position in which the text needs to be in order to be center aligned. If you simply want to left align it, provide the desired x coordinate instead of using getAlignCenter().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Zend_Form, how would I create form elements like this <input type=text name=element[1] value=/>
Using Zend Lucene I cannot search numbers in description fields Added it like this:
Using Zend_Form, how would I create form elements like this: <input type=text name=element[1] value=
At the moment I am using this code to insert text in a PDF:
Using Zend_Form, how would I create form elements like this: <input type=text name=element[0][name] value=
Using Zend, I want to create a navigation like: <ul class=navigation> <li> <a href=/coupon/index/all></a>
I want to create a PDF file using zend_pdf. But this way seems not
Using Zend FW based Youtube api. Often getting errors on page load Fatal error:
I'm using Zend_Pdf library for extract text from pdf and I have some problems...
I have a similar problem to this issue: Merging 2 pdf with Zend Framework

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.