Import pdf as rastered image into a c++ application

Hi Everyone,
I am developing a commercial application which processes rastered images. Additionally to bitmap formats like BMP and TIFF the application has to be able to load and process PDF-files. The PDFs only contain one page.
To make it harder, some of the PDF-files don't even "look right" when they are opened with Adobe Reader or Acrobat. They will print correct but they will only be displayed correct if "Use Overprint Preview" is set to "Automatic" or "Always". For my application I also need to disable "Smooth Text for LCD" and "Enhance thin lines".
Now, I am trying to get rastered information into my applications memory.
I cannot use CAcroPDPage::CopyToClipboard as it will not work on 64 bit systems. Also I would prefer not to mess around with the clipboard.
With CAcroPDPage::DrawEx I have to render the PDF into my window. When I want to load a PDF at a high resolution, I have to scroll over the PDF and read the pixels from the screen which looks ridiculous. In fact, I don't want to show the unprocessed pdf at all. Also I could not find a way to enable "Use Overprint Preview" for DrawEx.
The third possibility would be to use Acrobat's Export as: PNG function from my application. Although I would prefer to be able to render only relevant parts of the PDF, It should be ok to save the PDF once, with a high resolution of 600 dpi or more. But when I tried this from Acrobat, antialiasing and "Use Overprint Preview"  were disabled. I could use this if it were possible to save with antialiasing and "Use Overprint Preview" enabled.
So my big question is: Is there a way to render a PDF to my application's memory?
It would be possible to require every user of our software to buy Acrobat if necessary.
Thanks in advance,
Michael

You want to license the Adobe PDFLibrary, which will give you full control over the rendering process.

Similar Messages

  • How to insert a pdf or jpeg image into a blob column of a table

    How to insert a pdf or jpeg image into a blob column of a table

    Hi,
    Try This
    Loading an image into a BLOB column and displaying it via OAS
    The steps are as follows:
    Step 1.
    Create a table to store the blobs:
    create table blobs
    ( id varchar2(255),
    blob_col blob
    Step 2.
    Create a logical directory in the database to the physical file system:
    create or replace directory MY_FILES as 'c:\images';
    Step 3.
    Create a procedure to load the blobs from the file system using the logical
    directory. The gif "aria.gif" must exist in c:\images.
    create or replace procedure insert_img as
    f_lob bfile;
    b_lob blob;
    begin
    insert into blobs values ( 'MyGif', empty_blob() )
    return blob_col into b_lob;
    f_lob := bfilename( 'MY_FILES', 'aria.gif' );
    dbms_lob.fileopen(f_lob, dbms_lob.file_readonly);
    dbms_lob.loadfromfile( b_lob, f_lob, dbms_lob.getlength(f_lob) );
    dbms_lob.fileclose(f_lob);
    commit;
    end;
    Step 4.
    Create a procedure that is called via Oracle Application Server to display the
    image.
    create or replace procedure get_img as
    vblob blob;
    buffer raw(32000);
    buffer_size integer := 32000;
    offset integer := 1;
    length number;
    begin
    owa_util.mime_header('image/gif');
    select blob_col into vblob from blobs where id = 'MyGif';
    length := dbms_lob.getlength(vblob);
    while offset < length loop
    dbms_lob.read(vblob, buffer_size, offset, buffer);
    htp.prn(utl_raw.cast_to_varchar2(buffer));
    offset := offset + buffer_size;
    end loop;
    exception
    when others then
    htp.p(sqlerrm);
    end;
    Step 5.
    Use the PL/SQL cartridge to call the get_img procedure
    OR
    Create that procedure as a function and invoke it within your PL/SQL code to
    place the images appropriately on your HTML page via the PL/SQL toolkit.
    from a html form
    1. Create an HTML form where the image field will be <input type="file">. You also
    need the file MIME type .
    2. Create a procedure receiving the form parameters. The file field will be a Varchar2
    parameter, because you receive the image path not the image itself.
    3. Insert the image file into table using "Create directory NAME as IMAGE_PATH" and
    then use "Insert into TABLE (consecutive, BLOB_OBJECT, MIME_OBJECT) values (sequence.nextval,
    EMPTY_BLOB(), 'GIF' or 'JPEG') returning BLOB_OBJECT, consecutive into variable_blob,
    variable_consecutive.
    4. Load the file into table using:
    dbms_lob.loadfromfile(variable_blob, variable_file_name, dbms_lob.getlength(variable_file_name));
    dbms_lob.fileclose(variable_file_name);
    commit.
    Regards,
    Simma........

  • Can't import Canon G12 RAW images into iPhoto 6.0.6

    unable to import Canon G12 RAW images into iPhoto 6.0.6 (Mac OS-X (10.5.8) - any ideas?

    You'll need to install the Digital Camera RAW Compatibility Update 3.5 - Search the Support/Downloads site for that.
    It still may not work. Iphoto 6 is an elderly piece of software now and predates your camera by several years. If it doesn't work you'll need to update to iPhoto 09 or later.
    Regards
    TD

  • How do i import pdf or doc file into ppt?

    how do i import pdf or doc file into ppt?

    This forum is for questions related to https://workspaces.acrobat.com.
    Perhaps you would get a better answer in the Microsoft Powerpoint forum: http://answers.microsoft.com/en-us/office/forum/PowerPoint?auth=1

  • How to add images into a java application (not applet)

    Hello,
    I am new in java programming. I would like to know how to add images into a java application (not an applet). If i could get an standard example about how to add a image to a java application, I would apreciated it. Any help will be greatly apreciated.
    Thank you,
    Oscar

    Your' better off looking in the java 2d forum.
    package images;
    import java.awt.*;
    import java.awt.image.*;
    import java.io.FileInputStream;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    /** * LogoImage is a class that is used to load images into the program */
    public class LogoImage extends JPanel {
         private BufferedImage image;
         private int factor = 1; /** Creates a new instance of ImagePanel */
         public LogoImage() {
              this(new Dimension(600, 50));
         public LogoImage(Dimension sz) {
              //setBackground(Color.green);      
              setPreferredSize(sz);
         public void setImage(BufferedImage im) {
              image = im;
              if (im != null) {
                   setPreferredSize(
                        new Dimension(image.getWidth(), image.getHeight()));
              } else {
                   setPreferredSize(new Dimension(200, 200));
         public void setImageSizeFactor(int factor) {
              this.factor = factor;
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              //paint background 
              Graphics2D g2D = (Graphics2D) g;
              //Draw image at its natural size first. 
              if (image != null) {
                   g2D.drawImage(image, null, 0, 0);
         public static LogoImage createImage(String filename) { /* Stream the logo gif file into an image object */
              LogoImage logoImage = new LogoImage();
              BufferedImage image;
              try {
                   FileInputStream fileInput =
                        new FileInputStream("images/" + filename);
                   image = ImageIO.read(fileInput);
                   logoImage =
                        new LogoImage(
                             new Dimension(image.getWidth(), image.getHeight()));
                   fileInput.close();
                   logoImage.setImage(image);
              } catch (Exception e) {
                   System.err.println(e);
              return logoImage;
         public static void main(String[] args) {
              JFrame jf = new JFrame("testImage");
              Container cp = jf.getContentPane();
              cp.add(LogoImage.createImage("logo.gif"), BorderLayout.CENTER);
              jf.setVisible(true);
              jf.pack();
    }Now you can use this class anywhere in your pgram to add a JPanel

  • Is there way for me to import my yahoo email contacts into my mail application that i set up for yahoo?

    Is there way for me to import my yahoo email contacts into my mail application that i set up for yahoo?

    Yes I am using the in but app and set up using the yahoo option. I have moved the sliders to on for mail contacts calendar etc but I see nothing still. I have removed all other sources of contacts and still it's empty. Is there anyway to force a resync? Many thanks.

  • Import PSE 3 catalog & images into PSE 9

    Hi
    I have a new PC (Windows 7 64 bit), with the trial download of PE9 (and Premiere Elements 9) installed.  My old PC is Windows XP 32 bit with PSE3 (and Premiere Elements 1) installed.  The images are in "My Pictures" in the old XP PC, generally in date folders but with some folders with names not in the date sequence.   I have a full backup of my photo images made using Photoshop PSE3 backup onto an external hard drive.
    To check that my camera is recognised by the new PC I first downloaded images from my camera onto the new PC, and these have automatically been fetched into the Organizer catalog.  I have not yet formed any albums, or done anything else in Organiser or Editor.
    Now, how do I import the catalog (and images) created with PSE3 from the external hard drive into the new PC, so that the folders are in My Pictures in the same format?  I have looked in Help and in Forums and seen comments about importing and converting from earlier versions of PSE to PSE 9, but it's not clear to me how to do this - can you please advise?
    I have also downloaded some short video clips from my camcorder using Premiers Elements 9 trial.  These clips appear in Organiser in the Albums pane under a heading of Video Projects.  Does Organiser automatically put all video clips (or video projects) into Organiser in "Video Projects", and can this be disabled or  customised at all?  It seems at first a bit odd to me that Video clips and Still images are all in the same pane.
    Thanks in anticipation of your help.

    On the new computer, in PSE9, select File->Restore Catalog, and point it to the backup you made from PSE3. You will be given several options about restoring the photos, including one that is to original directory location.
    More details are here: http://kb2.adobe.com/cps/402/kb402894.html (which was written for PSE6, but applies to later versions of PSE as well)

  • Copy and then Past an Image into an APEX Application

    I need to allow my users to copy an image and then simply past it into my APEX application. Much like copy and past for text. Can this be done?

    No.. You would need some sort of client side app to do that - Active X, Silverlight, maybe Java, flash is possible but unlikely - Flex might.

  • Importing Word Docs with Images into RH7

    Hi All,
    I have a large Word doc which is full of images and text that
    I want to import into RH7. I've tried it and tried it, even
    converted it to PDF and tried it, but I don't get any of the images
    imported. I've discovered the images folder, but there's nothing in
    it and, just in case they're hidden(!), I've published and still no
    images.
    Can anyone help me with this?
    Thanks!

    No I have only been using it since Word 2 days. :-)
    Please don't mention the limit of 200 pages with graphics to
    my documents which can run to over twice that size.
    I repeat the point that if Word is struggling with this
    particular document, you cannot expect another application to work
    well with the document. RH does import Word documents with many
    images, it is something that I have done many times. I think the
    problem is something to do with the image type you have chosen
    (emz). If you look in the image import dialog you will see that EMZ
    is not a listed file type.
    Without being able to see your document, it is difficult to
    help you. Speak to your management. I regularly receive projects
    from people on this forum and nobody has ever had cause to
    complain. I would not risk losing the Adobe Community Expert status
    by revealing the content to anyone.

  • Importing a 2010 process image into LR5

    I've just exported as catalog 2 images from an older catalog ( process version 2010 into LR5. there was no way to automatically convert them to 2012 process.
    I had to turn on the calibration panel in Develop mode and then set it to 2012 and then copy the 2012 calibration to the other image.
    As a check, I checked this by exporting 1 image that was process version 2010 into LR5 and it automatically made it 2013,
    Then I checked it again, imported a catalog from LR 4.3 which had only process version 2010 images in. The import upgraded and disgarded the temp library used in the upgrade process, and again, there was no option to automatically convert the images to PV2013.
    See graphic below
    Which has to be a dropbox link as the add image is not working in Chrome this morning,
    https://dl.dropboxusercontent.com/u/39359917/LR5%20image%20from%20PV2010.png

    The icon to indicate a previous process version image has been changed and relocated. See the "Thunderbolt" icon underneath the Histogram. Clicking on that will give you the update option.

  • Importing PDF with vectora data into PS CS5?

    Hello,
    I've done some research, and have the feeling that what I'm asking for is not possible, but I just wanted to make sure, and see what other options there may be.
    Here's my situation:
    I'm trying to get an Excel sheet into a brochure-type document that I'm making in PS CS5. I would like the Excel data to still have that crisp look of the vector data, and be able to be scaled up or down, searched for, etc. I've got the Excel sheet saved as a PDF, looks fine when opened in Acrobat, etc... all the text is there, etc. When I go and open it in PS, it is all rasterized and loses it's clean look and the ability to size it up / down without losing the quality.
    Is there any way in Photoshop to make this possible? If not, what other options should I look into? I believe it's doable in Illustrator, but I'm not sure, and I'm just looking for some other options.
    Any help is much appreciated!
    Trevor

    Would I need both of these programs (Inkscape and Scribus) in order to do this? If so, are there any tutorials or anything that can help me out with it? I'm playing with the Inkscape program at the moment, but I'm new to it, so I'm not sure exactly what to do.
    Unfortunately, my 30 day trial of InDesign and Illustrator have expired, and I just don't have any real use other than getting a PDF into a Photoshop (psd) file. I'm hoping that as I progress, InDesign and Illustrator will be beneficial for me in other ways, which would justify the purchase a little further.
    If this is possible with the mentioned programs
    If you could give me any more insight, it would be much appreciated... Thanks a bunch!
    Trevor

  • I am importing 1000's of images into iPhoto and somehow have 5700 trying to download to Photostream. How can I stop this from happening?

    Setting up a new iMac and importing 1000's of pic's from various backup sources.
    Right now I have about 5700 images trying to download into Photostream as soon as I turn it on on the iMac
    I've tried logging into icloud.com and clicking my username to go to the "advanced" setting but the advance button is gone!
    Any suggestions? I still have a lot of pics to upload
    Thanks in advance

    Go to iPhoto's Photo Stream preference pane and uncheck the Automatic Upload checkbox.
    Then close and reopen iPhoto.
    OT

  • Why can't I import non photographic jpg images into iPhoto?

    I'd really love to use this feature as I have some vector based jpgs I'd loive to sue in a calendar! They are now jogs but when I try to import them it says
    " the file could not be imported" import failed

    What color profile are these pics? This kind of issue is often caused by importing CYMK or Greyscale pics to iPhoto which only supports RGB.
    Try open the pic in Preview, then use the Tools -> Inspector to check the color profile.
    Regards
    TD

  • Save my resume in pdf and then upload into an online application

    IPAD 3 G
    frankly I am DISGUSTED with the LACK of productivity available on the IPAD.
    i bought "THE BEST" so that I wouldn't be disappointed......what a rip off
    another writer said it best..... apples a good for CONSUMING MEDIA... surfing, email, etc
    BUT if you need to write or edit a document...you might as well pull out your ten year old PC laptop 
    Here is MY proof in the form of a question;
    HOW DO I SAVE MY RESUME IN A STANDARD FORMAT, DOC, DOCX OR PDF...IN MY IPAD AND THEN
    HOW DO I UPLOAD IT TO AN ONLINE JOB APPLICATION.
    PLEASE..... if you are going to refer  steps or apps THAT I HAVE TO DOWNLOAD / BUY PLEASE REFERE ......ONLY...
    to apps you have personally proofed.....
    I can...not....STAND....... this TOY......it is USELESS....AS  A  TOOL FOR PRODUCTIVITY.
    TALK ABOUT LOWERED EXPECTATIONS.
    so i just tried to select the type of equipment I am using..... AND IPAD 3 G isn't even on the list!!!!!!

    There is much to agree with on both sides of this argument. Yes it's just a tablet and not a full blown PC but at the same time, how pathetic it is if a website asks you to upload a document and all the iPad will do is look in the pictures folder? This is so frustrating that's it's actually quite annoying!
    So picture the scene, you've got a really important document or CV to upload to a generic website and all the iPad (or iPhone) can do is look straight at your photo's. GREAT, that'll really help me out, ...erm NO!!
    As a user we can't change the website and we can't certainly change the OS on the tablet so where does that leave you? That's right, going on a wild goose chase looking for a free app that will change your document into a picture, just so you can upload it. It's just not productive at all. And before you say get Dropbox or Onedrive etc, I already have them. The website your trying to upload to can't get past the 'straight to pictures' problem i mentioned above. Infinite loop ensues...
    To be honest, if your iPad or iPhone has Apple Pages on it, why doesn't the device allow you to choose from that as well? That would put an end to this lack of productivity and eventual apple device annoyance. So going back to your original complaint, I agree, I find my iPad to be more of a toy than a work station, and I will only change my mind when Pages is better integrated to be of actual use in Safari and other essential apps.

  • How do I import multiple images into single individual cells?

    Hi folks,
    I'm new to the Mac (yeah!) and imagine there just has to be a way to import a bunch of images into separate cells in Mac "Numbers" ... am I right?
    Essentially what I'd like to do is a file folder with 600 images in it, and import those directly into Mac Numbers with one picture being assigned to it's own cell. So if below were a spreadsheet it would look like this:
    Actual Picture - Picture Name - Item Description ... and so on.
    I'm trying to work with inventory items, and this is the only way I can think of doing it. Suggestions!?!?
    Here is a link to creating a macro in Excel to do a similar thing:
    http://en.kioskea.net/forum/affich-269046-adding-a-loop-to-macro-to-insert-pictu res
    Thanks for your help.
    D

    D,
    I guess you're taking another shot at getting a response. You risk getting parallel discussions going with the same content.
    What you are contemplating seems logical enough, but I think you will find that it is impractical in Numbers. Given the size of photograph files these days, you will choke Numbers in short order. You will have to be careful that you embed only photos large enough to be of use/viewable, and keep your full-sized copies elsewhere. You might find that an Apple Script can do the import for you, but otherwise it's drag and drop from the Media Browser.
    Jerry

Maybe you are looking for

  • How to create value objects from xml

    I am receiving xml back from my web service ( e4x ). I am trying to figure out how to create a value object without having to manually fetch each value in the value objects constructor. I am using introspecton in my Java web service to do this. Is th

  • How can I get embedded wave files to download as they do in Explorer and Chrome?

    Example: When I visit the web site of apostolictabernacle.us I hear music which is embedded on the home page if I use Explorer or Chrome but not when I use Firefox.

  • Can i use ip address to creae a Installaton key in SOLMAN

    Please let me know whether i can creae aSolution manager key by entering the ip address of the system . If so pls tell me the steps

  • Mystery Data and dual libraries.

    My MBP is starting to run very slow. I am trying to make more space on the system drive and have found I have two libraries; one slightly larger than the other. One is under MAC HD (25G) and one is under Users (39G)(There is also one in System but th

  • HSRP Group Limitation Problem

    Dear All, I have 2 3750 switches on which I need to configure HSRP for 26 VLANS. I have tried configuring one group for vlan 1 - 16 & second group next 16 VLANS. But i still get the error 'platform does not support more than 32 hsrp groups' What seem