Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Need JS to find duplicates in PDF
  FAQ FAQ  Forum Search   Register Register  Login Login


Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Need JS to find duplicates in PDF

 Post Reply Post Reply
Author
Abhijit View Drop Down
New Member
New Member
Avatar

Joined: 10 May 2013
Location: Karnataka
Points: 4
Post Options Post Options   Quote Abhijit Quote  Post ReplyReply Direct Link To This Post Topic: Need JS to find duplicates in PDF
    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

Back to Top
Sponsored Links


Back to Top
try67 View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Points: 628
Post Options Post Options   Quote try67 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Abhijit View Drop Down
New Member
New Member
Avatar

Joined: 10 May 2013
Location: Karnataka
Points: 4
Post Options Post Options   Quote Abhijit Quote  Post ReplyReply Direct Link To This Post 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???
Back to Top
try67 View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Points: 628
Post Options Post Options   Quote try67 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.047 seconds.