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

Acrobat  gives the message: Could not find the XObject named Im1.

MikeBroderick
on
Medium Priority
6,863 Views
Last Modified: 2012-05-05

I have written a program that generates a PDF. The program is trying to create a page object that refers to a form XObject Form1. Form1  refers to an image Im1. When Acrobat (6.0) loads the file, I get the message Could not find the XObject named 'Im1'. And the page displays without the image.

Here is the PDF my program generated. Note: Object 5 (procset) is there but not referred to.

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

Please help. Thanks in advance.
Comment
Watch Question

Now, I get that it can't find the XObject named "%s".  And it also doesn't display anything.

As far as coding in PDF, I'm hopeless.
CERTIFIED EXPERT
Commented:
Do you have a tool to look into a PDF file (e.g. the Enfocus Browser, which unfortunately is no longer available. A commercial alternative is the PDF CanOpener - http://www.windjack.com/products/pdfcanopener.html)?
I looked around your PDF file, and the problem is that it's trying to place an image named "Im1" with the following command in the page content stream:
/Im1 Do

When you check the Resources dictionary, there is an XObject entry, but it only contains one object named "Form1". This does not work.
Now, if I change the Do command so that it references the XObject named Form1, the error message goes away, and Acrobat will paint something on your page. However, I suspect that it does not look like what you expect it to look like: You need to set a transformation matrix before you execute the Do command, so that Acrobat knows where and in which size to paint the object.

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

Ask the Experts

Author

Commented:
No, I do not have a tool to look into a PDF file. I was going to ask about one but didnt put it in the question. Thank you much for the CanOpener reference.

I accidentally altered the example you are looking at this morning. The page object's stream referenced an XObject called /Form1 in the unaltered example. Sorry.

I found a passage that says that a resource directory for a Forms XObject cannot be annother object like it can for a Page Object. When I changed my file, it worked.
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.