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

  • SEARCH
  • Home
  • 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 8206859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:49:03+00:00 2026-06-07T08:49:03+00:00

Background: I’m developing an application that involves taking an existing pdf form and overlaying

  • 0

Background:
I’m developing an application that involves taking an existing pdf form and overlaying text on top of it. The pdf is version 1.3. I’m using the fpdfi class (written in php) that can be found here:

http://www.setasign.de/support/manuals/fpdi/

I am using fpdfi as an extension of the tcpdf class found here:

http://www.tcpdf.org/index.php

I use a line of (php) code that looks like this:

$this->SetXY(25, 250);$this->Cell(0, 8.6, $data[‘my_data_to_overlay’]);

where $this refers to the instance of the fpdfi class, the SetXY function tells it the coordinates I wish to place the text (x,y), and the Cell function tells it what text I want displayed and how large and such.
The page height is 279.4 (all units here will be in mm)

The problem:

If I set my y coordinate higher than 250 (even at 251), the text will be placed on the next page instead of near the bottom of the current page as expected. All other coordinates above that line at 250 will display properly, even at the top edge of the page.

Why can I not overlay the text near the bottom of the page? What am I doing wrong?

Also of note: all margins for the page are set to 0 and headers and footers are disabled.

  • 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-07T08:49:06+00:00Added an answer on June 7, 2026 at 8:49 am

    Disable auto page break by calling FPDF::SetAutoPageBreak with false, or true but with 0 margin.

    EDIT: Using FPDF::SetMargins you can only set left, top and right margins, but not the bottom one. This is the proper way to specify a bottom margin.

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

Sidebar

Related Questions

Background: At my company we are developing a bunch applications that are using the
Background: I am developing a web-based teaching program (using Drupal 7, if that matters)
Background, Part 1 I have a form that collects both frequency and duration from
background: I work on an asp.net web application that is on a company intranet.
Background This is only my second PyQt4 project. Developing a Windows app that has
Background Developing a simple web application (Eclipse + JBoss + Apache Tomcat) to generate
Background: We're building an application that allows our customers to supply data in a
Background I have been using the JQuery UI plugin for creating a dialog that
Background I have a dimension table that has a single record for each day.
Background: I'm writing a 'standard' (nothing special) web application in Ruby (not Rails) and

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.