We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Transforming coordinates, Forms XObject

MikeBroderick
on
Medium Priority
601 Views
Last Modified: 2006-11-18
I am having trouble getting the transformation matrix to work when painting a form xobject that contains an image xobject. Here is the pdf code:

http://www.broderickdata.com/test1/ovl2.pdf

I am trying to:

    + Make an 8.5 x 11 inch page (612 by 792)
    + Make a form xobject that is also 8.5 by 11 inches
    + Put a graphics image (width=1272, height=718) on the form
    + Put the graphics image at x=100, y=100 on the form, size the graphics to w=127, h=71

When I open the file with Acrobat 6.0 the graphic does not paint and when I examine the object using Preflight, list-all-images I see a message:
Outside visible page area.

Expanding Detailed Information- Graphic State Properties- Images- CTM, I see the following numbers:

    12188
    0
    0
    -9304
    -4336
    13664

I have no idea how I told Acrobat to use those numbers. How do I tell Acrobat to paint the graphic at the spot described above.

Next, I plan on writing text over the form by putting Td commands in the page object. Do you see any problems with this.

Thanks in advance.

Comment
Watch Question

CERTIFIED EXPERT

Commented:
You need to read the section about transformation matrices in the PDF reference at least a few times and potentially play around with working files a few times to get an idea about how they work.
I don't have time right now to look at your PDF file, I may be able to do this later today or tomorrow.
There is no problem with how you want to use the Td command.
More once I had a chance to look at the file.
CERTIFIED EXPERT

Commented:
One more thing: Are you sure that your XObject works correctly? You can verify this by just using the XObject as the page content. This helps to get the XObject debugged.

Author

Commented:
The image xobject works. I substituted its object number on the Page Resource object to test it. (The image looks horrible, I plan on fixing that next)
CERTIFIED EXPERT
Commented:
OK, in that case, all you need to do is to place the forms XObject in it's original size on the page:

q
1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 cm
/XObj1 Do
Q

Why are you placing the image into a forms object, and then add that into another forms object? You can just put the image into the resources of the page and place that.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.