Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I want the default values in a form set to not printing. That way if users want to fill out the form with pen, they can simply print it. How should I do this?Thanks! Martine
Hi,I have a PDF form, one of many that I am using this script on. For some reason it does not work correctly on this one document.There are fields at the bottom of each page which are populated with the text "<<remove_page>>" when I want the page to be deleted. Here is the javascript I'm using attached to a button at the top of the first page:for (var fieldNumber = 0; fieldNumber < numFields; fieldNumber ++){ var strfield = getField(getNthFieldName(fieldNumber)).value ; var strpage = getField(getNthFieldName(fieldNumber)).page ; if (strfield == "<<remove_page>>") { this.deletePages(strpage); }}The behavior is this. It deletes all the pages but one. It's the same one each time I have renamed the field, recreated it and moved the page around. It leaves the page each time. When I run the sc
I am experiencing the occasional crash in my plugin while opening pdf files. The line that it crashes on isn't inside my plugin but inside acrobat native code so it is very hard for me to see the reason.Using external debugging tools I was able to pin it down to an access violation call that is happening inside a method called "DllCanUnloadNow".Inside it is crashing while processing a windows message WM_TIMER being sent to window"AcrobatTimerWnd"I was hopping to get info on AcrobatTimerWnd or what this timer is used for.
Another post from 2011, https://forums.adobe.com/thread/833146, seems to say there's no direct way to determine whether a file exists in the user's file system and that this is due to security concerns. A reply by try67, however, says "You can use openDoc on a certain path. If it returns null, the file doesn't exist. If it throws a security error, it exists but is not disclosed."I'm hoping that between 2011 and now, Adobe (or someone) has come up with a simple way to test for file existence using javascript.If not, I took try67's suggestion and came up with the following code which does seem to be able to test for file existence:var myPathAndFile = "/serverName/faxes/christianBahnsen/test.pdf"try { existingDoc = app.openDoc({cPath: myPathAndFile, bHidden: true}); app.alert("this document name already exists!"); existingDoc.closeDoc();} catch (e) { var myFolder = "complete"; var myPathAndName = "./" + myFolder + "/newName
We apply stamps to PDF's frequently for approval and would then like to flatten them so the stamp remains and can't be easily deleted.I can do this by using the flatten script, however i wondered if there is any way to set this up for each PDF that is opened subsequently. At present the script only flattens the current PDF on saving and then when it is closed the script is not available for the next PDF is opened without having to type the script in again. Is there a way to create tool that retains the script that does the Save As "flatten" process, so that I don't have to type it in each and every time for a newly opened?
I have set up an interactive Cost per Glass calculator and I cannot figure out how to write the code for my profit per bottle:(profitperglass*25.36)/poursizeI also tried to set it up with the 25.36 as a variable field that I reference but it still doesn't work. (25.36 is the number of ounces in the bottle)I was able to make a file with the Pour size as a set number but now I want the pour size to be a fillable variable that will then affect their profit.All the other calculations are input in the "Value is..." and the "Simplified fields..." I don't know where or how to do this one.It is possible, I can do it in excel?
CHANGEMENT DE COMPTE ADOBE SUITE A CHANGEMENT DE FOURNISSEUR INTERNET ET D'ADRESSE EMAIL : IMPOSSIBLE D'OUVRIR L'ANCIEN POUR MODIFICTIONS ET ANNULATION D'ABONNEMENT DANS LE NOUVEAU COMPTE ID ADOBE
Hi i want to get number of all pages in file.but https://forums.adobe.com/ GetNumPages(); didn't work.it gave me a error: "ReferenceError: getnumpages is not defined"anybody knows hoe to get it?Thanks
Hello,I am trying to launch a pdf form in IE or Firefox, Chrome with some javascript code. The code works fine and it is possible to debug in a local pdf. But I cannot set breakpoints and debug it inside a web browser. I am using win 7 with Internet explorer 11 and adobe acrobat 9.5 (professional). Does anyone knows why I cannot debug on a web browser ? Thanks in advance.
Hi, I've been searching for a solution for this for two days....Basically, I have dropbox01, dropbox02, and textfield01. I need to get the choices from both of the dropboxes into one textfield.At the moment I have in textfield01 custom calculation:var v = this.getField("dropbox01").value; if (v=="Choice01") event.value = "some text" + getField("textfield02").valueAsString + "some text"; if (v=="Choice02") event.value = "some text" + getField("textfield02").valueAsString + "some text"; if (v=="Choice03") event.value = "some text" + getField("textfield02").valueAsString + "some text"; var z = this.getField("dropbox02").value; if (z=="Choice01") event.value = "some text" + getField("textfield03").valueAsString + "some text"; if (z=="Choice02") event.value = "some text" + getField("textfield03").valueAsString + "some text"; &
I would like a button I can add to my toolbar that would highlight a list of pre-defined words that are mis-spelled regularly, and highlight each occurrence thereof, and actually annotate the individual comments with the respective "correct" spellings. I proofread a lot of US material that has to be "Canadianized" so words such as 'color' need to be found, highlighted/highlit?, and marked with "change to 'colour' comment…. and this would be from list of regularly used words… I found an action here somewhere that highlights words from a list, and that's ok, but I would like to enhance that action with adding the specific individual comments. So I would have somewhere two lists: 1) US spelling list , 2) list of "Canadian/UK spelling" comments….To clarify, if needed, this is what I want as an action button:Find "color" | highlight the word | add comment to the highlight "add u, 'colour'" | find next instance of the same word and repeat until no more are found;Then, find the next word in t
Hi all,Is there a way to convert a text value of one text field to a numeric value in another text field? For example, if text field's "MonthText" value is "January", then the text field's "MonthNum" value is "01". I'm sure there is a way, but my knowledge is limited... Thanks
I'm using Acrobat Pro DC. My form has a column of 12 randomly named fields (product names) with dollar values. Each field is made visible or hidden with it's own checkbox action. I want to sum the column, but only the fields that are visible that have the boxes checked. I need a script that will determine which fields are visible, then sum them in a separate "Total" field. I don't know Javascript, but can do basic script editing make them work for me, like adding field names.I am guessing this is pretty basic, but thanks for your any help you can provide!
Within my Plug-In I use the XML-Parsing-functionality.After parsing the respective XML I want to create my IObserver-Class to let it receive the FILE:SAVE-events.How may I create an Instance my IObserver-Class from inside of my XMLCATHandler::EndElement?
At my Plug-In I use the StartupShutdownService to create my menu.From that menu the parsing of an order-XML is implemented.From the XCatSAXContentHandler::EndElement of the Order-XML the document,according the size retrieved from the XML will be created.Beside the settings for the output-file+distination, alloved fonts and allowed colors, I need the signaling of the selection of the two possible menus File:Save and File:Save As.Therefor I've implemented a UIEIObserver-class. That class suddenly should be instanciated with the application object to receive the mentioned events.If that will not be able, I kindly ask you to let me know.But at the moment I'm not able get an instance of me UIEIObserver-Class at the XCatSAXContentHandler::EndElement, because the UIEObeserver is not found (not vissible).As I have a similar failure between StartUpShutdownServevice and the XCatSAXContenHandler to signal the result of the succesfull parsing to the final message of the StartupSutdownService, it s
Since installing Sierra on my Mac I cannot print from Acorbat Reader DC. If it does print anything it is only a header or a company logo in a top corner. I uninstalled my printer, reinstalled it, restarted everything without success. I finally have had to resort to selecting and copying the data on the PDF to Word and printing that way. I have no issue printing from any other program on my computer either wirelessly or usb except on this application.
I tried to ask a simple question. Page after page after page of text displayed all kinds of information(?) but did permit the asking of a simple question. The whole process was so verbose displaying all kinds of suggestions but none of them relevant to my question: why is there an extra blank on the printed page that is not in the saved document? It appears that same situation would occur almost always regardless of the simple question you'd like to ask.
Does anyone know of a PDF validator on-line. I use PAC 2 but I am getting a weird error and it stops testing. the error isError while parsing the PDF Document (name too long (6677))This is the file name;Registration_Form_Pers_Production-engAug22.pdfI have had longer names and they pass. any ideas?
How to Create Drop Down Menu that will populate separate text box with multi line information of selection
Hi, I am a total newbie to Adobe Java (I am a vb programmer) and I am trying to apply strikeout to a block of text.My possible options are :-1. Add a checkbox or radio button to the left of each block of text. When a box is ticked then all the other options need to have the strikeout applied to the associated text. As the text is not in a textbox I tried adding a line, made of underscores, to a rich textbox and tried to make the mouseup event on the checkbox make the rich textbox visible. I get an error on line 1. Invalid something.2.Another idea was to duplicate the text in a rich textbox with strikeout true and making the textbox visible. Same problem.I think I am missing something either in the setup or the terminology.Any help would be greatly appreciated.Another alternative is if I can be pointed to a beginners set of tutorials. I am not having any luck finding some.Many thanks,Gray
Does anyone know how to iterate over a collection of PDFs using Powershell, looking for documents with specific information stored in one of the info properties, e.g., info.subject?As part of a document-workflow process I'm working on, I'm going to be storing values in some of the info properties, viz., Author, Subject, and Keywords. It would be very useful to later be able to find PDF documents that have specific information stored in those properties.ThanksChristian Bahnsen
Is it possible to render an alert box that the user can copy the text from?Christian Bahnsen
Hi all,I have to convert quite a lot AutoCAD drawings to PDF in order to put them into our document control system. I have just tested it on a few .dxf files and although, most files do convert okay, I came across a couple of issues straight away. 1. When one of the drawings had been converted around 30% of the drawing had been cut off from the sides.2. One of the drawing displayed a blank page when converted.I have checked these files in my AutoCAD viewer and they display correctly there. Am I doing something incorrectly to convert these files?Cheers,Alistair
I have a trusted function that I use to allow silent printing of a form when a button is clicked. Works great.However, would like to specify the printer that is used. Would like to do this using trusted function script as colleague and I using same form from shared location have different printers. Of note, using default printer is no good as that changes depending on what was last printed.Currently my working code is:sPrint = app.trustedFunction(function(bUI, bSilent){app.beginPriv();this.print(false, false);app.endPriv();});Somehow I think I need to add/incorporate this:var pp = this.getPrintParams();pp.interactive = pp.constants.interactionLevel.automatic;pp.printerName = "Brother printer";this.print(pp);Can anyone please advise? Thank you.
Lately, when I am needing to convert my documents to word, excel, etc. I am unable to complete the task. Adobe simply will not complete the task. My subscription is current and this wastes huge amounts of time. Any quick fixes or solutions?Sincerely,Andrea
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.