Unlock the power of Acrobat SDK through our community.
Recently active
How can it be done with Java Script to scan a document (HP Scanner) and that it is automatically saved in a specific location?
I am trying to identify what page number a certain layer is on. So I am getting all the OCGs then comparing for 2 specific layer names. "No Color" and "651 Highways"I am trying to identify what page number these reside on in the document and output it to the console. Here is my code that I am running from the document level. It works with the exception of this.pageNum which obviously gives me the current page...not the page that the particular layers reside on.var ocgArray = this.getOCGs();for (var i = 0; i < ocgArray.length; i++) {if (ocgArray.name == "No Color") {console.println("Found " + ocgArray.name + "\nPage number: " + this.pageNum);}if (ocgArray.name == "651 (Highways)") {console.println("Found " + ocgArray.name + "\nPage number: " + this.pageNum);}}On a side note....I will be searching for a pretty long list of layer names.... would this be better to create an array of layer names to search against?Any help would be much appreciated!
Hi,Everyday I have to review several pdf documents, search for specific words that are not allowed, mistakes, typos, etc, and do comment annotations, either highlights, text boxes, insert text at cursor or replace.I have found useful tool sequence that finds specific words in the pdf and highlights them, this is very helpful already but I want to take it to the next step.I am trying to find a script that instead of doing the highlight annotation, it does the replace annotation and gives an alternate option to not permitted words, for example:Lets say that the word "colour" is not permitted, it should say "color" instead. In the sequence I already have I input the "colour" in the list of words that should be highlighted, and after running the sequence the pdf would look like this:"The colour is blue"what I want is, instead of highlighting it, it should do the replace annotation and suggest the word "color" that I should've already inputted as a replacement everytime "colour" is found. T
I am working in a PDF Form and trying to do this calculation. I understand that I need to do it in javascript, which I have never done. Any help is appreciated.Total Services Costs x .9 = Total Services Costs 2
Good morning,I am having an issue figuring out what is wrong with my java script. I copy and pasted an old one I used (and worked/works fine), but this time it's giving me a syntax error. Any help is greatly appreciated, I'm sure it's something simple I'm missing. I am creating a submitable form.It tells me "SyntaxError: missing } after property list 5: at line 6".var DEPT = this.getField("DEPT").valueAsString; var RQSTNAME = this.getField("RQSTNAME").valueAsString;var PROJNAME = this.getField("PROJNAME").valueAsString;var LEADER = this.getField("LEADER").valueAsString;this.mailDoc({cTo:"email@email.com", cSubject: "Project request for: Dept "+DEPT+" - Requestor "+RQSTNAME+" - "+PROJNAME+" - "+LEADER+", cMsg: "Please see the attached project request."});
Hey Guys!I found a lot of information online on how to create a custom dynamic stamp - success after a few goes of adding in text and creating a form field to add javascript code for the date section.Then I managed to work out the tricky part of actually importing this stamp to work as dynamic (seems most online resources are outdated) including editing page templates and copying the file over to ENU stamp folder in the Adobe Program Files directory.Now my only problem is the stamp that I imported is pasted in as an entire A4 page with my small stamp in the corner. The stamp is the correct size and I can paste it in just where I want it but there is all this blank space that looks to be part of the stamp. It doesn't affect the look but it messes with the documents because it is harder to insert other text or comments in a space that already has a stamp on it - even though it is just blank space covering most of the document...I tried cropping the stamp file but this appears to complete
I have some code that allows the user to select from a dropdown list, and based on that selection, another dropdown list is populated with specific selections. Once the user makes a selection from the next dropdown list, 3 text fields are populated (this information is coded into the Document JavaScript). I am running into an issue where I am trying to add a new selection to the second dropdown list, and its corresponding information to the Document JavaScript, but nothing is happening when I select the new addition (i.e. the text fields stay on the previous selections information). I've double checked the code and seems correct, it just doesn't seem to want me to add another selection!Any insight would be greatly appreciated.Thank you.Gary
I used adobe acrobat pro to make a binder of duplicate forms and when open on my iPad using the reader app I can fill in the forms, but because the forms are all duplicates, all of the box names are the same, so each page comes out identical. I can't just rename the boxes because each form has over 200, and it would take forever since I have 10 of the forms in the binder. I tried creating a portfolio, which seems to have worked, but once i open it on the reader app, it says "modifying the document is not allowed because it is an attachment". Does anyone have a suggestion on how to either fix the binder so that all of the boxes are not named the same without manually changing the names individually, or a way to make the portfolio editable, and not viewed as an attachment?
Hello all!I have a pdf (well several) that contains an image box. Is it possible to use either java script or the action wizard to:1 - replace the image with the next image in a file,2 - save the pdf as a new pdf3 - save the new pdf as a jpeg4 - repeat indefinitely until all the jpeg have been used and all the pdfs/jpegs have been created?Would LOVE input!Peggie
i use this : event.target.value = util.printd("dd/mm/yyyy",this.creationDate); to add automatically system date to a fill form... now how i check if date is Sat or Sun? and how to check if month is Jun July or Aug?
Hello guys i need your help,i have 5 Checkboxes. Everyone of them can be checked or unchecked by itself. If the 5th Checkbox is checked, a RadioButton with 2 options should be activated. If the 5th Checkbox gets unchecked the linked Radiobutton should be unchecked and deactivated, so that both options are blank.So my first question is what to write in js and my second question is where to write it or which trigger i need to choose.I've tried it now for houres and didnt come to a close, i hope u can help me.Below u can find what i already tried. "Chechbox5" is obviously the name of the fifth Checkbox and "RB_1" the name of the Radio Button. My Acrobat DC Version is 2015.006.30452.ThanksFirst Tryvar source = null;source = this.getField("CheckBox5")if (source.isBoxChecked() == false){ this.getField("RB_1").value = false;}Second Tryif (this.getField("Checkbox5").value == false){ this.getField("RB_1").value = false;}Third Tryif (this.getField("Checkbox5")
I'd like to program a "bug" into a proofreading test form I'm working on. The form is just a text field and my idea is that every so often, when a character is pressed on the keyboard, the field will select a different character to input into the field rather than the one pressed based on the character count. Input example: The quick brown fox jumps over the lazy dog.Output example: The quick lrown fox tumps overjthe lazy nog.In the output example, every 10th keystroke is replaced by a letter 10 places after the letter pressed on the keyboard. (A-Z & space = 1 through 27)I'm not a whiz with JavaScript, but not entirely uneducated either. The only part that's eluding me is the "I'm pressing 'A'! Why is the &$+!?#@ field printing a 'K'?!" effect. Can such a thing be done?Thanks in advance!
I have 2 pdf form documents that I created. When these documents are opened, there is focus on the first instance of a multiline text box. You can see the text cursor blinking there. I see this behavior even though I did not setFocus via javascript and the focused multiline form field is not the first field in the document. I tried setFocus via javascript open page action on the first field. There is now focus on the first field but the multiline textbox retains the text cursor(which is now frozen- it stops blinking). Is there any way to fix this programmatically? I ultimately do not want any focus on any fields when I open the pdf document. I tried various code but it did not work. I did manage to fix this issue by reinstalling my Acrobat Reader - even though the Acrobat Reader is the same exact version. My colleague had the same issue with his Acrobat Reader so I am afraid customers will see this same issue. I was using Acrobat XI Pro for development. An
I'm trying to display a different page 2 based upon checkbox selection and I have the below function at the document level, which is called upon for each checkbox and it hides and shows the template beautifully. However, the template appears at the end of the document (page 3 of 3) and I would like for it to always display as page 2 forcing the previous page 2 to the new page 3. Can I accomplish this without spawning?function NarrativeDisplay() { var narr1 = this.getField("1E-F1_NARRATIVE").value; var narr2 = this.getField("1E-F2_NARRATIVE").value; var narr3 = this.getField("1E-F3_NARRATIVE").value; if (narr1 == "Off" && narr2 == "Off" && narr3 == "Off") { this.getTemplate("Narrative").hidden=true; } else { this.getTemplate("Narrative").hidden=false; }}
I could use a little help (or a lot...), please. I've got a calculation on a membership dues form that has totally taxed my brain. I will be adding an image, also. Hopefully, with everything I have included, someone can help me out.I'm creating a membership dues form for members of a trade association. We are small and don't really have a need or the ability to invest elaborate dues remittance systems. What we are trying to do is create a form that self calculates, so all they have to do is return the form with their check or go to PayPal to send in their dues. I've been able to calculate all the fields but one. It is a multi step one that requires us to use the same base number in more than one calculation.So, my field names are:Total UsageABCDues(I plan to hide A, B & C, so I went simple. )What I need to develop is a final number for dues when: $10 for each usage up to 50 $5 for each usage over 50 $350 minimum duesI set it up so:A would = the $10 calculationB would = the $
Bonjour à tous,Environnement: Acrobat Pro DCJe souhaiterais trouver un programme VBA qui automatise l'exportation d'un fichier réponses pdf (équivalent de la fonction "Export all..." dans le fichier pdf réponses).L'idéal serait un export au format csv et classé dans le bon ordre des Tab.Merci d'avance à tous pour votre aide précieuse !
I'm using a bit of complex code (and I'm trying to stay away from global variables) to have a checkbox within an app.alert window that upon click wound spawn a template. I have both codes (one for the app.alert with checkbox, and one for the spawn/delete) but cannot seem to link the two together well. Any help would be greatly appreciated. App.Alert Code [Based on a dropdown value] :{var oCk = {cMsg:"Yes, I want to add a form to this document", bInitialValue:true, bAfterValue:false}; app.alert({cMsg:" Do you want to add a form to this document?", nIcon:3, oCheckbox:oCk, cTitle:"TDR?"}); }Spawn/Delete Code [To be triggered upon click of app.alert check]:if (this.getField("Checkbox").value == "Off"){ oFld = this.getField("Additional NotesComments"); this.deletePages(oFld.page[1]);}else{ var a = this.getTemplate("Form"); a.spawn(1, false, false);}Let me know if you can help!
I have a mandatory date field on a form, however I also want the user to be able to custom type text as well (e.g. "Unknown"). I still want the drop-down date picker to be available and it to be formatted as mmm d, yyyy. Is there a way to remove the date validation from just this one field, or is there a script that can be added that makes adding text optional?
When create a text field using acrobat pro dc and select multi-line and Scroll Long Text as options, not all the text entered will print. It only prints what you can see on the screen. Is there a setting I am missing to make the boxes expand to full text when printing?
I have forms which have had pages rotated in Acrobat (they come from InDesgin files with vertical spreads, where half of the pages are rotated 180°)In Acrobat, I usually rotate the pages back 180° to proper reading orientation, but there is an issue if the user opens the form in Apple Preview. Apparently, Preview doesn't recognize the form field rotation; the page views in proper rotated space, but the fields do not.I'd like to be able to clear the PageRotation WITHOUT rotating the page - i.e. change the 180 to 0 for the page, while maintaining the current page orientation and field locations.Is this at all possible?
Hello,I have a calculate script for a TextField. The form runs without error, but the TextField remains blank. I'm sure you need more information from me to answer this questions, but I am not sure what information I should provide.
Hi!I really don't know if I'm in the right place but I'm wondering if it's possible to create a sort of "Document Cloud Files" on Finder like "iCloud Drive" or "Creative Cloud Files" (which appeared spontaneously on my Finder just after the installation of Adobe Acrobat DC) ?Thank you for helping me !
Is there anyway to circumvent the adobe reader print limit of 999? I've been using foxit reader, but that program moves the fields I paced on the pdf slightly.
I have a form that we enter the social security number in three different fields at the beginning of the form and then combine those into one field for auto insertion into other fields later in the form.The coding listed below works real well except when you enter something like 123 04 5678 it shows 123-4-5678. We need that missing zero to show. I have spent hours looking on the web and have tried things like "toString in the "this.getfield' line, padding the fields with blanks, and others on this website and nothing works. If anyone has any suggestions on how to get the right output it would be greatly appreciated. var three = this.getField("Social Security");//this function that checks if the destination field is blank and if so popluates it.function collatePreSetFieldsTo(populate){ //always overwrite the value in populate field //if(populate.value==''||populate.value==null){ var one = this.getField("SSF"); var two = this.getField("SSM"); var three = this.getField("SSL"); popul
So, I have a form I am editing that someone else created. Using adobe Acrobat Pro DC. In this form I've got checkboxes. The first checkbox has javascript that I want to affect multiple fields - by showing or hiding them based on if the box is checked or not. For background, the box is called "Brkfst", is the first box in the form and if checked, two other fields should appear - 1st is basically a label for the second box. The first box is set to hidden by default and marked read only. Default is set to the label title I want to show. The second box is a text box for user input and is set to hidden.The code I am trying to make work is in the actions under the Brkfst check box, and is set on the mouse up action, to run the following script:var fieldHide = event.target.isBoxChecked(0)?display.visible:display.hidden;this.getField("Expected Brkfst").display = fieldHide;this.getField("BDeliver").dispay = fieldHide;This code wasn't in the form when I got it
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.