Is there a reliable way to determine if the content of a page is a jpeg image?

I have a need to readily detect that the content of a particular page is a JPEG image.......
Is there a way to ascertain this as I am processing each page ?

I see - something more like the following code ? -
Thanks Leonard - I can see that this will take a while but - it is good to know that I am on the right path to start out.
I suppose that I can use the dump type to see what a jpeg looks like , etc.
Thanks again .
AVDoc avDoc = AVAppGetActiveDoc();
AVPageView pageView = AVDocGetPageView(avDoc);
PDPageNumber pageNum = AVPageViewGetPageNum(pageView);
/* Bridge method to PD doc*/
PDDoc pdDoc = AVDocGetPDDoc(avDoc);
/* Acquire current page */
PDPage pdPage = PDDocAcquirePage(pdDoc, pageNum);
PDEContent pdeContent = PDPageAcquirePDEContent(pdPage, gExtensionID);
//Declare a PDEElement object
PDEElement pdeElement;
//Get the number of elements in the PDEContent object
ASInt32 eleNum =  PDEContentGetNumElems(pdeContent);
//Get each element in the PDEContent object
for (int j=0; j<eleNum; j++){
     pdeElement = PDEContentGetElem(pdeContent, j);
//Determine if the element is a the type that we are looking for     if (PDEObjectGetType((PDEObject)pdeElement) == MatchingType
     //Perform a required action

Similar Messages

  • Is there an easy way to determine if a device on my account is currently turned on and connected to the network? Might be lost.

    Is there an easy way to determine if a device on my account is currently turned on and connected to the network besides trying to contact the user? Might be lost.

    There might be options available to you, butit ddepends on what kind of device it is.

  • Is there any way to turn off the auto formatting in Pages?  I just want to type a letter and add pictures and titles, and Pages keeps changing font sizes and doesn't let me "Do it my way".  I HATE this!

    Is there any way to turn off the auto formatting in Pages?  I'm using a blank document, so I figured I could write my letter and add pictures any way I wanted to.  But NO!  Pages keeps changing the font size!  I typed a large heading as a title, and when I try to change to a smaller font for the body of the letter, it changes the size back to the larger size!  I am getting SO FRUSTRATED!  I've spent over an hour trying to get the stupid program to let me just type my letter!  Can anyone help?

    The only one left is the "unsubmitted text" dialogue, which would not be a problem if I were not a Facebook user; after updating the "Richard is..." field (which does not require a manual submit to actually send) I get the above message. This is obviously Safari just not realising that the info has been sent and is therefore (I imagine) one for Apple themselves to answer!!
    You're welcome Rich. Glad to help.
    Not being a Facebook User, I'm not sure how to respond to the error situation. However, this would be something to report to Apple as a bug via the Safari Menu. First, open to the page in question, then select "Report Bugs to Apple".
    Mahalo for the and Aloha from Big Island.

  • HT201343 I have a Mac pro with osx ml in a Ethernet connection and a apple tv with a wireless, there is no way I can see the airplay in my Mac pro

    I have a Mac pro with osx ml in a Ethernet connection and a apple tv with a wireless, there is no way I can see the airplay in my Mac pro

    Mac Pros don't support Airplay.  Only some post 2011 Macs do, MAc Pros aren't amongst them.
    http://www.apple.com/uk/osx/specs/
    You could try Airparrot software as a workaround.
    AC

  • There is any way to speed up the shipment Dispatched?! I had been order it in the first of Oct. and the planing for shipment time announce to be between  3 to 4 Weeks Delivers  24 Oct, 2012 - 30 Oct, 2012

    There is any way to speed up the shipment Dispatched?! I had placing in order in the first of Oct. and the planing for shipment time announce to be between  3 to 4 Weeks Delivers  24 Oct, 2012 - 30 Oct, 2012

    No

  • I was wondering if there is a way to shut off the install mode on my G3 every time I plug in the USB to my Mac. I have an android manager software Mobile Go that this seems to be preventing it from connecting

    I was wondering if there is a way to shut off the install mode on my G3 every time I plug in the USB to my Mac. I have an android manager software Mobile Go that this seems to be preventing it from connecting

        as62467 We appreciate your G3 question! Let's see how we can help. What you are able to adjust is the USB connection mode by going to the home screen and selecting'recent apps' (in the touch keys bar), settings,storage, the menu (the 3 tiny dots) and tap usb pc connection. If you do not want the software to try and install choose either the internet connection or camera option. Let us know if this helps.
    SheritaH_VZW
    Follow us on Twitter

  • Everytime I go to full-screen mode the photo I am working on is on one space while the filmstrip is on another. Also there is no way to get to the menu on top as it is hidden. When I hit the f key everything goes to black and I have to quite the program.

    Everytime I go to full-screen mode the photo I am working on is on one space while the filmstrip is on another. Also there is no way to get to the menu on top as it is hidden. When I hit the f key everything goes to black and I have to quite the program. This is the first time I have any problems with Aperture.
    I run aperture 3 on OS X 10.7 iMac 27" 2.8GHz i7 16GB.
    Thanks for any help.

    You have to change the cursor focus.
    What I usually do for PDF pages/tabs, is click in the URL/location bar, then F11.<br />
    For Flash, if you click on the page outside of the video area/box, F11 should work.

  • HT1386 when I try to backup my iphone I don't get an option to do so when I control click on my iphone in itunes only eject and restore is there any other way to turn on the backup function?

    when I try to backup my iphone I don't get an option to do so when I control click on my iphone in itunes only eject and restore is there any other way to turn on the backup function?

    See Here...
    How to BackUp
    http://support.apple.com/kb/ht1766
    Troubleshooting Backup Issues
    http://support.apple.com/kb/ts2529

  • Hi, my iPhone 3GS wall charger stoped working, and I went to Orange shop with my warranty and L.I.G. insurance.They said I should also give them the phone for almost 10 days, isn't there a faster way, is it possible the Apple Store replaces my wall charge

    My 5YO daughter owns her very own IPhone 3GS, she got it for her 5YO birthday on the 24th of june. its allready upgraded to iOS5, and works like a charm.
    Last evening, while it was charging, a flame appeared and the charger stopped working.The USB still works.
    It was plugged in a Belkin 3700 joule along with my 47 Inch Full HD TV .
    No storm or something like that, and there was nothing wrong with my TV, as in was still running.
    Problem.
    I went today to an Orange store here in Romania, with the charger, invoice,warranty, and L.I.G. (London Insurrace Group ((I think))) insurrance, and they said I MUST also bring the iPhone, and thet it will take just about 10 working days for them to give me back the Iphone, and a new charger.
       Is there a faster way I can get the wall charger replaced?
    Should I try going to the Apple Store with the warranty from Orange.
    Thank you for your answers.
    Please excuse my English.
    CONDOLENCES APPLE. for your painfull loss.

        I can see that this issue has been quite extensive, and frustrating, and I am so sorry for all that has happened societygirl! I would like to help you work this issue out. Please follow & send me a Direct Message, so I can get your account specifics and help finally bring this to a resolution.
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • HT4812 I recently fixed my computer and need to reinstall logic pro 9 but I can't find the booklet with my serial number, is there any other way I can get the serial number for logic pro 9 (box)?

    I recently fixed my computer and need to reinstall logic pro 9 but I can't find the booklet with my serial number, is there any other way I can get the serial number for logic pro 9 (box)?

    If you still have the receipt or other proof of purchase, you can ask Apple to send you the serial. Otherwise, bad luck mate.. Good news is, you can now buy Logic Pro 9 from App Store for just 199 USD

  • What's an easy way to determine what the user typed is a date object?

    What's an easy way to determine what the user typed is a date
    object?
    Thanks!

    Thanks for trying. Sorry for not being clear. but I figured
    it out.
    the user can type in a date, or a name to search. The format
    they type in date has to be in mm/dd/yyyy.
    I was able to use:
    if (new Date(textEntered).toString()=="Invalid Date") {
    // not a date entered
    else {
    // a date is entered
    To do what I need to do.
    Thanks.

  • There is no math type expression in the insert icon of pages?

    there is no math type expression in the insert icon of pages?

    Is this question related to the Pages application? If so, it might make more sense to post this in the Pages forum: https://discussions.apple.com/community/iwork/pages

  • Records created locally - is there a reliable way to report on this?

    We need to run a report and return Order records that were created locally only (not online).
    I wondered if there is a reliable way to check if records were created on the remote client vs. the online client?
    e.g. is there some field which is only set locally, or function that works differently locally to online?
    The only thing we came up with so far was, for a limited number of orders, the Order Number for local orders (which is based on: Expr: 'RowIdToRowIdNum ([Id])') appears to create differently formatted order numbers locally to online (but is that by design?) and will it be reliable?
    Or is there another method to see were the orders were created?

    You can read more on ROW_ID's on Supportweb: What is RowID/ROW_ID, and How is it Generated and Used? [ID 476256.1]
    It looks like the Corporate Prefix is different for local databases and it looks like it's by design.
    "The corporate prefix will always be unique for any database (main or local). The server maintains its original value, and mobile databases created against that particular server database are always assigned a new, unique value."

  • Is There a Better Way to Work in the Marker List Window?

    Is there a better way to sequentially listen to phrases one-by-one in the Marker List window? What I'm doing is Auto-Marking one single long file to break out 271 bits and save each as their own file. It's WAY faster than copying and pasting bits into new files and "saving as" 217 times.
    BUT, after Auto-Marking, I have 300-400 phrases to listen to, deleting the non-keepers as I go, until I'm left with my "keeper" 271 marked phrases. But it's so tedious to move from phrase-to-phase. I have to double-click each one before I can hear it (you can move the cursor with the down-arrow, but it won't actually select the audio). So I have to use the mouse (unless I'm missing something) and double-click each of the hundreds of phrases. Then whenever I delete one (which I'll have to do about a hundred times or more to get rid of bad takes, alternates, etc.), inexplicably the cursor jumps way up the list so you have to scroll back down dozens of files to get to where you were. It took me 35 minutes to do it this last time.
    Contrast that with Reaper's audition/preview functionality (which, ironically, AA has also, but only for files already saved into a folder). Once I had all the files saved into a folder, I QC'd all 217 files in Reaper and MAN what a difference! All I had to do was use the "down" arrow to advance to the next file AND have it play automatically (Audition can do the same thing with the "Open File" feature). It literally took me 5 minutes to check all 217 files that way. If AA could add that kind of functionality to the Marker List window, or if I'm just completely missing something (very possible) I would REALLY be happy.
    Any ideas?
    Thanks again! Happy New Years again!
    Ken

    Wild Duck,
    That doesn't quite do what I need. My end-product is 271 (used to be 116) separate files created from one large file. That large one is made up of WAY more than 271 (the VO actor records different versions of some commands, makes mistakes, etc.).
    So I need the ability to listen to each marker, and then be able to delete it if need be.
    The Playlist makes this impossible in two ways. It only has 2 options for hearing each marker, and neither option allows me to delete that marker after I've heard it. It either plays them all back-to-back without stopping, or it plays each as you click the "Move Down" button. That last one would be great if showed me which marker was playing! But it doesn't, so there is no way for me to know which marker number I just heard, nor can I delete that marker after I hear it.
    Sigh.
    Thanks for the tip though:).
    Ken

  • I don't need the full package. Is there an easy way to change from the full to photographer's package?

    I'm trying to save money and realize that I don't need the full package. I wanted to just change over to photographer's pack with just Lightroom and Photoshop but I seem to be missing the way to do that through my account. Is there an easier way?

    http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html

Maybe you are looking for

  • Video Images Split In Half !? Please help - Thanks-

    When I play videos in Quicktime they are split in half. I have uninstalled and reinstalled a million times. What should I try next? Please help. Thanks, Levi

  • Why is the Podcasts App so buggy???

    I listen to podcasts almost everyday and have been using this app ever since it was first released. It's basically a dog's breakfast. The main problems are (1) bugs, and (2) lack of functionality. Bugs: 1. The app will start automatically anytime an

  • Error message after web software update

    Every time I do a software update of the OS on my intel macbook, and no matter what Apple decides to update on my computer, after I do the requested reboot, i immediately get a message onscreen that Norton Utilities has detected new software, and do

  • Transaction or program to find all existing BPs in CRM

    HI all, We have a scenario in which Business Partner data comes from legacy to XI and then gets posted into CRM. Sometimes all the data is not posted. I want to display all the BPs available in CRM till date and its corresponding data . Is there any

  • Migration Assistant update not following through

    I am trying to migrate the contents of my 10.4.11 Tiger to a new MacBook. It says I need to update the Migration Assistant on my Tiger. I have downloaded and installed this, http://support.apple.com/kb/DL713. IT seems to work smoothly, but the Migrat