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

Posted on 2006-04-03
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.

Please help. Thanks in advance.
Question by:MikeBroderick
    LVL 10

    Expert Comment

    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.
    LVL 44

    Accepted Solution

    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 -
    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.

    Author Comment

    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.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe A recent question here at Experts Exchange piqued my interest, so I decided to provide a thorough solution and publ…
    Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe INTRODUCTION This article presents a solution to a question (…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now