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

New Here ,
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

877

Likes

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

Adobe Community Professional , Jul 04, 2019 Jul 04, 2019
You can use the VB Javascript bridge. Documentation is in the Acrobat SDK.

Likes

Translate

Translate
Adobe Community Professional ,
Jul 09, 2019 Jul 09, 2019

Copy link to clipboard

Copied

Try this:

blnAnnotations = jso.CheckAnnots(jso, 0)

Likes

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 ,
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

Likes

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.

Likes

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