Finding image resolution in a PDF?

I am currently working to perform some maintenance for an app that formats and resizes documents, usually PDFs. The problem happens when certain files are uploaded with an unusually large image resolution (according to the Preflight Properties, 2222.222/2222.222 pt/in). The documents with this resolution come in with file sizes of 36"x24" and end up formatted to 8.5"x11". This leaves the text and a lot of information unreadable.
I am using Visual Basic with iTextSharp to interact with the PDFs that come in. I'm able to find the width and height in points of the document without issue. Finding the image's width/height pixel count is what is giving me fits.
Is there any way in iTextSharp that I can determine the pixel count for the width/height of a PDF Image, or am I heading down a dead end street here?
Thanks in advance for any help you can provide.

I hate to reply again, but I'm still stuck. I've been through the SDK and documentation and have had no luck finding anything to help solve this problem. I don't really need to extract the image per se, I just need to find the resolution of it. Could you possibly point me in a definitive direction in the SDK/Documentation that I could use? There are a couple examples that deal with Preflight but none dealing with the image in the PDF or its properties.
Thanks in advance.

Similar Messages

  • Find images resolution

    Hi Forum,
    I have tried to get alert for the links if it has 250 or 300 resolution. But if the pdf is placed, the script is replying error message.
    "object does not support the property or method actualPPi"
    How can i omit the check for PDF and continue to find other images resolution and alert.
    var doc = app.activeDocument;
    var graphics = doc.allGraphics;
    var image, horRes, verRes;
    for (var i = 0; i < graphics.length; i++) {
         image = graphics[i];
         if(image.actualPpi[0] ==300 ||
         image.actualPpi[0] ==250){
    alert ("images are in 300 & 250 dpi");                 
    thanks in advance forum...

    hi -hans-
    thanks for the quick reply,
    on the flip side of it, it tried to check only for the "Grayscale" images. please see and if you can help on this...
    var doc = app.activeDocument;
    var graphics = doc.allGraphics;
    var image, horRes, verRes;
    for (var i = 0; i < graphics.length; i++) {
         image = graphics[i];
         if(image.imageTypeName == 'Grayscale' &&
         image.hasOwnProperty('actualPpi') != false &&
         image.actualPpi[0] ==250){
    alert ("images are in 300 & 250 dpi");                

  • What is the image resolution in the PDF file for an "Add Image"?

    I am using Acrobat Pro XI.  I added a 600 dpi image to my PDF file.  When I click on it and copy a chunk of it, then paste it into paint, the image resolution is 96 dpi.  How can I tell the resolution is of images in my PDF file?  I am trying to keep at least 300 dpi image resolution.  Thank you for any help in understand this.

    then paste it into paint, the image resolution is 96 dpi
    That's the consequence of using the OS's clipboard.
    A PDF can have image content of different resolution.
    You can look in the application's Preferences - Convert to PDF - [select one of the supported image file formats] to observe settings.
    Some are user configurable.
    Basically if you insert "x" ppi that's the resolution of that image that is not on the PDF page.
    Be well...

  • How to find out the image resolution in illustrator?

    How to find out the image resolution in illustrator cs through javascript or vbscript?
    Thanks,
    Prabudass

    Anyone please help me, how to find out the embedded image resolution in illustrator file through script.
    Thanks,
    Prabudass

  • How can I insert an image at the original resolution into a PDF using Acrobat Pro XI

    Got an image created in Photoshop at 300DPI 2480 pixels wide by xx high.  Saved as a TIFF.
    When I insert that image in my PDF (A4 210mm x 297mm) using Acrobat Pro XI via "Content Editing->Add Image" it appears smaller than the page width of the PDF, and I must manually resize the inserted image by dragging with my mouse.  
    Documentation says the image is inserted at the original image resolution, but it doesn't seem to be the case.
    Also tried creating another image in Photoshop using 210mm width @ 300 DPI (instead of 2480 pixels @ 300DPI), got the same results.
    Can anyone help?  Cheers.

    You should maybe take a step back. Nobody composes pages in Acrobat.

  • PDF Image Resolution

    khuon mau
    I'm having a difficult time meeting a printers requirements and I thought I'd ask if there was any way to tell what the image resolution is on a PDF file.
    The images are 300+ when I create the pdf (from Adobe Illustrator CS3), based on their creation instructions, but when I submit they say the images are not high enough quality.
    Thanks in advance for any help.
    Micah

    With the preflight tool in Acrobat you can check the resolution of the images in the PDF document.

  • Where do I find the image resolution in iPhoto '09

    Where do I look in iPhoto '09 to find the resolution of a photo?

    Are you referring to the "dpi" setting for the image?  That's not relevant until you set a print size.  DPI is dots per inch so you need to divide the width of the image in pixels (dots) by the width of the print (inches) to get the resolution of that print.
    This will give you more info on that: The Myth of DPI.
    Many cameras will set the dpi in the metadata at 180 dpi.  iPhoto changes it to 72 dpi as that's generally the screen resolution of many monitors. But as described above it's meaningless until you go to print the image.
    OT

  • How do I change the image resolution of a photo?

    Hi..,
         I am the beginner in Photoshop.
         I want to change one image resolution from 72 dpi to 300 dpi.
         So, I search and got one pdf for change the resolution of the image. In that they mention, take the "Printscreen" of the image and paste in the photoshop and change the mode(Index - flatten) and change resolution via the "Image -> image size -> Resolution".
         Like that i did, it changed correctly.
         After that I Open one already saved image file in Photoshop and do that same steps but the resolution was not changed.
    So, now how to change that saved image resolution to 300 dpi...??
    Regards.,
    VISWA

    Viswa,
    To find the current resolution of your image, follow these steps:
    With your image open in Photoshop, Image > Image Size (Like you've already done earlier).
    Check the resolution as shown above. If it doesn't show 300, enter 300, hit OK and 'Save' your image.
    Open the file and check again. If it still shows 72, post back with more details of the type of file you're trying to open in Photoshop and if possible, a screenshot so we can help.
    -ST

  • Continuous tone image resolution lower than specified

    The following message was posted in the incorrect forum; no legitimate solution to the problem was ever posted. I am re-posting it, as this is the same exact problem I am having, right down to the OS and version of Acrobat. Could someone please explain to me what this means and whether or not I should be concerned about it? I will also get two different kinds of results... one is a single number effective ppi on this error, such as 199, (which results in 200ppi if run through PitStop), and a two-number effective ppi, which we haven't been able to decipher, such as 501.357/179.55ppi (which should be a hi-resolution image).
    Help?
    Amy Carolyn Watson
    >
    >
    >Nikola Viereckel - 09:45pm Dec 9, 2007 Pacific
    >
    >Hi - I have recently discovered the above error message when I
    >check my distilled press quality pdf in preflight. I am using
    >a PC and Version 7.0 of distiller and acrobat. The images are
    >300dpi and are in my documents at 100% or lower, so there should
    >be no resolution issues. The pdf itself looks fine, but the
    >preflight does not. I find if I export out of InDesign (CS2)
    >then I do not get the same error message, but this is not my
    >preferred way to create pdfs for print.
    >
    >Any ideas? I the only thoughts I have had is to reinstall
    >the program. Thanking you in advance for your help.
    >Cheers
    >Nikola

    > All text should export as vector, since it's all on a layer above any kind of image.
    Is there any transparency in the text, though? If you float text over
    an image with transparency, it MUST be exported as an image. If it is
    floated over vector art with transparency, it MIGHT.
    It's easy to assume that just because something is on top, it doesn't
    ever need to be flattened. This is not in fact true.
    >
    >I am a little concerned: is this a flaw in the Acrobat Program?
    You mean in its preflight? Unlikely, it isn't rocket science to
    calculate ppi, so the numbers are probably right.
    >
    >Where is this "Continuous tone image resolution" turned on/off? Why is it important?
    That's probably a reference to Distiller settings. I think we've
    established that you aren't using Distiller.
    >
    >Is InDesignCS2 flattening to low transparency settings, even though my settings dictate high?
    You'd probably need to ask in the InDesign forum. But bear in mind
    that the flattener is free to use lower resolution if it thinks that
    is all that is needed for particular effects.
    Maybe you could reopen the PDF in Illustrator, and use that to select
    the images in the flattened page. Might illuminate what is going on.
    Aandi Inston

  • Custom book export resolution problem in PDF - only 150DPI!?

    I've been using the custom book option and when it came to exporting my PDF I have run into a problem involving the undocumented output resolution of a PDF at a given size. The custom book dialog allows you to create a book with a certain size in inches, but this really has no real meaning since the resolution of that output cannot also be specified in either the layout option or the print dialog. For example is it 150dpi or 300dpi? From some investigation it appears to be locked at 150DPI.
    Now I would have thought that Aperture was intelligent enough to just treat the album layout (this is my assumption) as some kind of smart object, where the layout is resolution independent and the final output resolution can be determined when printing to a printer or PDF. In that case the dialog for the setup of the custom size is correct. However, there is no option that I can see in the print dialog to actually specify the output resolution; Aperture is left to its own devices to specify an output resolution, which is undocumented.
    I use a printer that accepts JPG or TIF files and I need 300dpi for an album size of 10x13 inches. This equates to 3900x3000 pixels per page. I am able to export to PDF in the print dialog and then used an automator action to export each page of the PDF as JPG and reimported back into Aperture 2 in the same action. In the PDF>JPG conversion option there is the ability to set the DPI to 300. That works fine and the resulting JPG images show as 300dpi (3900x3000px). When looking at the images though they look a little soft, which leads me to believe that my action was simply interpolating a 150dpi image in the PDF into 300dpi.
    So to test this, I noticed that if I exported just one page of the album as a PDF and opened the PDF in Preview it does indeed tell you that it is 13x10 inches (no mention of the pixel resolution though). So, you can actually reimport a single page PDF into Aperture and if you do this it appears that the actual resolution is 1950x1500 and that equates to 150dpi for a 13x10 inch layout.
    So there are two things that could possibly be going on here:
    1. The actual layout of the album is locked at 150DPI and the save to PDF simply takes that and exports a PDF at that resolution.
    2. The layout of the album is resolution independent, the size of the album (in the custom dialog) simply controls the aspect of the page layout, and the print dialog (save to PDF) is exporting as 150DPI as default. When I run my automator action (these are the Leopard PDF actions), the save each page to JPG action is up-res'ing the image to 300dpi.
    This is where I need help. Is 1 or 2 (or something else?) happening. Also, does the PDF save as JPG12? That too is undocumented.
    If number 1 is happening I may have to set my album size to 26x20inches to get a 10x13 inch page at 300dpi.
    If number 2 is happening I need to find a PDF/TIFF/JPEG print driver to enable me to export at 300dpi as the print dialog in not standard (and we don't get the nice 'save as' drop down where we could do other things. So far my search has led me to CUPS-PDF, but that still doesn't allow for resolution to be set: http://www.codepoetry.net/projects/cups-pdf-for-mosx
    Why can't Apple just figure this thing out correctly and allow the resolution to be specified by the user - what an oversight given all of the feedback requests for the custom album tool. We need 300dpi as a minimum as we can always down-res if we want.
    Any ideas? I've got albums to send to clients! Help!
    Thanks

    When you import any PDF into Aperture, I think it rasterizes any PDF you import to a 150dpi flat image on import, even if it was a high res PDF to begin with. But theres the thing, PDFs don't have dpi (as such). Any shapes or text is a vector so don't have a DPI as they'll scale when printed. The images use their DPI when they were imported from the program that created the PDF.
    So I did a quick test and put a page I made from Aperture in to Acrobat and ran a preflight check on all images to check the resolution. It came back at 349.956 ppi, so this example was over 350dpi.
    I've attached the screenshot
    Jason

  • Combining png files with Acrobat 9 Pro reduces image resolution

    Combine creates a PDF with much lower resolution than what results if I insert the png images into an existing PDF. I choose the highest resolution option I see on the Combine screen. Inserting the png files one at a time is too time-consuming for 240 of them. 

    In most word processors, and EPS file is displayed as the bitmap image that is included if one is present. Many EPS files are only vector images and in that case you simply get a place holder. Typically the image that is displayed is a bitmap just to give an idea of what is there. You might consider opening the EPS file in Illustrator and saving as a different vector format, possibly just a EMF file (or WMF). That should look fine in WORD. You could even clip it from vector viewer of the EPS file.
    If you are successful on getting the vector graphic into the PDF, you will find it can not be dealt with as a standard graphic. I am not real good with the vector graphics that get into the PDF in terms of touchup and such.

  • How to check the resolution of a pdf file using Acrobat 9 pro?

    How to check the resolution of a pdf file using Acrobat 9 pro?

    PDF files don't have one resolution, but may have none or many different resolutions, one per image. You can check the maximum/minimum resoluion with preflight in Acrobat Pro, but not in Adobe Reader.

  • Overprint Preview, RGB, Image Resolution Acrobat v9

    I recently started using Acrobat 9. There is 2 things I'm looking in V9.
    1- Overprint Preview
    2- All image resolutions in a HiRes pdf. I see a custom check profile called "resolution of color & grayscale images is between..." but I want image resolution is ...
    3- Flag any RGB images used.
    ThankYou

    I'm sorry what I mean if a pdf have 35 images I would to see the image resolution of all of them independently if they are 72 or 600 dpi.

  • Mixing Image Qualities in a PDF

    I have a document I created in InDesign.
    I and I would like to export for viewing on the web.
    My problem is, when I export it using the standard preset, the images I want to be sharp are blurry.
    When I export it for High Res Print, the 52 page file becomes 18 Megs vs 1 Meg.
    Is there are way I can change lower the quality on certain images, and raise them on others?
    I was also thinking of exporting it page by page, selecting different presets depending on how quality important each image is. And then combining it at the end.
    Does anyone know the best way to approach this is, or should I just bite the bullet and force the visitor to download the 18meg file to view the document.
    Jimmy

    InDesign doesn't have an option at the export stage to choose different image resolutions for each frame in the layout, but it doesn't upsample - so if you switch out your high-res images for low-res copies (i.e. copy and replace the original image files on disc) you can control the process that way.
    Acrobat can resample images via the Save As > Optimized PDF dialog, but it applies the reductions to the entire file.

  • Crystal Reports Developer 11 - image quality in exported pdf file

    I need to create a report with many images and export it to a pdf file. The image quality in the pdf file is slightly lower than in the rpt file. Can someone tell me how to increase the image quality in pdf file?
    Thanks,
    Hong

    This document explains how to increase the image resolution when exporting:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30407084-c51d-2b10-1f81-813488350e6f
    But it's for Crystal Enterprise 8.0, do you know if Crystal Reports 11 will work the same way?

Maybe you are looking for

  • EXECUTE IMMEDIATE dynamic statement and return procedure value

    Hello guys, How can i return values from procedure using EXECUTE IMMEDIATE statment? I made easy example: CREATE OR REPLACE PACKAGE pac_test IS PROCEDURE pro_calc_average( p_age_1 IN NUMBER, p_age_2 IN NUMBER, p_age_3 IN NUMBER, v_out OUT NUMBER); PR

  • Open link in background when anchor's attribute "href" contains javascript

    Hi community, I support web enterprise-level application with some legacy parts, where some windows are opened by using window.open command inside of anchor's href attribute. (e.g. <a href="javascript:MyFunction('../someurl', '2')" ../> ... function

  • File type associations is not working in the App-V 4.6 SP3

    Hello, I found issue, that file type associations is not working in App-V 4.6 SP3. When I try to open associated file with double click I receive next window: Translate: This action is only valid for products that are currently installed. I have chec

  • CRM 2013 Email Router Issue

    We configured email router using Office 365 Exchange Online. Followed everything as mentioned in "http://blogs.msdn.com/b/niran_belliappa/archive/2014/04/10/installing-and-configuring-the-e-mail-router-for-exchange-online-and-crm-online.aspx". Test a

  • Obtaining a OS X 10.7 Lion license now, how?

    Anyone know of a way to purchase a license of OS X 10.7 Lion now? Are any type of licenses transferable, except with hardware with preinstalls? What about volume licensing? What have you done hiding the apples some of us still need, Apple? <Edited By