Print Page | Close Window

Script for outputting page numbers into a table

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=1212
Printed Date: 22 Oct 2019 at 3:19pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Script for outputting page numbers into a table
Posted By: Newbee007
Subject: Script for outputting page numbers into a table
Date Posted: 23 May 2014 at 6:26pm
Hello,

My company has a pdf catalog of all the products it sells. There are product codes in different sections for ordering purposes.

I was wondering if there is a way for me to add a script that will either prompt the user for a product code or a list of codes and then search the pdf file for the product code and output the page number where the product code is. 

There is a excel sheet we use to write the product codes and page numbers in the catalog when making a quotation and i would love to automate this process.

I do not know if it is even possible, but I would like to hear if you guys have any suggestions or point me in the right direction. If anyone has done anything similar and is willing to share It would be very helpful!!

Also if the pdf document was placed into a pdf portfolio will this work?

Thank you for taking the time to help me.



Replies:
Posted By: try67
Date Posted: 24 May 2014 at 10:01am
It's possible, but why re-invent the wheel? They can just use the built-in Find or Advanced Search features of Acrobat/Reader and get pretty much the same results...


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


Posted By: Newbee007
Date Posted: 24 May 2014 at 5:26pm
Hi,

thanks for the reply, yes that is how we do it today but sometimes the excel sheet could have more than 30 product codes and copying and pasting and scrolling to see the page number is really time consuming, I am trying to automate the process so that It automatically outputs the page numbers for a single product code or a group of product codes.




Posted By: try67
Date Posted: 24 May 2014 at 5:32pm
OK, I see. Well, if you wish I could develop for you a script that will do that... Contact me privately to discuss it further.


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


Posted By: gkaiseril
Date Posted: 24 May 2014 at 9:08pm
With the media distributed version of Acrobat, Adobe included a sample catalog with arrays containing the item number, description, and price. These arrays were used to populate the items in the catalog.



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