Print Page | Close Window

Need JS to find duplicates in PDF

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=803
Printed Date: 17 Jul 2019 at 2:25pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Need JS to find duplicates in PDF
Posted By: Abhijit
Subject: Need JS to find duplicates in PDF
Date Posted: 10 May 2013 at 8:19am
How do i find out duplicate fields with the same field name in whole PDF? do i hav any javascript for that??? kindly help




Replies:
Posted By: try67
Date Posted: 10 May 2013 at 9:30am
You can look at the page property of a field. It if it not a radio-button (or in some cases a check-box) and it an array then there are duplicate copies of that field. If it's a number then there's only one unique copy.

-------------
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com


Posted By: Abhijit
Date Posted: 10 May 2013 at 1:00pm
Assume that i am having some fields like "F1" to "F100" and in between some fields have been duplicated like "F2" "F6" "F8". Is it possible to find out the duplicated fileds by using javascripts???


Posted By: try67
Date Posted: 10 May 2013 at 1:02pm
Based on just the export value? Yeah, sure. You'll need to use a double-loop that compares their exportValues property.

-------------
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net