Questions
Recently active
Need SDK to emmbed video in the PDFWe have seen in the Emmbed flash icon
Hi I made a pdf form in acrobat pro XI. In the file I need to calculate total days excluding weekends. I went through the community and come up with the below code. This code counts Saturday and Sunday as weekends. // get the end date valuevar Date1 = this.getField("From").value; // get the start date valuevar Date2 = this.getField("To").value; var dDate2 = util.scand("dd/mm/yyyy H:MM:SS", Date2 + " 0:00:00");var dDate1 =util.scand("dd/mm/yyyy H:MM:SS", Date1 + " 0:00:00"); event.value = calcBusinessDays(dDate1, dDate2); function calcBusinessDays(dDate1, dDate2) { // input given as Date objects var iWeeks, iDateDiff, iAdjust = 0; if (dDate2 < dDate1) return -1; // error code if dates transposed var iWeekday1 = dDate1.getDay(); // day of week var iWeekday2 = dDate2.getDay(); iWeekday1 = (iWeekday1 == 0) ? 7 : iWeekday1; // change Sunday from 0 to 7 iWeekday2 = (iWeekday2 == 0)
hello,I am trying to create a folder level script that will save the file as a specific filename based on the form field data of 2 form fields. I understand that it needs to be a folder level script for proper permissions, but I can't seem to get anything to work. I have searched around a lot and have seen too many lines of code. If anyone can help me from scratch, I feel it would be better to start fresh.The file name should look like this: current folder/W.O. "text1" "text2" "text3".pdfText 1 is a number only field, text 2 is a general text field and text 3 is a date field (ideally this would change the long date to a short date such as Sept 3, 2018 rather than September 3, 2018.Need help with this script, installing the scrip in acrobat XI program java script folder and creating a button on the toolbar in acrobat XI to launch the code.I have something similar setup in word 2010, but this seems to be much more difficult to implement in acrobat.All help is appreciated greatly.Thanks
Hi there,I am trying to use field data to populate text in the summary line using my submit button. Can anyone help me figure this one out? I have tried searching the forums as this seems like a typical thing, but I haven't had much luck...
Hello;I'm working on an Acrobat DC PDF form and need to have one field be able to extract the year (format: yyyy) from another field where the user enters the entire date (format: mmddyyyy). This second field (where the user enters the date) should also automatically add in the slashes once the user leaves the field. How would I be able to do this?Thanks for any help you can provide.
the js file is attached to the 1.7 PDF file.
Hello all,I wanterd to insert pages from one file into a mainfile, and this should be after every third page of the document.I created this js:this.insertPages({cPath:"Mainfile.pdf"});var start = 4;var jump = 3;for (var i=start; i<this.numPages; i=i+jump) {this.insertPages (i);i++({cPath:"Insertfile.pdf"})}But every time I want to run it, I get the error :syntax error: missing; before statement 4, in Zeile5.But I can't see any syntax error (I am not so good with js).Could you please help me? ThanksChristian
Hello, I have 19 various checkboxes that have unique names. I would like it so that if I check Check.19 that checkboxes 1-18 are checked. However, if you uncheck Check.19, they all are unchecked accordingly.The export value is the regular "Yes" currently.Thanks!
Is there any method in SDK which can be used to created AvDoc or PdDoc from Steam or MemoryStream?Basically I don't want to pass File's path but want to use its Steam or MemoryStream or even byte[] can be use.
Hello,In a PDF form I need to reset form fields via a Reset Button, and after that I need to do a go to label, because reset will clear a few fields that has been populated via a dialog display entry. I need to go back where the dialog started to get the data again via dialog fields. Your help and suggestion is appreciated in advance. Regards,Jeff P
Hi there, I am new to Javascripting and could use some help. I'm not even sure what this is called, but I want to have a list box of Available Options and have buttons to move items from that list to the Selected Options list box. Something similar to the screenshot below. Can anyone help me with this?
Hi all,comming from thread Re: Acrobat not releasing files, AV_Layer, AVDocDoSave(), AVDocClose() I'd like to clarify how I can work on the PDDoc API.My aim is to perform an OCR on a given document. To do so I've tried for example:ASAtom pathType = ASAtomFromString( "Cstring");ASFileSys fileSys = ASGetDefaultFileSysForPath(pathType, "C:/_TRANSFER/a4.pdf");ASPathName pathLaunchFile = ASFileSysCreatePathName(fileSys, pathType, "C:/_TRANSFER/a4.pdf", NULL);// AVDoc avDoc = AVDocOpenFromFile(pathLaunchFile, fileSys, NULL);// PDDoc pdDoc = AVDocGetPDDoc(avDoc);PDDoc pdDoc = PDDocOpen(pathLaunchFile, fileSys, false, false);PDAction myAct1 = PDActionNew(pdDoc, ASAtomFromString("PaperCapture"));CosObj onObj = PDActionGetCosObj(myAct1);CosDoc cosDoc = CosObjGetDoc(onObj);PDDoc pdDocNew = PDDocFromCosDoc(cosDoc);PDSaveFlags pdsaveflags = PDSaveFlags();ASProgressMonitor asProgressMonitor = ASProgressMonitor();PDDocSave(pdDocNew, pdsaveflags, pathLau
I'm trying the below code to get a stamp with the multiple input. Based on the selection of option buttons, I require the stamp to be updated. I'm unable to find the error. Could someone help pl.
I am attempting to create a timesheet and so far have managed to calculate time based on Decimal value, however I would like to convert the decimal value to HH:MM with using simple calculations. Reason for this is that the form will be used on IPAD and PDF expert which does not support some java script functions. I would like to split the decimal value into two parts being (for example 2.75 to two seperate values 2 and 75. However no matter how I attempt to escape the ful stop form the test java script below it will not split and provide the first value. (being 2)var c1 = getField("Lunch Time 2").value;var ctime1 = c1.split(".");event.value = ctime1[0];If the value of 2.75 is 2:75 and I change the javascript to split : it works no problem. Just so you know I have tried to escape the dot in many ways but cant seem to get it to work.I have tried("\\.")("\.")("//.")("/.")('\.")('\\.')('/.')('//.')and many others, but for the life of me dot just does not want to be the split po
I have Acrobat 8.1 Pro. The software has started me giving trouble stating it requires activation. I bought this software several years ago and I have original box with serial number. I have re-installed the software and entered the serial number. Whenever, I tried to make PDf from my AutoCad drawings - off and on it will not print stating the software requires activation. After repairing - the software will work for a week or so and then it will quit. There are times when I try to down load PDF files from the net - it will do the same thing. When I tried to register - it says we are unable to contact Adobe to register your product. Only thing, when I re-install the software - I did deactivate the software. I am afraid - I may not be able to re-install the software because of being older version. I am not sure Adobe will activate this older version.Can somebody advice me whether I could deactivate the software when removing it and I will be able to re-install the software and shall be
I have a control that activates the drawing tool in the "onFocus" event. I want to get to the selection tool when the user is done. Is that possible with Javascript / Events?
I created Application by Using SDK to convert Word document to PDF.It works fine but after conversation PDF file's size increases so much.15-20 KB Word document becomes 1 MB PDF file after conversation.How can I optimize the PDF file's size?
hi, i need javascript to manage my bellow issue. can u pls help me.. thanks in advance. "aa" field is empty, "bb" field also empty"aa" field have some value then "bb" field value = "cc" field value
Hello! So the need for this code stems from a long line of problems with solutions that only somewhat work. I need a text box in a fillable PDF form that someone can type any amount of characters into and have it fill the text box. Solution: Use Auto text size. Works great. Problem is, I'm using a font that cuts off some decendors (like j, g, y) when the text box is set to Auto, and I need to use this font. I have tried changing the text box size and adding spaces after the words. Adding spaces does work (it keeps things centered and just makes the font smaller) but it also results in the Text Overflow Indicator ( + ) on the text box, which unfortunately prints. To make the + stop printing, you have to change your acrobat preferences, and I am not interested in including instructions with this pdf for all my clients to change this setting locally on their computers. This PDF should just work for them seamlessly without adding unnece
I want a single button in pdf form to perform the below task:Copy the value of the first text field to second field and then reset the first field without changing the value of second field to which the original value was copied.I used the following script but it resets the both fields;first field = Text1;Second field = Text2;script:this.getField("Text2").value = this.getField("Text1").value;resetForm(["Text1"]);thanks
Im looking to create a company phone directory based from the import of a spreadsheet/delimited file. It would list the Department and each employee associated with the department as well as their extension.SpreadsheetDepartmentNameExtensionAdminJohn Doe1234AdminJane Doe2345BusinessHowie Doe7890BusinessMowie Doe5678PDF BuildAdminJohn Doe 1234Jane Doe 2345BusinessHowie Doe 7890Mowie Doe 5678Any chance this is possible?
I have installed the complete brother driver/software on 2 different Windows 10 PCs and get the exact same result. The printer prints just fine and communicates. However Acrobat crashes when I try to scan from Acrobat X. I have 3 other Brother printers setup on the same PCs and can scan ok from them.Open Acrobat Click Create, From Scanner, Custom ScanSelect TW-Brohter MVC - L6700DW LAN from scanner selectionClick scanThe Reading from device box appearsThe printer scans all pagesAn error message appears, Adobe Acrobat has stopped working
HiCan anyone help with a javascript for this scenario:I have a full length line of static text which is set in indesign, at the beginning of the line sits a dynamic text form field, within this field we have the following javascript that makes the text within the box dissappear when end user fills in the field.var message = 'final/balloon payment'if (event.value == '') { event.target.display = display.noPrint event.value = message} else { event.target.display = display.visible}PROBLEM (see link) - The text field when complete leaves empty character space until the static text begins. Is there any way the complete line can be dynamic? So it looks a complete line with no white spaces???http://ftp.splashprinting.co.uk:82/f/Screen%20Shot%202018-01-04%20at%2015.40.47.pngthanks in advance, note I am not a coder, i found the existing script online.
So I've been working at this for awhile. The situation is that users complete a form inputting their Last name, First name MI. The problem is they're supposed to include the comma between the Last name and First name but sometimes they don't. I tested the code below in W3Schools.com "Tryit Editor", and it works fine. It just doesn't in my PDF file. Here is what I have so far:function fComma() { var str = this.getField("01: Name").value; var res = str.replace(/,|\s+/, ',\n') this.getField("01: Name").value = res;}And I also don't know where to place the function. I currently have the function at document level and tried calling it from the Actions tab, the Format tab in Custom Format Script, and I tried it in the Custom Validation Script tab. None of them are working so I'm betting the script is messed up.Please help.
Please help. I am new to this and looking for a code to populate a text box with info from another text box by clicking a checkbox, and clearing the text box when the checkbox is unchecked.Thank you in advance.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.