Insert Image in PDF Programatically

I am trying to work with a pdf progamatically through FoxPro using objects:
createObject(”AcroExch.App”)
createObject(”AcroExch.AvDoc”)
createObject(”AcroExch.PDDoc”)
I am able to open acrobat, add / delete pages, fill in some fields with the “AFormAut.App” object. and finally print the pdf.
I print Hundreds of books for students in our college, each student gets a book specificaly tailered for the student.
Everything goes programatically.
Now I want to insert images into the pdf, also programatilcally.
I cant find a which object to work with?
I wish there was a way to do it just as I did with the things i mentioned above.
Any help would be greatly appreciated.

hi guillermo,
than put your image in the dest-->images folder and use the following coding:
public static String getImageUrl(IPortalComponentRequest request, String imageName) {
  StringBuffer buffer = new StringBuffer(1024);
  HttpServletRequest httpRequest = request.getServletRequest();
  String protocoll = (httpRequest.isSecure())? "https" : "http";
  buffer.append(protocoll)
    .append("://")
    .append(httpRequest.getServerName())
    .append(httpRequest.getServerPort())
    .append(request.getWebResourcePath())
    .append("/images/")
    .append(imageName);
  return buffer.toString();
regards, jens

Similar Messages

  • Insert image in pdf Document

    Hi,
    I've a model and this model, I show in pdf. I Know insert rows and columns and pdf document (PdfPtable, PdfPCell...),but I don't know insert a image in the pdf document. How can I do it?
    Thanks

    hi guillermo,
    than put your image in the dest-->images folder and use the following coding:
    public static String getImageUrl(IPortalComponentRequest request, String imageName) {
      StringBuffer buffer = new StringBuffer(1024);
      HttpServletRequest httpRequest = request.getServletRequest();
      String protocoll = (httpRequest.isSecure())? "https" : "http";
      buffer.append(protocoll)
        .append("://")
        .append(httpRequest.getServerName())
        .append(httpRequest.getServerPort())
        .append(request.getWebResourcePath())
        .append("/images/")
        .append(imageName);
      return buffer.toString();
    regards, jens

  • Insert image into PDF comes up blank

    When Adding a logo to a PDF using Acrobat 11 it either inserts and displays as blank or throws up the error message "insufficient data for an image".
    Any ideas?

    Hi mnsafb,
    Considering this error message, I would recommend you to try reducing the zoom factor or go to Edit> Preferences> Page Display> Zoom and choose 'Fit page'  option or
    you can save the PDF file as Optimized PDF by going to Save as Other> Optimized PDF or Reduced Size PDF
    Please let me know if it works for you or not.
    Regards,
    Anubha

  • Insert Image into PDF

    I have added a button to a PDF document whcih links to file to display jpeg..which works great.  But I would like to hoover over the button and have the jpeg image appear in the PDF document like a Pop up.  I am working with "Acrobat 9 Standard"

    The answer to this question can be found at
    http://forums.adobe.com/message/2969560#2969560

  • Convert inserted images from MSWord to PDF?

    I have Acrobat 9 installed on two computers.  My desktop Acrobat will convert MSWord text and inserted images into PDF files.  My laptop Acrobat will convert identical MSWord text but not images into PDF - text appears as if no image was present (no wrap).  I have checked Preferences and JPG appears OK.  Same result whether using Acrobat's Create PDF from File, or MSWord's Acrobat tab.  What should I do to fix Acrobat 9 on my laptop?  Both computers on Windows 7 64-bit.

    Thanks to both answers above - it's a MSWord issue, not Acrobat.  No inserts (images, text box, charts, etc) will print to any destination (printer or PDF). 
    I have initiated correspondence with the MS forum, but if either of you know how to "configure Word' to print images" your advice would be welcome.  I have searched Word options and find no button to enable/disable printing of inserted images.
    Best regards,
    Carlo

  • Inserted images leave ghost outline in PDF

    I have never had this problem but am in the middle of producing a large document with multiple inserted images. When I output as a PDF, some - but not all - of the images show a very faint gray outline - almost as if I had created a pencil thin frame in gray. I have tried inserting both JPEG and PDF files of the same images but with the result is the same. The images are predominantly charts and graphs with white back grounds so the unintended frame is a problem.
    Thanks for any suggestions of solutions.

    Chris
    I examined the .pdf structure in Illustrator and the hairline is actually the revealed edge of a grey background behind the graph where the trimbox appears.
    The structure is a little complicated. Basically the whole of the .pdf of the table which you created from Numbers has the grey background, which is then masked by the trimbox you created in Preview when you cropped it.
    You need to go back to the original Numbers' tables to see what the grey background is there that could be causing the masked grey object.
    Alternately, don't trim the table in Preview. Just bring the whole untrimmed graph into Pages into an image box, which you then mask to trim out the unwanted elements.
    Peter

  • Images or pdf not inserted anymore in Mail

    Hello,
    my images or PDF are not "inserted " in my mail messages anymore
    the only show as an attachment
    How do I bring back the "inserted"
    what terminal commandto re-activate "insert docs (jpg, QT, PDF) within email

    Hi,
    what you are seeing is just the way the message is displayed for you on your Mac. There's no difference in sending (an receiving) the mail whether you used icon view or the full preview while composing the message. Even though you might have set it to show the image directly as a full preview while composing, the receiver's mail client might be set up to always show attachments as icons and not inline.
    To switch the view for you while composing simply right-click on the image, pdf, etc. and select *View as Icon* or *View in Place*.
    It's one of Mail's annoyances that there's no option to always use one specific view mode. It automatitcally decides what to do. That is, everything is shown +in place+ unless it reaches a certain file size or is a multi-page document (pdf).
    Björn

  • Insert image into a .pdf using InDesign

    Can I insert image into a .pdf using InDesign....

    You can place a PDF as an image in InDesign, then add more content and export a new PDF.
    There are also commercial plugins available that will allow you to open a PDF as editable objects in InDesign.

  • How can I insert an Image into PDF document programmatically?

    I am trying to work with a pdf programmatically through FoxPro using objects:
    createObject(”AcroExch.App”)
    createObject(”AcroExch.AvDoc”)
    createObject(”AcroExch.PDDoc”)
    I am able to open acrobat, add / delete pages, fill in some fields with the “AFormAut.App” object. and finally print the pdf.
    I print Hundreds of books for students in our college, each student gets a book specificaly tailered for the student.
    Everything goes programmatically.
    Now I want to insert images into the pdf, also programmatically.
    I cant find a which object to work with?
    I wish there was a way to do it just as I did with the things i mentioned above.
    Any help would be greatly appreciated.

    Thanks,
    So where do I goet the plugins or how do I know which plugin would enable me
    to work with images?
    Now I got to another thing that I need, I need to flatten pdf
    programmatically, and don't know how.

  • "View in Place" inline images and PDFs in Yosemite Mail

    I'd like to have the "View in Place" option available for images and PDFs, but it appears to be missing in Yosemite Mail. It would be particularly helpful with this new Markup feature. Any ideas how I might do this?

    When I drag a PDF or an image (TIFF, JPEG, etc.) into the body of an Apple Mail message, I see an icon of that file.
    There used to be a contextual menu option to "View as Icon" or "View as Image" in previous iterations of Mail, but now with Yosemite, I am only able to send the message with the image or PDF file viewed as an icon. As a comparison, when Composing a message in the Gmail desktop web interface, you can click on the Insert Image Icon, and you are given the option to insert the image "Inline" or "As attachment." I like having both options and I wonder if there is a Terminal command or third-party solution to restore this functionality.

  • How to avoid "images" folder in programatic exporting of.rpt files to HTML

    In C#, When crystal reports is programatically exported to HTML format, the result is a folder bundled with .htm files and a folder called "images" which holds the .png files associated with these .htm.
    My requirement is to have both the .htm files and the graphic files(i.e. '.png' files) in the same folder and do not want a new folder "images" to be created.
    This creation of "images" folder does not happen when we manually export cryatal reports to html format.
    Kindly suggest, How can we avoid the creation of this "images" folder when programatically exported to html format ?
    Following is the approach used to export to HTML format.
    ReportDocument mreportDocumentObject_
    mreportDocumentObject = new ReportDocument();_
    ExportOptions exportOptions = new ExportOptions();
    exportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
    exportOptions.ExportFormatType = ExportFormatType.HTML40;
    HTMLFormatOptions htmlFormatOptions = new HTMLFormatOptions();
    htmlFormatOptions.HTMLBaseFolderName = folderName;
    htmlFormatOptions.HTMLFileName = fileName;
    htmlFormatOptions.HTMLEnableSeparatedPages = bHTMLEnableSeparatedPages;
    htmlFormatOptions.HTMLHasPageNavigator = bHTMLHasPageNavigator;
    exportOptions.FormatOptions = htmlFormatOptions;
    mreportDocumentObject.Export(exportOptions);_
    Edited by: GuruRaj01583 on Jul 23, 2009 1:23 PM

    HI David,
    I have a requirement to e-mail the exported html report. When i e-mail the attachments (i.e .htm file and .png file with in the images folder) , The reciever has to save the .htm file into a folder(say X) and with in the same folder 'X'  he has to create a 'images' folder and save the .png file into it. Only then .htm file will load the appropriate ".png".(I believe It is internally designed in .htm to load the .png files from 'images' folder). SO it becomes additional work for the user to save these attachments in folder structure as explained above.
    There is another scenario to store the reports into database which requires .htm and .png to be in the same folder.
    These are above scenarios where images folder is causing the problem.
    I have exported the reports to other formats (i.e. xls, pdf, rtf, txt) and those work fine. Supporting .html format as part of the above requirement is where i am stuck.
    I wanted to confirm whether creation of 'images' folder in CR .NET SDK IS BY DESIGN ?
    If that is confirmed and if there is NO work around to get the .htm file and .png file into same folder, then we can re - think on our requirement.
    Kindly confirm the above or Kindly suggest any work around if available .
    Thank You.

  • Insert Link and Insert Image broken in Chrome

    The Insert Link and Insert Image buttons have been broken in my Chrome for at least the last couple of days (latest version, 32.0.1700.72 m, Windows 7 64).  
    When you click one of the buttons, the overlay window appears with a title, but it is otherwise black with no contents.  (See screenshot below.)
    The buttons work fine in Firefox.  What hasn't helped: deleting cookies, clearing the browser cache, waiting for several minutes for their content to appear.

    Whtat are we supposed to Claudio? All descend on Adobe with  clubs and try to beat some sense into someone!
    The fact is the customer is no longer the prime concern. Most companies don't give a Rats behind (toned down to prevent censors action) about the customers. It's the almighty dollar. Screw as many customers as they can while they can and line their pockets with all the green backs  as they can while they can. Then if the cusomers leave so be they take their money and run.
    Customer use to have power, they would speak loud and frequently and get things  fixed. And what with people from other countries now owning US companies, That were brought up with different moral compasses. They have no concept of this thing of loyalty to customers. The customer can jump off a cliff and they will simply cheer them on while the do so.
    We have lost, the fight can't be won. It no use. So Pat and others are right.
    I've been trying for 15 years for adobe to fix the issue of having multiple Pdfs created from Office documents because the claim they can't figure out how MS does Page and section breaks. And the issue of Weblinks not being active when converted to PDF's Both on Mac's yet on PC's there is no issue. I quite this year after I received a down right nasty not from Adobe say they didn't have any interest in fixing the bugs and were not about to try. What it amounted was go take a flying leap.
    They have the ability. They have beenblaming Its apple because they don't do such and such , or Microsoft because they don't do so and such. On the Links issue Saying MS doesn't provided the necessary hooks in the mac version of Office. They do you can take a Word document created on a Mac and open a PC and create a PDF and the links will be active. You can Open a Word Document in Apple's pages and all links created in Office document will be there.  The argument has been proven several different ways to be a an outright bald-faced lie. The defect is squarely with the Mac version of Acrobat.
    So Pat and others are right. Just throw in that towel. Adobe support of its customers is now 10 times worse than intuit's which is supposed have the lowest reputation of any software compny that ever existed.

  • Insert phots to PDF forms a problem in Acrobat 9.0 pro

    I'm trying to figure out a way to insert image files into a PDF form. Ultimately I want to distribute this PDF form and allow the users the opportunity to insert their own picture. Unfortunately, there's no tool for this on the interface that I can find. I'm also very new to Acrobat, so that could be the reason.
    The only way I was even able to do something like this was to use the watermark tool. But users of this form won't have Acrobat 9 or Pro to use to add their own picture. Is there a way to accomplish this so that users with Acrobat Readers will be able to do this?

    Ted Padova has a blog on Enabling Adobe Reader Users Options for Importing Images on Forms that explains how to do this on AcrobatUsers.com at:
    http://www.acrobatusers.com/blogs/tedpadova/2007/10/09/enabling-adobe-reader-users-options -for-importing-images-on-forms/

  • Is it possible to insert images in Adobe 9 Standard?

    It appears that it is not possible to insert images in Adobe 9 Standard.  There is no TouchUp Object Tool in the Advanced Editing Toolbar in the standard version.  Only a TouchUp Text Tool.  Is this not a basic function being able to add or change an image in a document?  The tutorials all show this as a capability but they are also demonstrating in the Pro version of Acrobat.  Is there a work around or have I been suckered into buying a product that doesn't quite meet my needs? 

    The Touch-Up Object tool is not available in Standard.
    Adobe Acrobat is not meant to be a word processing program; it is meant to be a cross-platform method for document exchange. Changes are best made in the source program. While the answer to your question would not have been obvious from this list, it is a good reference for the difference between Acrobat products: http://www.adobe.com/products/acrobat/matrix.html .
    If for some reason it is not possible to edit the source file and create the pdf again, you can insert your image as a form button and then flatten it. A lot more work, but post if you want help with this.
    --For other folks reading this thread, Adobe offers trials of its programs. Consider testing before buying.

  • Inserting Multiple Page PDF in Word Document

    I've been searching for an answer to what I thing ought to be a rather simple question and I can find nothing. I have a couple of users who have attempted to insert a multiple page PDF into a Word document and found that only the first page of the PDF
    shows up in their document. Is there any method to insert multiple page PDFs into Word as multiple pages without splitting the PDF into individual single page files and inserting individually?
    Thanks...Ray

    A quick and dirty way to do this is to open the pdf document in question with word separately.   You get the following warning message.
    I can then select all and copy/paste in to my word document.
    The few pdfs I tried this with pretty much turned in to all images when I did this, but it worked my purposes.
    I did end up having to resize one that didn't seem to want to fit when I pasted it in.  There may be a method to select an image and automatically fit it within the margins of the page it is on that would help that.
    The file size on my resulting word document seemed to grow quite a bit as well.  Again, not really an issue in my case though.

Maybe you are looking for