Unlock the power of Acrobat SDK through our community.
Recently active
I'm not a professional programmer so I test my scripts constantly and I run into infinite loops once in a while...and I'd like to stop the execution.With XI pro I could just hit the Esc key and the action would stop, but with DC I have to kill the acrobat process. I looked at the options, but no luck. Is there a key combo that will work like Esc did with XI pro?
Hello thereI am working on a form and I currently have the following code:Right now, when I click the "Both" circle, it shows the name on one line. Is there any way to have it to where if they choose Debtor 1 or Debtor 2 - it displays as normal; however, when selecting both, it will stack?1) Select Debtor 1 - Sally Jane2) Select Debtor 2 - Bobby Jane3) Select Both - Sally Jane Bobby JaneAt the same time, I feel sure I will need to ensure my text box is bigger but then I'd have to have the alignment set to bottom and that way when stacked, the text will show up properly. Any help would be greatly appreciated.
I'm not sure if this would be the appropriate forum for this question so let me know if it's better to put it in another discussion board! My main concern is that this might be more easily done in Powershell, and I just don't want to go that route, I'd rather keep it contained within Acrobat so that If I'm not the person doing the paperwork then it's a bit less intimidating for less tech savvy folk who don't know what a terminal looks like.I'm wanting to create a script I can run that would allow me to enter in names of several files and have Adobe open them all up either one by one or all at once. Here's the situation:I have 6 folders, all of which have a dozen or more nested folders inside that are numbered, and tons of .PDFs inside those various child folders based on the .PDF name. These .PDFs have a naming convention according to which parent folder and child folder they're in, for example:In folder 1, all .pdf names begin with "ES-" followed by a number 1-99, or 100-199, or...in
I often scan in documents to Acrobat Pro, and then run OCR on them. I want to copy and paste excerpts into other documents. However, the results of the OCR are very poor -- for example it does not recognize the "fi" combination or other combinations that typically appear ligatured. Is there any way to improve the results other than manual correction after the cut and paste?
How do I write a custom calculation for:Text1 + Text2 + Text3 = Text20If sum is 0 then value is 0If sum is any number between 1 - 300 then value is 300If sum is >300 then value is sumHere is what is NOT working:if( Text20 <= 300 ) {event.value = 300; // value is 300 when sum is less than or equal to 300;} else {if ( Text20 == 0 ) {event.value == 0; // value is 0 when sum is equal to 0;} else {event.value = Text20; // else value is the sum;}}
hi,is there is a way to extract pdf content - words/quads, fonts, size and coordinates/character positionthank You
Hi,I am processing a collection of PDF files in which I execute a script for each 3D annotation found. However, some PDFs are secured and addScript method on Doc is throwing an exception : "NotAllowedError: Security settings prevent access to this property or method.".Is it possible to remove the security to be able to call addScript?The PDF file won't be saved at the end. Is there a way to open the PDF as a non-secured one, just the time to do the treatment?Thank you in advance.
Hallo zusammen,ab nächsten Monat setzt unser Unternehmen ELOprofessional ein.Um bearbeitete, ausgecheckte PDF-Dokumente wieder einchecken zu können, muss das Dokument vorher gespeichert werden.Eine Speicherung ist nur möglich, wenn der Geschützte Modus (Einstellungen -> Sicherheit (erweitert) -> Geschützten Modus aktivieren) deaktiviert ist.Ein "Speichern unter" wird von ELO nicht registriert und somit die Dateiherkunft nicht auf den neuen Pfad aktualisiert.Um keine Sicherheitsrisiken einzugehen, stellt sich die Frage, ob zufällig jemand selbiges Problem hatte und eine Lösung gefunden hat.Da die Frage doch relativ speziell ist und kaum einer damit zu tun haben dürfte, hier etwas genereller gefragt.Wie wichtig ist dieser Modus?Um diese Frage vielleicht selbst zu beantworten, unsere Mitarbeiter bekommen des Öfteren PDF Dokumente von Kreditoren und Debitoren. Nicht immer ist die Herkunft auf den ersten Blick für den Mitarbeiter erkennbar. Daher sollte der Modus eingeschaltet bleiben
I would like to add say the Media Box or Trim Box info to the document info metadata, such as title or subject.It is apparently very easy to add a static string to the document metadata, such as:this.info.subject = "My Text String"; // adds text string to the document subject metadataAs a newb to scripting, I am having problems adding a variable based off the required page box rather than a hard coded string of static text.This topic thread is a good example of what I would like to add to the metadata:Checking Trim size Quicklyfunction ThePageSize(){var aRect = this.getPageBox("Trim");var width = aRect[2] - aRect[0];var height = aRect[1] - aRect[3];app.alert("Trim: " + Math.round(width*0.3528) + " mm x " + Math.round(height*0.3528) + " mm");}Line 5 where it pulls in the bounding size and converts it to metric with some static text is what I would like to add to the metadata.I’m sure that I am missing something basic and I have not been able to find any examples to adapt. Can anybody pl
Hello,Is is there a way to insert a button to a PDF that would generate a random number (up to 10 numerical characters) but never repeat the same numbers for every time the button is clicked? Any help is appreciated.Thank you,Ed
Essentially, I want to count with letters, like Microsoft Excel does, instead of numbers. So instead of printing "We are at 0", "We are at 1", "We are at 2", etc., I need to print "We are at A", "We are at B", "We are at C", etc...
e.g. i have 52 text fieldsi write something on text1, text2, text3, text4... text30now i want to add somethings that I forgot on text 2 and move all values on text fields one text field downe.g text1 keeps its valuetext 2 its cleantext3 has the text2 value nowtext4 has the text3 value nowtext4 has the text4 value now....text31 has the text30 value now.this can be accomplished? also he same will happen where I want to add a clean line...
I need to convert an invoice template in excel to PDF. I have two questions:1. This excel formula needs to be converted into JavaScript. =IF(SUM(N53,-Q53)<0, "$0.00", SUM(N53,-Q53)) I tried a formula converter and replaced N53 and Q53 with Text1 and Text2 and I could not figure it out.2. I want to know if I can make a field required under certain conditions. Say I enter a dollar amount and want to know if the service was performed in CA or in the US I want the consultant required to check the option that applies. However, there may be extra lines that are available to enter amounts but not completed because they only need a few lines. Can I have a required field with an if statement for the other lines available but not in use, so it will not be required if certain fields are not completed.The only way I can work around this is putting a N/A option but then they would have to complete all the lines t
Hi Everyone, I have a form that creates a project name based off of selected values in a series of dropdowns.For example, Dropdown 1 has the values Maryland, Virginia, Pennsylvania and DelewareDropdown 2 has the values Architecture, Engineering, Construction Management Dropdown 3 has the values New Build, Modification, Demolitionwhen selected, the selections form a project name, ex. Maryland - Construction Management - New Build in read only fields.Because of the way I wrote the validation, the values in Dropdown 2 and 3 are dependent on the selected value in Dropdown 1. What I am trying to do is create the project name with an abbreviation of the selection from the dropdown. So when you select "Construction Management", it populates "CM" and when you select "Demolition" it populates "DEMO", etc. I am not able to adjust the export value in the Options tab since the selections are completely based off of a switch validation script I have built into the State dropdown. I am using the bel
I have been searching all over the internet for full information on this, and I'm just having a very difficult time figuring it out and would appreciate any help I can get.I have a function which is intended to automatically split PDFs based on the text of the page. According to the console, everything works fine in this function except for the "extractPages" function, which returns the following error:RangeError: Invalid argument value.Doc.extractPages:31:Document-Level:splitPagesAs I looked into it, it appears that this function is a privileged function, and this is where I start getting confused. As far as I know, there is some folder-level script that needs to be added in a certain folder (which I believe I've found) which gives the program privileges to do this sort of thing. However, past that, I'm totally lost. Does the splitPages function itself go into that .js file in the folder level? How do I call it? How do I set the correct permissions?If anyone can help me out, or direct
How to edit "Show Document title" using javascript on document property window in acrobat?Thank you
Hi,I am trying to open a collection of PDF files and execute script in each annotation 3D found in each PDF.I have created a program that does the trick using addScript but I have encountered issues I can't resolve regarding Security when a PDF is secured and addScript fails. Using jsObject, I am getting the scene of the 3D annotation and I am able to access scene.nodes.But I can't figure how to reach each node by its index. I have tried to do (C#) : Type javascriptObjectType = a_javascriptObject.GetType();return javascriptObjectType.InvokeMember("getByIndex", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance, null, a_javascriptObject, new object[]{ 0 });where a_javascriptObject is my COM object of the result of scene.nodes. I am able to access the property count of scene.nodes though.Is it possible to get a node by its index? What am I doing wrong?
When the Use custom list radio button is selected I would like the 2 groups below it to become required fields. Group 1 will have one of the two radio buttons selected and the same with Group 2. Is this possible?
I am running this at the document level and it is being executed by a bookmark calling the function.function oneFourOne() { var ocgSchematicArray = this.getOCGs(this.pageNum); // Look through all the layers on this page for (var i = 0; i < ocgSchematicArray.length; i++) { // Find the layer name that matches the defined wire color if (ocgSchematicArray.name == "141 (Lt Orange)") { // If the layer is turned on... if (ocgSchematicArray.state == true) { // Turn the layer off ocgSchematicArray.state = false; &nb
I am currently working on a pdf form that uses Javascript. I have a Javascript setup to validate that all required fields are filled in, followed by a save as, and then followed by email that populates the subject field using form fields. There are three javascripts built into one button. Is there anyway that I can put a stop in that if all required form fields aren't filled in that the other two javascripts won't run?
I am trying to extract a start date and return date into one field to show travel date. These text-boxes are formatted as Date fields except for Travel Date. one is (departure) and the other is (return). I want to extract these two fields into one field so that the travel date text-box is: ("departure" - "return").Below is what I currently have however it is not working.var sDate = this.getField("text4").value;var rDate = this.getField("text15").value;var tDate = this.getField("dateTravel").value;tDate.value = sDate.value + " - " + rDate.value;
I have an application using AcroPDF after the most recent adobe update the program will not open some files. Possibly due to special characters in the file path.One example is O:\AP_01\@@@\@@#\@=&\00086717.pdfThe I am using the LoadFile() function. This worked fine just last week. Is there any fix for this issue? Thanks in advance
Hi,I was wondering if there is a way to pause or delay script in batch sequence of acrobat. I have tried app.setInterval, app.setTimeOut but in both case app go to read next lines. timeout or interval script does not get a chance to run because action for current files finishes before timeout time reach and batch action proceed to next file without dialog being executed.. I have tried setting it very low.Let me give more details, I am working on the scanned files. with batch sequence, when batch sequence open first/any file a dialog box appear to allow input a ref no from the scanned image but since document view is not clear and one cannot read the number from screen. See attached.While document view is expected to look as. I need to read the red marked area. Is there any way to do this?Thank you
I have created a adobe form with server side signature from SAP. When i opened the document in adobe reader the digital signature is present in the document but the green tick/? for the signature validation is not present in the document. But when i verify the signature i get a message at the top of the PDF document stating that the signature is verified. Please let me know what i need to do to get the green tick or question mark symbol to indicate the signature is verified.
Hi,I am wondering if someone can help me..I am automating a set of actions.My first action step is "var cRtn = app.response("Enter Invoice number");"My problem is that this app response window appears before the pdf page has finished rendering on the screen. I want it to fully render so that the user can read the invoice number and then input it into the window.Is there a way to delay the window appearing until the pdf page is fully rendered and visible ? ThanksAndrew
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.