Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
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
This is what I have so far however I do not know how to get the 35 and 45 in the statement.I am using Adobe Pro XI. This is my first time adding scripts to document for validation.event.rc = true;if (event.value.length != 12 && event.value != 'Must be 12 digits Select Prefix and enter Account number behind. cheq - 25 ushceq - 35 plan 24 - 45') { app.alert("The entered value must be 12 characters long and start with prefix cheq '25' or uscheq '35' or plan 24 '45'!"); event.rc = false; }var n = event.value.indexOf("25");if (n == -1) { // substring not found app.alert("The entered value must be 12 characters long and start with prefix cheq '25' or uscheq '35' or plan 24 '45'"); event.rc = false;}else { event.rc = true;
Hi,I am converting a document to a form and there is a ratings section with 6 categories where a rating of 1 to 5 is given. A read only field Total-Score calculates the ratings given for each category.However, one category Kitchen, is only required if it a kitchen is present. Thus, a radio button with Yes and No option is present and if Yes is selected, the Kitchen-Rating field goes from hidden to visible, allowing the user to enter a rating. Otherwise, if No is selected, the field remains hidden.How do I go create a custom calculation script to sum up these fields yet factor in the change of state of the Kitchen-Rating field, i.e. if hidden it is not included and if visible it is included? Below is my attempt to create the script but I receive the error message "SyntaxError: missing : after property id 3: at line 4".if (this.getField("Kitchen-Rating").display = display.visible);event.value = {this.getField("Bathroom-Rating").value + this.getField("Beds-Rating").value + this.getField("
Hi, I'm trying to use the code below to add a barcode to a document. The variable cRtn is set to '1234' by an earlier script. this.addWatermarkFromText({ cText: cRtn, nTextAlign:app.constants.align.center, cFont: "Free3of9", nFontSize:36, aColor: color.black, nStart: this.pageNum, nOpacity: 1.0});SyntaxError: syntax error1:Console:ExecundefinedI can add the barcode if I use the UI to add the barcode, but seem to have a problem if I call this from JavaScript. The console gives an error and nothing appears on the document. Any idea what's going wrong?
Hello,Is there a script to display only the last 4 of a string of numbers where the full number of numerical characters can very?Either display as "xxxx2298" or "2298". Or any other method.Thanks,Ed
I'm attempting to write a C++ function that will generate the following on a PDF page:A top bar that that has a solid line of color around it and inside a gradient that shades from white to this color top to bottom inside this bar.Place within the top bar an icon, some text and then some optional icons on the right hand side.Under the top bar have one or more lines of text with the color bars on the left and right hand side to match the width of the top bar.Between lines of text draw a black line.Below the last line of text have a color line to act as the bottom of the box.Does anybody know of sample code that does one or more bits of this?
HI all - apologies in advance, I'm a complete laymen when it comes to JS. I've searched high and low for the answer, but I worry that I don't know how to phrase the question to find the right answer.In short, I have a form that will have three figures manually entered into three different fields. A fourth box will run Adobe built-in code to sum three other fields. I then have a fifth text field. I'm having trouble with the fifth field. I want it to look at the sum total of the fourth field and depending on the value, return the words "Low", "Medium", or "High". From my first image below, you'll see this will then be repeated for "Simple", "Intermediate", and "Complex". Each half of this form will determine Seriousness and Complexity.I've only worked on the Seriousness side at this stage. If the value is 0-5, I want to return "Low", 6-10 "Medium", and 11+ "High". The second image is the script I've been trying to use. I've seen multiple variations of different ways, but none of them see
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.