Help adding an image to PDF with buttonImportIcon

Hi, hoping someone can help me with what I am pulling my hair out.

I create a button using the addfield as follows

var cFileName = "somepathhere/filename.pdf ';

var oFld = this.addField ("ButtImage", "buton", this.pageNum, [222,417,363,496]);

If (oFld! = null)

{

oFld.buttonPosition = position.iconOnly;

oFld.borderStyle = border.s;

oFld.textColor = color.black;

oFld.lineWidth = 1;

}

try {}

MyImportIcon (this.getField ("ButtImage"), cFileName);

} catch (e) {}

Console.println ("error importing Signature Image")

}

then I have a separate file js MyImportIcon.js

var MyImportIcon = app.trustedFunction (function (oFld, cPath)

{

app.beginPriv ();

If (cPath! = null)

{

oFld.buttonImportIcon (cPath, 0);

}

on the other

{

oFld.buttonImportIcon ();

{

app.endPriv ();

});

When this code all the races I get no error in the console, a button is created in the pdf file but it is empty and no icon is set.

I am running Acrobat X Standard.

Thanks in advance for your answers.

Make sure that you use a path independent of the device for the file.

Tags: Acrobat

Similar Questions

  • NEED HELP URGENT! Folio in PDF with Full-Paged background pictures are not sharp.

    Hi all

    So already I was allowed to create a version of SD and HD of my magazine app (Single-Edition with CC of course), but I'm now ready to explore the areas of the design of a single PDF, folio, which is supposed to be just as keen on the retina as well as the mini iPad iPads and lower.

    I tend to use a lot of images full paged in my design and while testing on my iPad retina via Content Viewer, I already spotted that my paged images are not as sharp. It really bothers me!

    In InDesign, I see the iPad preset (1024px 768px), folio Viewer used is the current v. 26 and all items, but also the folio itself, is made in PDF format.

    Finally, (it's the bit I'm also not too sure of), I use images high resolution and I'm affecting the native 246-iPad retina ppi ppi. Is this fair? I set my expectations too high?

    HELP PLEASE!

    Images in PDF folios are pixelated to 108 ppi. To halfway between 72 and 144.

    I don't know what you expect here.

    Bob

  • HELP ME PLEASE! Dynamic PDF with the table increases each time he has saved and reopened? HELP PLEASE!

    Hi, I hope someone can help me. I created a form (dynamic pdf) with Livecycle ES 8.2.

    This document contains a table whose rows are added when the user clicks a button.

    The document in the design stage contains no more than 1/2 an A4. Here are my two problems;

    1. when the document is opened in Reader (9.3), it is formatted correctly to accept the line after line, it's default state (which can be added to by clicking on the button) is now three rows?

    2. the question whether the two additional lines are deleted or populated or if several lines are added and populated, if the document is saved and opened again with the player, he became a full page (default empty lines). If saved, it grows up to 4 pages and so on.

    Can someone help me please. I can provide a copy of my file if necessary.

    I don't know if that makes a difference, but the document is protected with a password to open in Livecycle and it also has user rights assigned to the user to be able to save a copy on their local machine (not only allowed to fill and print).

    My email is [email protected]

    Would appreciate any help that can be offered. My document is ready (accept for that matter) for me to use in my work.

    Concerning

    Bradd

    Bradd,

    Please send the form and I can take a look. If you wish to send a version of the form that is not password protected or send the password in a separate email, it is up to you.

    stwalker. [email protected]

    Steve

  • Adding an image to PDF on mobile

    I create pdf documents and to complete on my laptop but I need to insert a picture into the document. Adobe x 1 pro can do this

    Adobe Acrobat is not available on mobile devices. Adobe Reader, which is available for the Android and iOS devices, does not support adding images. Or the player on Mac and Windows.

  • Need help. import of images in timeline with different length.

    Need help can't find old toturial
    I'm doing a model for a photo film where I have everything ready so I just need to add 250 pictures and then it will automatically move the photos to the beat of the music. Once, I saw a toturial how to do this but can't find it. It's something with manual adjustment of markers to the music beat and then just add all the photos. but I must have missed something pls help...

    Bo

    Its called automate to sequence with no numbered markers.

    http://TV.Adobe.com/watch/learn-Premiere-Pro-CS5/GS04-making-a-rough-cut-in-Adobe-Premiere - pro.

    http://help.Adobe.com/en_US/PremierePro/CS/using/WS1c9bc5c2e465a58a91cf0b1038518aef7-7d1ba .html

  • Cannot create pdf with the same page size

    Hello

    I installed Adobe Acrobat Professional (writer). And created a pdf document. the pdf file contains images, each on his page. The problem is when I save or preview the document, some images are not sized for his area of page (or fit to page). Please check attached picture to see the problem.

    How can I add images to PDF with eqal size.

    Please check attached picture Pdfsnap1 & Pdfsnap2 (used the crop tool)...

    Someone helped me to visit the following link for the solution:

    http://forums.adobe.com/thread/841095

    Above the provided Adobe forum link is good, but 50% of my problem is solved. In other words, the selection of the image and using her crop tool 'page size' is increased, but the image on the page is still small, or it does not increase with the size of the page.

    Concerning

    Nauman

    pdfsnap.JPGpdfsnap2.JPG

    To resize the image, you need to select with the object tool and drag the buttons on the sides and the corners to resize it.

    Much of what you do can be done in Acrobat, but this isn't the ideal application for such actions. Acrobat isn't really an editing tool, but a tool to create a finished product that provides essentially platform independent product. You might find what you want to do is best done in a word processor or page layout tool, then a PDF file created from this result.

  • Help adding textfield with drop-down list selects

    I have a PDF with a drop-down list field called "SoftwareList" with a default value of "Select the software" and a text field called 'SelectedSoftware '. You can freely type in the text field to communicate your needs, or choose the menu drop-down. I want to add in the text field, which is selected in the drop-down list each time. I had the following script to fix this as a custom text field calculation script:

    If (this.getField("SoftwareList").value! = "Select software")

    {

    this.getField("SelectedSoftware").value += this.getField("SoftwareList").value + «»

    }

    The problem I have is that it will continue to add to the text box with everything that was selected last in the drop-down list when you click on other fields in the form, such as check boxes. I tried this put on different actions both at the key sequence in the Properties tab of format, but did not work there. I added the following line, which helped, but it is still a click of the addition until it changes, duplicate the last pick:

    this.getField("SoftwareList").value = "select the software."

    Appreciate help with this.

    I would like to use the script validation custom from the drop-down list. You can use something like this:

    If (event.value! = 'Select Software') this.getField("SelectedSoftware").value += event.value + ",";

    To ensure that the update as soon as a selection is made to check the option to validate the selected value immediately under properties of the menu drop down, tab Options.

  • problem with image and pdf files to print

    Hello

    When I want to print images and PDF files in windows 7, it takes too much RAM space so small capacity it has (for example, the file has 52 KB capacity, but it takes 21 MB of RAM)

    and I have to wait until this file (image or PDF) completely buffered in RAM, and that is problematic for me.

    Help me please.

    Thank you

    Hello Amirafshari,

    Thanks for posting your query on the Microsoft Community.

    We need to know the following information to isolate the problem:

    1. When you print files no PDF, you have the same problem?
    2. What are the specs of your PC?
    3. Where are the files located? Is this an internal or external storage device?
      • If the file is located in your external storage space, you can transfer into your internal storage space first before printing.
    4. Have you tried the activation and deactivation of your print spooler? If this isn't the case, please follow the steps below:
      • Go to CMD.
      • Type "net stop spooler" and press ENTER to stop the spooler.
      • Type "net start spooler" and press ENTER to re start the spooler.

    Let us know how things are going.

    Kind regards

    Jamille Nar

  • PDF with Images - layers of white text showing on picture - how to remove?

    Hi all, I was sent a multi-page pdf. When I go online (in firefox or chrome), the pdf file seems perfect. When I print the pdf and then open the PDF on my system, it shows the pdf with white text on any word. I opened the PDF in illustrator and saw immediately that there is a layer of white text. If I delete the layer, everything looks ok.

    The layer of fonts on all pages are presented. They are not necessary, how do I remove the layer of outline fonts in acrobat? Its a huge file with many pages.

    So firstly I would like to know what has caused this? What is an accessibility issue forced? Second how to remove all text white file so that I can see actually correctly?

    Difficulty.

    Open pdf file and using preflight. Clicked on the key and sought to "create different layers for text vector image. Since there are no layers. It will ask you to save the pdf file. Save, then open the layers and uncheck vector layers. Return to the preflight and key key and double-click on the content of the layer lay hidden and flatten visible layers. It will ask you to register.

    New file will now appear not text. Acrobat documents it's terrible!

  • Import the form pdf with image vs Android Tablet

    I have an android tablet. I created a PDF form that includes a button to import image. However, it seems that android does not support the JavaScript button to import a photo. Is there a way around this or another way to do part of the work of form?

    No. I am aware word of any mobile application for android that can do an import of the image.

    With mobile devices iOS expert PDF can import images from the camera of devices.

  • Creating PDF with a page of my PDF links I can't scroll or view, PDF document jumps to the next page. Help!

    Hi Forum,

    I created a page 14 PDF with Adobe Acrobat XI. When I try to view the page 13 (scrolling or just by clicking on the thumbnails page) it jumps more than 13 or 14 or goes back to 12. It started after the creation of links in the PDF file in the pages of 2nd and 3rd to some page views. Is there a maximum? Right now, I have about 20 or more in the document. I updated Adobe and restarted my machine. Same problem exists. Thank you!

    Too bad! I just thought of it. I had a link on the page which, for some reason, was set to open up to page 12. Not sure how it happened. Oy!

    Thanks a lot for your help.

    Doug

  • Please add the option of power/link to download new pdfs with editing in the browser. I have a restaurant customer who is constantly updating their menu! Please help so that they can do it themselves!

    Please add the option of power/link to download new pdfs with editing in the browser. I have a restaurant customer who is constantly updating their menu! Please help so that they can do it themselves!

    Not the answer you want, but you could set up your quick customer with an ftp upload which would replace the existing pdf. I use Transmit and it would allow your customer to simply drag and drop on a folder.

  • PDFs with parts of the text have been highlighted, and now, suddenly, these docs print without the appropriate text highlighted. Never happened before. As seen on the screen, highlighting appears, but when you print, it's gone.  Help, please.

    PDFs with parts of the text have been highlighted, and now, suddenly, these docs print without the appropriate text highlighted. Never happened before. As seen on the screen, highlighting appears, but when you print, it's gone.  Help, please.

    Try to turn on the print with comments. The comments really are your strengths.

  • PDF with images in accordance with ADA in MS Word

    How can I create a PDF file in accordance with ADA in MS Word using Acrobat 9 Pro 10?

    Another place to ask in the forum standards & accessibility: http://forums.adobe.com/community/acrobat/accessibility_%26_standards

    I do not have Word 2010, but in Word 2007, you specify the text of an image by right-clicking on the image, select size (of all things!), and there is a 'Alt text' tab where you can enter the text you want. Then convert to PDF with PDFMaker, as opposed to printing on the printer, while he is marked. There is much more to creating an accessible document, and more in the other forum people are useful.

  • InDesign CS6 - interactive pdf with hidden image may not be print

    Hi all

    I create an interactive pdf with function "hidden so that triggered" when rolling to apper and spread up to disapper and also choose a "Printable" function (button and Forms / Options PDF / printable).

    The image can be print when opened at the beginning, but after the outbreak of these image skins... these images cant be just print!

    Is it possible to print the image hidden after the outbreak?

    Thank you

    Pressumably a question of Indesign.

    Try posting in the Indesign forum

    http://forums.Adobe.com/community/InDesign/indesign_general

Maybe you are looking for