Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I allow User in insert image file

Explorer ,
Feb 03, 2016 Feb 03, 2016

Using Pro 10 when i test it in pro i can insert any file i like, When i try it in Reader i can only select PDF files.

Also on a side note how do i give them the option to see the clear image button i know it's not   event.target.buttonClearIcon();

this is the JS i am using

// Prompt user to select file to display in this button

event.target.buttonImportIcon();

TOPICS
Acrobat SDK and JavaScript , Windows
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 03, 2016 Feb 03, 2016

Wrong. It will work in Reader (XI or higher), but you will only be able to select PDF files as the image. This is done on purpose by Adobe.

Translate
Adobe Employee ,
Feb 03, 2016 Feb 03, 2016

Hi jasonz82977625,

Would like to inform you that Acrobat Pro (paid service) is a pdf editor using which you may create other files as Pdf but Acrobat Reader (free service) is only for opening the pdf files.

All these functionalities will not work in Reader.


Regards,

Yatharth 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 03, 2016 Feb 03, 2016

Wrong. It will work in Reader (XI or higher), but you will only be able to select PDF files as the image. This is done on purpose by Adobe.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 03, 2016 Feb 03, 2016

Ok well i guess that's a work around just tell them to convert the image to PDF but what about the clear image button.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 03, 2016 Feb 03, 2016

There's no such option, as far as I'm aware.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 03, 2016 Feb 03, 2016

You can use JavaScript to reset the button icon to nothing as discussed in this previous thread: Script to reset the icon of a button

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 03, 2016 Feb 03, 2016
LATEST

Thx George Johnson adding a button to clear the image works

try67 thx for the help again it suck that in reader you can only insert a PDF and not a JPG, it would be nice if they would let user pick for a small list of file types.

  1. var oIconClear = getField("buttonClear").buttonGetIcon({nFace: 0}); 
  2. getField("b1").buttonSetIcon({oIcon: oIconClear, nFace: 0});
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines