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

Add a search function

Community Beginner ,
Aug 30, 2018 Aug 30, 2018

Copy link to clipboard

Copied

Hello

Is there a way to add a search function to an interactive PDF when viewed in a browser (ie NOT Acrobat reader).

I have found a method using this Javascript:

var textToSearch = this.getField("Search Term").valueAsString;

if (textToSearch!="") search.query(textToSearch, "ActiveDoc");

But, when viewed through a browser it does work.

Am I asking the impossible?

Many thanks

TOPICS
Acrobat SDK and JavaScript

Views

566

Translate

Translate

Report

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 Beginner , Aug 30, 2018 Aug 30, 2018

OK - Many thanks try67.

I thought this might be the case, but worth an ask on here just in case

Votes

Translate

Translate
Community Expert ,
Aug 30, 2018 Aug 30, 2018

Copy link to clipboard

Copied

What browser are you using? What PDF plugin is being used in it to display

the file?

Votes

Translate

Translate

Report

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 Beginner ,
Aug 30, 2018 Aug 30, 2018

Copy link to clipboard

Copied

I'm using safari - however my client will be using different browsers across different locations and on different systems.

A mine field I know…

Votes

Translate

Translate

Report

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 ,
Aug 30, 2018 Aug 30, 2018

Copy link to clipboard

Copied

There's no real way to ensure it will work if the file is opened inside a browser window, as most browsers use their own PDF plugins, and those plugins are not likely to execute the code correctly. For best results instruct the users to download the file and open it in Adobe Reader.

Votes

Translate

Translate

Report

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 Beginner ,
Aug 30, 2018 Aug 30, 2018

Copy link to clipboard

Copied

OK - Many thanks try67.

I thought this might be the case, but worth an ask on here just in case

Votes

Translate

Translate

Report

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
New Here ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

  1. 415.03701855

Votes

Translate

Translate

Report

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
New Here ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

LATEST

SSH connect </8178.rtlw.443--behind/trapplanvs_pdfnotepad/h9ming-v7--ghost/aistart>

 

Votes

Translate

Translate

Report

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