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

Adding a date stamp using Acrobat XI

Hi there I want to add a date stamp to a voucher PDF, so that when it is downloaded and printed out, it displays today's (system) date. I followed the tutorial at:...

View Article


Business catalyst strings

Hi everyone, I am trying to make custum  alert messages in Portuguese on a BC website using this code from : Customizing Online Shop Alert Message Strings and also customize the online shop layout...

View Article


I keep receiving security errors when trying to open a pdf.

I keep receiving a security error when trying to run my javascript program, the function previously worked, but now creates an error after I entered the addWaterMark function. I have put my whole code...

View Article

E-Mail Specific Page in a PDF

Was wondering if it was possible for a user to e-mail/submit a specific page of a PDF. For example, I have a 14 page PDF and instead of using a submit button to e-mail the entire PDF, is it possible to...

View Article

How do I increment a NumericField value on a newly created sheet?

I'm fairly new to javascript so please forgive me if this is considered basic.  I have made a button in LiveCycle Designer that duplicates the current page which contains a Numeric Field called...

View Article


Lock form & email as PDF Javascript

Hi Guys, I am using Adobe Acrobat X and creating a Forms natively. We do not use LiveCycle. So I have created a form with several fields, buttons a date picker - some of which I have found online.  The...

View Article

Delete all pages except currently viewed?? Acrobat Javascript

Hello All,I need to delete all pages in a PDF except the one that is currently being viewed. I thought I had it with this:var keepPage=this.pageNumthis.deletePages({nStart: keepPage+1, nEnd:...

View Article

Need help with percentages in acrobat x pro

Hi all, I'm really new to creating fillable forms. I'm revising a document for work and I need to calculate a percentage for earnings. For instance: If an employee was making 88,0000 and their salary...

View Article


Check text field if email address is valid. If not, prompt user saying this...

Okay, I have a text field for an email address. I would like if the email address entered is not a valid email address (missing "@" and ".com") The user is prompted with message "This is not a valid...

View Article


["CMYK", 0,0,0,0] oddity

Hi, Does anyone know why setting the textColor of a form field to ["CMYK", 0,0,0,0] makes the text black instead of white?

View Article

How to automatically set Print Scaling to 'None'

Is there any way to automatically set print scaling to 'none' on an existing PDF document? This setting is set manually by going to File > Properties, and then going to the 'Advanced' tab and...

View Article

how to store string to text file

Hi All Please find my script coding var s= new Array();var tPath = fPath.replace(".pdf",".txt")for (var p = 0; p < this.numPages; p++) {      s.push(this.getPageLabel(p));}var allText=s.join("\r");...

View Article

PDF to TXT Conversion

I'm using Acrobat Standard 8.1.0.I would like to run from Excel VBA a process to convert PDF files into TXT files. The same affect of opening the files in Acrobat and clicking on Save As and changing...

View Article


Created a Java Script but need in Spanish

In Adobe Standard X I have created the following Script for a Dynamic stamp event.value = util.printd('d-mmm-yyyy', new Date()); Which would show5-jan-2015 How do i get to say the same thing but in...

View Article

Javascript Subtracting Dates

First, any help that is accurate is greatly appreciated.I am creating a form for our HR office which needs to subtract dates and turn the result into a yes or a no.  I have not done dates in JavaScript...

View Article


Acrobat Form Fill – Document Closing Validation

Can someone help me with this. I want to set a form field empty validation in set document actions when a document closes. Basically wanting some entry level custom data validation. For example Form...

View Article

Page hide Unhide in acrobat

Is  it possible to hide/unhide page in acrobat? How can I do? Can it work in reader? Please help me....

View Article


Javascript to Open URL in New Window w/o Toolbars

Hello All, I need to find a way to open a link in a PDF and have it go into its own window without navigation bars. I have tried to do this in a multitude of ways to no avail. First: I tried to write...

View Article

Help with custom calculation script.

Hi, all. I've created a PDF with fillable form fields. This form was created to help my company's users balance their accounts to $0.00. The problem I'm running into is that if I enter an amount that...

View Article

I need to create a folio field that increments itself everytime you open the...

Hi, I have a very simple form with a some fields the user should capture.The first field is folio number, that should be filled automatically when the user opens the form, with the last used folio...

View Article
Browsing all 12130 articles
Browse latest View live