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

How to check if a PDF Page has no annotations like comments or Fill and Sign

Community Beginner ,
Jul 02, 2019 Jul 02, 2019

Copy link to clipboard

Copied

Hello,

is it possible to check if a PDF page has no annotations like comments of Fill and Sign. I'm working with Adobe Acrobat and VBA.

I need a function with result =  false if there is no Comment or Fill and Sign on a page of a PDF document. I hope someone can help me with a little bit code.

Best Regards from Germany

Josua

TOPICS
Acrobat SDK and JavaScript

Views

4.5K

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 Expert , Jul 04, 2019 Jul 04, 2019

You can use the VB Javascript bridge. Documentation is in the Acrobat SDK.

Votes

Translate

Translate
Community Expert ,
Jul 09, 2019 Jul 09, 2019

Copy link to clipboard

Copied

Try this:

blnAnnotations = jso.CheckAnnots(jso, 0)

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 ,
Jul 09, 2019 Jul 09, 2019

Copy link to clipboard

Copied

LATEST

Hello Bernd,

blnAnnotations = jso.CheckAnnots(jso, 0)   works wonderful.  Thank you very much.

I tested successfully with argument jso.  Now I can checkfrom VBA Code if a PDF Page has got Annotations.

Best Regards

Josua

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
LEGEND ,
Jul 08, 2019 Jul 08, 2019

Copy link to clipboard

Copied

You don’t need to make and call a function. You can’t define functions through JSObject so far as 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