Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Not when opening a file, but when opening a program?
Hi All,I'm fairly new to javascript. I've been working my way up more complex combinations, but I can't seem to figure this one out. I'm trying to get the results of two sets of radio buttons to determine whether multiple fields are shown and which message comes up when clicking the submit button.If button 1 = yes and button 2 = yes, I need to show fields 3, 4, 5.If button 1 = yes and button 2 = no, I need to show field 6.If button 1 = no and button 2 = no, I don't show any fields.I've been at this all day and unable to write the script that works. PLEASE Help!
Is there any way using the Acrobat API to say search through a PDF, and find, the location within the document (say page number) of where any image shows up?I want to have a script where I can present to the user the areas of the document that contain images for review.
Good eveningI am wondering if there is a way to change text that the user puts in into "ERROR" if that said text is wrong.For more clarification, I am trying to make a script where, if the user puts in the code "Z85" in a field where it shouldn't be there, it'll change the "Z85" into "ERROR."
Good morning,I have to create a "checklist" for our office and would like to add a text frame with a onClick event behaviour. My idea is that after exporting as an interactive PDF file the user can click (or double-click, doesn't matter) on this specific frame and it shouldauto-complete this field with date and the windows login name. Is this possible and if yes, how can I do this?What I've got so far is this command--> alert($.getenv("USERNAME"));which returns the actual logged in user but I'm struggeling with the onClick event (javascript is not really my business)Thank you in advanceKind regardsMoritz
Hi,I'm developing a Plugin for Adobe Reader, where we (form a stand alone program) can read the selected text range aloud. The words are highlighted during read.The plugin can read now read and highlight selected body text.I want to extend the plugin so it would be able to read and highlight text in form fields. (where user can enter data).If I select text in a form field AVDocGetSelectionType return "AcroTextEditSelection". I cant' find any information about this selection type.Does anyone know how to get and highlight text in form fields?Thanks in advance.Carsten
Making a form which is 11 pages long on page 2 is Surname1 1st field Givenames1 2nd Field on page 11 I have a Name1 i want to combine the first 2 into the 3rd automatically. Really dont know what I am doing do I do script in the first 2 fields or just tell the 3rd field to look and enter info....thanks in advance
We save a lot of PDF files one a daily basis and we need to stamp on top of each document a section of the filename.The sample filename would be - 023 - PID 123456789 - ABC 1234567The PID and 9digit number after it will always be different, and needs to be stamped on each document. Is there a way for us to batch stamp each document and is there a code to section off just that part of the filename for maybe, a dynamic stamp. We only have Acrobat Reader DC.
Hey,I am trying to underline (or highlight) a text (few words) in a PDF using AppleScript. Can someone provide me with an example (script) for doing this?ThanksL.
I have a section of Yes/No radio dials. Each of these dials needs to equal a numerical value for calculating a score for example:Do you like the color red?-Yes (3 points)-No (3 points)Do you like ice cream?-Yes (1 point)-No (1 point)(Each question holds a different numerical value for calculating a score)The Yes and No radio dials equal the same number for each individual question; however, each question has its own value. I need to assign values to the Yes and No radio dials so that I can total them by their answers of Yes or No based on their assigned values.Is there any script to do this or is there a simple setting I'm missing to accomplish this? Thanks!
Hi All,I have a form we are giving to service guys in the field to fill out on a Galaxy Tablet.My goal is to have a button on the PDF that attaches the PDF to an email, makes it read-only, and names the document a combination of text from fields. I have done similar very simple things with PDF buttons for use on a desktop, but never on a tablet and not with these many items.Any ideas if this can actually be done and if so, some code examples?Thank You!Hunter
I've been refreshing/expanding my understanding of how to use the Acrobat Interapplication Communication OLE Automation in Powershell to work with PDFs.I'd appreciate any feedback on the following code, which I view as the basics of creating the App, PDDoc, and AVDoc COM objects needed to open, work with, and clean up after working with a PDF. Are there better/more efficient ways to accomplish the same end?(I had to paste the code in as an image because I didn't see a way to paste code in this editor.)ThanksChristian Bahnsen
Hello, I am trying to make a code, where the "check-spelling" feature will work on fully capitalised words, I was wondering if there was a script to insert into the document for this to work in any way?
i have a if loop to check some parameters :var A0 = this.getField("Dropdown14.0").valuevar A1 = this.getField("Dropdown14.1").valuevar A2 = this.getField("Dropdown14.2").valuevar A3 = this.getField("Dropdown14.3").valuevar A4 = this.getField("Dropdown14.4").value...var A500 = this.getField("Dropdown14.500").valueif (num1!=0 && A0=="check" && A1!="check" && A2!="check"... A500!="check")now the problem is A0 go to A500.....the only solution is to write A0=="check" && A1!="check" && A2!="check"....any smarter solution?
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?
i have 52 lines, and 52 text fields with some parameters.. and understand the code is not manageable... (so many writes) it is possible for a smarter solution ? if i use arrays? something else?var A0 = this.getField("Dropdown14.0").valuevar A1 = this.getField("Dropdown14.1").valuevar A2 = this.getField("Dropdown14.2").valuevar A3 = this.getField("Dropdown14.3").value...var A52 = this.getField("Dropdown14.52").valuevar J1 = this.getField("Text58").value var num = 0;var num1 = 0;var al = user;var als = users;...if (num!=0 && A0==" check" && A1!=" check" && A2!=" check" && A3!=" check" && A4!=" check" && A5!=" check" && A6!=" &
I have pdf's from scanned documents. Most pages have size A4 (210x297mm). 'Document Properties' > 'Initial View' > 'Page layout' is set to 'Two-up' (Cover page)', so that always 2 pages will be showed side by side, like reading a book. Now, few pages have the double size, A3 (297x410mm). Viewing them, 'Page layout' should switch to 'Single sided'. Going back or forward to an A4 page, 'Page layout' should switch back to 'Two-up'.The only method I found for achieving this, was by adding an action to each page of the document. The trigger is 'Open page', the action 'javascript'. Depending on the page size:this.layout = "TwoPageRight";this.layout = "SinglePage";My quesion: How can I add such (identical) actions with (identical) javascript snippets conveniently for page x to y ? I could not find any feature in preflight.
I am using Adobe Acrobat Pro DC on Windows. I am looking to create a form for my office that does the following:Checkboxes for each the given rolesWhen a box is checked, insert the related text field into the document showing the related training (all in an obnoxiously long default text), shifting all text fields downWhen a box is unchecked, remove the related text field from the document, and shift all the fields underneath it up (this is not removed like deleted, just removed from view and printing)I have gotten the fields to be hidden when I uncheck the box, and show when I check the box. That was easy enough. However, the text fields are just hidden (not showing), not removed from the document structure (which makes sense but is not what I am looking to do). Pretty much, I want the fields to move up and down and all around as the boxes are checked and unchecked. I am relatively new to PDF programming, but not to programming overall. In this vein, I would like some help getting this
I have a large PDF file that contains data for invoices. I'm using a pdf splitter, but it will only split based on the number of pages of the invoice, so each invoice must be the same number of pages. Is there a way to scan through the pdf, looking for a specific word then count how many pages there are in each invoice looking for the invoice with the most number of pages and then add blank pages to the invoices that don't have meet that maximum?
I am new to this and have a question.I am populating a field value to a different field based on a checkbox value. Scenario - add a name in text field. Then if I check box A, the value from the text field populates a text field in section A. If I check box B the value from the text field populates a text field in section B. I can get the values to populate when I check the box, but how do I clear the value if I uncheck the box? Thanks
Dear All;I would like to save the donation receipt information as a FDF, which is I already created through Acrobat Pro DC version 2019.008.20080 fillable form.Again, through the code I found on this forum site, I can save the PDF form as a complete. But I want to save as a FDF, how to change the JavaScript code for this purpose?Thanks in advance for your helpCode:@ !I used the script below in my Javascript folder:var mySaveAs = app.trustedFunction( function(oDoc, cPath, cFlName) { // Ensure path has trailing "/" cPath = cPath.replace(/([^/])$/, "$1/"); try { app.beginPriv(); oDoc.saveAs(cPath + cFlName); app.endPriv(); } catch (e) { app.alert("Error During Save - " + e); } });This script for the button in Acrobat Form.var directory = "/Users/hasankoyuncu/Desktop/untitled folder/"if (typeof(mySaveAs) == "function") { mySaveAs(this, directory, this.getField("BenefactorName").value + " " + this.getField("NameOfCharit
Looking for some assistance for a script that runs the calculations below based on the fields but also leaves the final field blank if nothing is in the other fields. E12*E13*(E14/100)/2000For example:25*12.2*(27.5/100)/2000=0.0419Any assistance is greatly appreciated.DH
[Moderator moved from Adobe Portfolio to Creating PDFs.]Hello,I have a 14 page fillable PDF form with a few text boxes that are repeated on just about every page e.g. student name, date of birth, etc. I now need to separate this form into single pages but I still want the text fields to link to each other, so the student name or date of birth only has to be entered once. Is there a way to do that? Can it be done in a PDF Portfolio?
Good morning,This is not specific to Acrobat. We use Acrobat, primarily, and there are a lot of PDF experts here so I figured that maybe someone would know of a place I could turn to. The forums specific to Ghostscript have been closed down and the other forums I've seen via Google search were circa 2007 or so. I've tried asking this in the Stack Overflow discussions but haven't had any luck so far.We print Postscript files directly on industrial Xerox printers.One client's Postscript files were getting garbled when printing due to a font issue that I was unable to track down, so I used Adobe's Distiller to convert from PS to PDF. The same font issues turned up in the PDFs that were generated from Distiller. No amount of option tweaking helped me out, and find/replace font operations using Callas pdfToolbox didn't work out for me.So, I downloaded Ghostscript and spent an entertaining hour remembering how DOS worked. I was eventually able to convert several PS files into flawless-lookin
Hi, I’ve created a business card template in Acrobat Pro and our logo colors are used in the executive business cards.The employee name is in a burgundy color: RGB = 179, 15, 65The remaining text is in a dark green color: RGB = 0, 56 34My coding for the employee name is below. The third spans line is my attempt at changing the text color. Something is wrong because the text looks like a florescent teal. I get the sane teal color with the green RGB colors.var spans = event.richValue;spans[0] = new Object();spans[0].text = this.getField("EmpName").valueAsString + "\r";spans[0].textColor = ["RGB", 179, 15, 65]; //Burgundyspans[0].fontWeight = 700; //this makes the font boldspans[0].textSize = 9;event.richValue = spans;Thanks for your time and assistance.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.