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


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.
MikeBroderickAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FunkmotorCommented:
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.
0
Karl Heinz KremerCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MikeBroderickAuthor 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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Acrobat

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.