Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Browsing all 12130 articles
Browse latest View live

JavaScript to store the file open count in a text file

Hi,Can we write a javascript in pdf such that when the pdf file is opened, the file open count is stored in a text file locally. Every time, the pdf file is opened, the count should be incremented in...

View Article


Keep Text in Uppercase

I am using Adobe Acrobat 9 Standard. I have script to change lowercase to uppercase in many form fields on a PDF. But if I return to the field that has already changed lowercase to uppercase, it goes...

View Article


Script inquiry (help please :) - Crop PDF and save as JPG

I'm sure this will be an easy one for some of you. I want to have a script that takes a PDF of a cover file (usually very wide since it's printed along the front, spine, and back of the book), crops...

View Article

Rounding down.

It's a simple formula. (X-10)/2 rounded down to the nearest whole number. This is what I have so far: var a = this.getField("str") event.value = (a.value -10)/2 But that just does the math part, and...

View Article

Image in dialog(execdialog)

Hy,I would like to insert an image in a dialog. And the resulting PDF should be visible in Acrobat Reader too.Here is my script without the image:=========================================var oDlg ={...

View Article


Printing a PDF via Acrobat Javascript

Hi - I have a need to print a PDF programmatically, via Javascript.  The PDF is embedded in a Web page.  I use postMessage to communicate with the PDF. I've created a simple HTML page with an embedded...

View Article

How to set Bookmark Panel shown by default when page is loaded?

Hello: I have a report generated with bookmarks and shown in webpage (.aspx) using Acrobat Reader. What I need is to show Bookmark panel by default when the webpage is first loaded (instead of user...

View Article

Image may be NSFW.
Clik here to view.

Need Help Creating Custom Calculation Script Please

Hello,  I am in desperate need of a custom script here if anyone knows how to do it. I essentially want the percentage field to automatically fill in based on the fraction, rounded to the nearest...

View Article


Required Combo Box field with User option for custom text

I'm using Acrobat XI ProfessionalMy Problem:I created a combo box with several item choices, and the option for users to enter custom text.  I would like this combo box to be REQUIRED, however, since I...

View Article


JavaScript and Drop down menu help?

Hi, I'm having trouble trying to get options in my drop down menu to update in another section. I have the below script in a hidden field and everything seems to be working but it keeps picking up the...

View Article

Custom Format Script Help

I am not too familiar with scripting but am hoping someone can provide some guidance or at least somewhere online that will show me how to do this.  Here's what I'm trying to do: I have a text field...

View Article

Calculating Age from DOB field in Acrobat

Hello everyone,  I am placing this JavaScript code below in the calculate tab in the custom calculation script window for an Adobe acrobat form I am creating.  The user will enter in the DOB field...

View Article

Automatically numbering fields

I am creating a PDF form in Adobe Acrobat 9 that has a rows of fields that each represent a line in a database. The user will fill out a line for each individual specimen.  To make the form I create...

View Article


Import/export to an Access DB

Considering the following Workflow: File created under Acrobat and distributed manually on local server.Form filled using Reader and submitted as complete file dynamically via JS to local...

View Article

Expand/Collapse all the Bookmarks in a PDF file

Hi, This is my first message on the board :-) I work with very large PDF files (i.e 2000 pages, 700 bookmarks on 5 or 6 levels!) and I'm looking for a script (Acrobat 9 Pro) allowing to expand/collapse...

View Article


Deleting multiple blank pages.

Is there any script available to delete multiple blank pages?

View Article

Adding Numeric Fields and Calculating Totals.

I have added another NumericField (4) to a form and want to calculate it with the 'total' numericField only, ie NumericField 1 NumericField 2 NumericField 3 - this is 15% of the total of NF1 &...

View Article


hide start stop barcode characters

using acrobat pro xi on windows with a form that has a pdf417 barcode field and a barcode number text input field. currently using the following javascript to place start stop characters in the pdf417...

View Article

Check to see if entered date lands on a certain "Day"

Hello -I'm looking for a simple way to check if an entered date on a PDF form lands on a certain "day" of the week (i.e. Sunday). If so... nothing happens; however, if it's not the desired programmed...

View Article

Converting words to numbers

Hi all! I've seen multiple questions/answers about converting numeric values to words in Java, but I have the reverse issue.   I've created a performance management appraisal (dropdown box) with the...

View Article
Browsing all 12130 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>