Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Hello,My Action wizard keeps the last PDF processed open and that causes problem for me... I wonder if there is any way to close the last PDF item or may be exit the Adobe Acrobat Pro...?Regards,Jeff P.
Hello Team,This is with regards to an issue in Adobe Reader.We are using a custom SAP application, where user is having an option to generate the HTML page in pdf form and print the same (Once the pdf form is generated).The issue is when users try to generate the pdf from the HTML page , the pdf form is getting generated but the fields are not getting displayed, but when we double click on the pdf content then data is displaying.
So I spent hours making a complex fillable PDF form for a company, I understand how the email and download buttons work. I have done hours of research to try and get this working, using both the installed send mail function and making my own Javascript send mail button. What is happening is these buttons are not even clickable in browser, when I try to send via reader i get an error that says "we couldn't attach your file". The only button that works is the Print button. I am unable to get this to work in my Chrome browser which is what I need. Is there any way to get send email and download/save button to work on browsers? It seems pointless to have these buttons if you cant even use them. Any help is greatly appreciated!
Is there a Javascript function that will write the date printed date/time stamp into a PDF document when it is printed?Thanks,
Hi guys,Thanks for any help, I'm AWFUL with javascript and i've been scratching my head on this. I'm trying to figure out the right script for making text box tiers essentially. "Text1" is the lowest tier, and the last wanted option."Text2" is the preferred information. I want to make it so that "Text3" shows "Text2", but if it's not available, "Text1" fills it in.I've minimal to no javascript experience, so help with this is greatly appreciated!! I understand how to implement it for the most part under "Actions".Thank you!!!
We have been auto populating dates on pdfs for a little over a year. In the last week these dates have stopped populating todays date, now they just populate Oct 25, 2017.Here is the calculation we were using. this.addScript("init", "this.getField(\"general_document_date_today\").value = new Date();");We need help asap. Thanks
This is a followup to Calculating Age from DOB field in Acrobat but I'm opening a new question because every time I respond to an existing question in various techs support forums I get slammed. If opening a new question is the wrong thing to to here, I apologize.Using Acrobat X, I am trying to use this code in a field named Age to calculate age from a field named DOB (I'm sorry but I don't see an editing button to format it as code):event.value = "";var dobValue = this.getField("DOB").value;if (dobValue!="") {var dob = util.scand("dd/mm/yyyy", dobValue);var today = new Date();// compute age in millisecondsvar age = today.getTime() - dob.getTime();// convert age to years ( millsec in sec * sec in min * min in hrs * hrs in day * days in year)// truncate to whole years and adjust for binary floating point errorevent.value = Math.floor( age / (1000 * 60 * 60 * 24 * 365.2425) - 0.005);}The debugger throws the following errors. How can I fix these?dob is null11:AcroForm:Age:CalculateT
I have created a anonymous trusted function and stored in a .js file in the folder C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Javascripts. When I reference this file from Adobe Acrobat Pro DC, I am able to access the function based on a mouse up event. On a different computer that only has Acrobat Reader DC, I copied the js file to C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\Javascripts, but I get the following error:NotAllowedError: Security settings prevent access to this property or method.Net.HTTP.request:22:Field That account number is:Mouse UpRoutingAndTransitInfo = app.trustedFunction(function(cURL, aDoc){ if ((aDoc !== null) && (aDoc !== undefined)) { var params = { cVerb: "GET", cURL: cURL, oHandler: { response: function(msg, uri, e) { var string = util.stringFromSt
What development tool can I use to create a form field for pdfstamper?
I have some code in my document action "WillClose", but my script is called only once. Why this is happening?I have Acrobat DC.
I have a form that requires 7 day history from date of application. The user inputs the application date. I then have 7 separate fields that should auto calculate the past 7 days from the user input. For example: user input = 06/07/2018Prior 7Prior 6Prior 5Prior 4Prior 3Prior 2Prior 105/31/201806/01/201806/02/201806/03/201806/04/201806/05/201806/06/2018With the dates in the table above being auto-calculated in 7 separate fields. Let me know if I'm not making any sense. Also, here's something that I found to try and adapt to what I need, but my coding knowledge is small and not in Java at all haha so any help is appreciated.var dateString = this.getField("Date of Application").value; if (dateString=="") event.value = ""; else { var d = util.scand("mm/dd/yyyy", dateString); d.setDate(d.getDate()-7); event.value = util.printd("mm/dd/yyyy", d); } Thanks.
I have three issues with the IAC regarding annotations, here is a code snipped:CAcroPDPage aPage = PDF.AcquirePage( 0);for( int i = 0; i < aPage.GetNumAnnots(); i++){ CAcroPDAnnot aAnnot = aPage.GetAnnot( i); aAnnot.GetTitle(); aAnnot.GetContents();}First: aAnnot.GetTitle()/GetContents() seems to return the same string for each itteration - but not always.I tried to overcome this by inserting aAnnot.SetTitle( aAnnot.GetTitle()) which seems to work for now.Second: GetNumAnnots() returns 3 but there is only 1 Link and 1Text annotation in the File.I´m wondering why it returns 3. By exampination, GetSubtype() returns "Link" for the first itteration and "Text"for the next two. When I export the annotations to a FDF file I get the expected one (1) annotation.Same is true when I browse the annotations in Acrobat.Third: aAnnot.GetTitle() returns the author and not the title of the annotation. IAC SDK version is 6, PDF v
Hi Guys,Anyone can help me extract the first pages from a multiple pdf file and saving it in a single pdf file.Thanks in advance
I have the following validation script that is giving me a syntax error in line 2.if (event.value == "Nurse" || event.value == "Psychiatrist") { this.getField("ClassBE").display = display.visible; }else { this.getField("ClassAE").display = display.visible;}My desired outcome is to have a specific field display (ClassBE or Class AE) depending on what is entered in this field. So if Nurse or Psychiatrist is selected, then the ClassBE field displays. If anything other than those two are chosen, ClassAE should be displayed.Can someone please help me determine why I am getting this syntax error?Thank you!
I have a pdf document created in Adobe Acrobat DC with such functions. 2 checkboxes with a checkbox: you can tick "yes" or "no" or none of the above. Is it possible to write an automatic test which will test it?I still have a checkbox under the "OK" fieldto be marked or not. how to test it automatically?and I have a text field in which to enter text. How can you test it automatically?I am asking for a quick answer. how to create automated tests in adobe acrobat dc?That the form fields have been filled in by the user?text field - whether it is possible to fill in the formcheckbox:That the user selected a certain value, such as "yes"? -is it possible to select 'yes' oraz 'no'and whether it can be inactive - if none of the above is selectedand in checkboxes, whether the name is one in the document or another checkbox does not have the same name - because then selecting one, two are marked
All,I have a Fillable PDF that I created from an Excel file, and that Excel file has drop down menus in it. The descriptions in the drop down menu are long, and when pasted into the PDF drop down menu, it will only show a part of the text. After reading hours of other forums, I know that I have a few choices on how to make this happen. One is to use "\n" script and the other is to use Java script to write a code that will connect the drop down menu to a text box. However, I have no idea how to write either of those codes needed to complete those, nor do I have a good sense of where they need to go. Any help would be great! Thanks!
Hello,I have read several similar posts on various ways to do this, but I am still stuck. I am completely NEW to javascript. This is my first attempt!I've tried to copy similar JS examples, but replace with my labels, but i must be doing it wrong somewhere. I need to hide a text box based on a radio selection in two instances.I am running Adobe DC Pro.I have 2 radio buttons in a group with a text field box for each choice. Radio buttons are named "Group3" with unique names "Choice1" & "Choice2". Text field boxes are named "G3C1" and "G3C2"Goal: If Choice1 is selected, then text box G3C2 becomes hidden. Or if choice 2 is selected, then G3C1 becomes hidden.Can someone provide me with the exact JS for this?Appreciate any help - Thank you
Dear All,I need to add hundred Watermark in one PDF File and save each watermark pdf with each name. I have a text file which includes the watermarks. I already see the java script function but I don´t find much information I need. I found this piece of code and even not able to transform in my requirements - seethis.addWatermarkFromText({cText: "Text",nTextAlign:app.constants.align.center,cFont: "Helvetica-Bold",nFontSize:36,aColor: color.red,nStart: this.pageNum,nOpacity: 0.5});Anyone knows who to find a solution for this ?Thank you very much
As the title states, I need to know how to force a hyperlink to open in a new window within a browser.Our users will be viewing an online PDF training manual that has hyperlinks to YouTube videos. We need one of two things to happen and either solution will be a win for us at this point1) How do you make it so these links open in a new window/tab within a browser?2)How do you get the users to be placed back at the place in the PDF where they clicked the link? As of now, the links open in the same window. When the user goes back, they are left at the very top of the PDF again.All help is very much appreciated!Thanks
Hey my question is a bit of a mouth full.Trying to write a java script ( i believe this is the best way) for a button once clicked:Prints a water mark/ configures the header footer in all pdf pages after the first page. Button is on the first page of the pdf. The text for this water mark/ header footer, being dependent on 2 dropdown and a text boxE.gDropdown box called HSC, options are 1,2,3,41 selectedDropdown box called A/c options are 206,207,208,209,210,211,212,213211 selectedText box called reg, with the text "112/18"When the button is pressed the Watermark/header comes out as"HSC 1 A/c 211 reg 112/18"My understanding watermark is the best way to configure this.Any help will be greatfull.I am using Adobe Acrobat DC with all tools available.
I have a script that will split PDF files based on a set amount, so If I have a 1,000 page pdf, I have it split every 997 pages, I wish to modify it to split based on the actual size of the file.So if the file is 1,000 pages read it and split it too 2 seperate 500 page documents or if it's a 1,200 page document split it into 5, 300 page documents, so my end goal is too split it evenly if the file is larger than 1,000 pages.var re = /\.pdf$/i;var filename = this.documentFileName.replace(re,"");var n = 1;var nParts = Math.ceil(this.numPages/998); try {for (var i = 0; i < this.numPages; i+= 998){ var oNewDoc = this.extractPages({nStart: i,nEnd: (((i+997)>=this.numPages) ? this.numPages-1 : (i+997))});oNewDoc.newPage({nPage: 0});oNewDoc.addWatermarkFromText({cText: filename + "Part "+n + " of " + nParts,nStart: 0,nFontSize:36});oNewDoc.saveAs({cPath: "/K/Penta/Split/"+filename+"_" +"Pages_" + (i+1) + "-" + (((i+998)>=this.numPages) ? this.numPages : (
Hello,I work for a finance company that uses an uses a designated department for larger loan approval. There are multiple documents that are generated already as form pdfs or are hand written and scanned to a network drive. For a example the required documents that are to be sent are a: Coversheet(form pdf), Loan Scoring(hand written), Application (originally pdf, but printed and some hand written then scanned), and a credit report (pdf). All in that order. Right now, we currently print/hand write everything and scan it all back in to the network drive as one file and e-mail it. What I'm interested in doing is minimizing the printing and creating a button on the Coversheet that will allow me to import the have to be scanned items (which generate as pdfs) and the credit report, and output to a new file that has the forms flattened and the separate pdfs combined in order. ALL WITHIN ADOBE READER. Now I'm not fluent in JavaScript at all so I'm sure this is a tall order, and I wouldn't be
I have a regex which should find a string pattern of any of the following formats28.05.2018 SB RS CS 28-05-2018 SB RS CS 28/05/2018 SB RS CSThe regular expressions matches the first example with the full stops in the date, but does not match the second and third example with the dashes and forward slashes in the date.Can any one please advise how to correct the regular expression so that it matches a dash or a forward slash?Any assistance will be most appreciated.This is part of a script which matches the string and reports it back to the console.var ckWords4; // 4 words to testvar re = new RegExp(/\d{1,2}[/.-]\d{1,2}[/.-]\d{2,4}\s([A-Z]{2,5})\s([A-Z]{2,5})\s([A-Z]{2,5})/);var count; // count number of wordsnumWords = this.getPageNumWords(0); // number of words on page // loop through the words on page for (var j = 0; j < numWords-1; j++) { ckWords4 = this.getPageNthWord(0, j) + ' ' + this.getPageNthWord(0, j + 1) + ' ' + this.getPageNthWord(0, j + 2) + ' ' + this.getPag
Hi all, I can't seem to solve this problem. I am writing a C# desktop app that lets a user view a PDF file and then the user will have an option to delete that file.I first call the LoadFile("FileName") Function. My problem occurs when the user has finished deleting the file I can't figure out a way to clear the document from the AxAcroPDF object. It has been really bothering me. I need to figure out how to clear the document from the AxAcroPDF object. Could some one please help me out? Thanks In advance. -Adi
Hello all, I have several PDF documents that are over 1,000 pages in length and need to rearrange them from their default page order. Each page of the document has a name on it and each page must be placed into alphabetical order based on the name. I have already generated a work around script outside of Acrobat that will output the proper page order, what I am trying to do at this point is to get Acrobat to place the pages in order according to my generated list.Example of issue:I have a list of pages the document should be in (4,782, 43, 125, ect...) and need to have the document rearranged into that order. This involves moving every page of the document.Any help in this matter would be greatly appreciated, I'm an Acrobat noob.P.S. If there is also a way to get a script to generate the proper alphabetical order based on the name in Acrobat in addition to also placing the pages in the proper order would be great, that way we can keep it all in one application.
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.