Unlock the power of Acrobat SDK through our community.
Actividad reciente
Hi. I have a script that is meant to crop a pdf permanently by setting the media box to the crop box.However when I run it I get the following error:for(var i=0;i<this.numPages;i++)var rCrop= this.getPageBox("Crop",i)this.setPageBoxes("Media",i,i,rCrop)TypeError: Invalid argument type.Doc.setPageBoxes:1:Console undefined:Exec===> Parameter nStart. any help would be much appreciated.Thanks
I know you can set a portfolio in the way that the "Cover Sheet" is displayed when the portfolio is open. In my use case I have one pdf file as "Cover Sheet" and a folder with other pdf files. Is there a way to force that the "Cover Sheet" is displayed when going back on the top level of folder? Becauce after working with files in folder and going back the "Cover Sheet" can be displayd only from view menu. Javascript would be also solution. The reason for this that I would like to allow user to review the files in folder and after than sign the complete portfolio, which as far as I know is only possible from "Cover Sheet".
I have two template pages that are spawned successfully 1 time each with this code I extracted from the SDK:var a = this.templates; for (i = 0; i < a.length; i++) a[i].spawn(this.numPages, false, false); Unfortunately the file size became rather large with multiple spawns, so I then tried to generate them as XObjects using the code also found in the SDK as it indicated it could reduce filesize; I tweaked the code below to only spawn one time by changing the 30 to a 1. var t = this.templates; var T = t[0]; var XO = T.spawn(this.numPages, false, false); for (var i=0; i<30; i++) T.spawn(this.numPages, false, false, XO); The problem I am having is that it only recognizes one of my two templates and never spawns the second one. I have tried several different things -- all found on the internet and in the SDK as I'm quite the learner at this -- and hav
Hi, We have an application hosting the WebBrowser control and we have some very large enterprise customers who use it to view PDF files. They have been running into a very consistent crash in PDF reader but only when full Acrobat is installed. I created a very minimal WebBrowser control application and I can reproduce this crash, but I can't tell why Acrobat is crashing. The crash always happens in RtlEnterCriticalSection as it is called from Acrobat.dll. We have multiple dump files (although they all look the same). Can I get someone from Adobe to help us debug this issue? Would it be possible to get debug symbols for the Acrobat.dll to get a better idea of what might be happening so we can try to find a workaround? We did find that if we left a pop-up open with Acrobat loaded then the crash would not happen in subsequent pop-ups, so we were pursuing that as a workaround, but we then found that the workaround doesn't work if the pop-ups are loa
My PDF includes 10 pages total, with two of those pages being fillable forms near the end of the document (no signatures included). Both forms have their own submit button. I am trying to find a way to use the submit button to email only the one form that the client chose to fill out. The way I see it, there are two ways this could be accomplished:-Have the submit button only send one page of the PDF, instead of the entire document (I've seen in a few different places that this is impossible)-Use JavaScript to construct an email, and populate the body of the email using the form fields. (I'm sure this is possible but I've no idea how to script this) Emailing the forms as .tmp or .fdf files, etc. isn't an option because it is intended for less-than-tech-savvy users. Can someone point me in the right direction?
I am currently trying to help someone with an adobe problem without being too experienced in it myself. I was working on a different machine via zoom and trying to try and replicate the problem but I was unable. By not working as it previously he means the "who needs to sign" feature (I will attach pictures)When he clicks the Fill and Sign tool it does not give him the option and sends him directly into to sign the form.Had him sign out of the creative cloud and close all apps and reopen.With my up to date version of adobe on my machine I was able to access the “who needs to sign” feature before signing the formHad him update his version of adobe and verified we were on the same version.The problem continued for him but worked correctly for me on the same adobe version.Uninstalled adobe from the cloud and checked for other versions on the machine.No other versions on the machine.Reinstalled adobe and the problem still persisted.Checked adobe signature preferences and did not find
I am new with automation to adobe I have a pdf file that is created by a third-party appThe pdf file contains elements that when the user click on them a popup menu appears. I want to interrupt with the menu item or add a new menu item which perform an action when clicked. I dont care if the code is implemented with Visual Basic, C#, Java, JS, VBS or in any other langue. What are the tools i should use (Acrobat SDK, pro license of adobe...) ?
I am developing an VB.Net application (.Net 4.0 framework) in Visual Studio 2013. I have a control that includes an instance of the AxAcroPDFLib.AxAcroPDF control (named pdfViewer in the user control) from Adobe Reader XI. This app can have between 2 to 8 instances of the user control, so there can be multiple instances of the AxAcroPDF control. I'm having no problems loading files into each instance of the control. The problem I am having is that when the user selects the Print option from the toolbar at the bottom, the printer selected is only retained for a yet-to-be-determined number of minutes, then it seems to reset back to the Default printer. What could be causing this? The only method I am invoking is the LoadFile(), once to load with a genuine file to view, and once with a "BLANKPDF" value to get the control to clear itself out. Any ideas?
Hi, I'm having trouble exporting field names and values to an excel file using vba code. I'm pretty sure the code worked until a few weeks ago. I'm working with Acrobat Pro DC version 2020.012.20041 and excel 2016 (16.0.5071.1000) 32 bitsI have references to Adobe Acrobat 10.0 Type library & AFormAut 1.0 Type LibraryI'm sure the acrobat document (file attached to this post) has fields as the program lineDebug.print Fields.count gives 108 as result The codes gives an error on the line.For Each Field In Fields It seems it does not recognize Field as an element. I cannot find anything on the internet that indicates something changed. Any help would be very much appreciated. Here is my entire codeSub AcrobatLezen()Dim row_number As LongDim AcroApp As Acrobat.CAcroAppDim AcroDoc As Acrobat.CAcroAVDocDim Field As AFORMAUTLib.FieldDim Fields As AFORMAUTLib.FieldsDim AcroForm As AFORMAUTLib.AFormAppDim MyFile As StringDim ws As WorksheetDim x As Integerrow_number =
Hi , i have 2 radio buttons (T+2 & choice T+3 ). If i select choice 1, the value input in text field (T + ?) column should be 0 ≤ 2 and choice 2 should output 3 ≤ 11 number. How to script this . Attached below is the snapshot of form.Please help and thanks in advance.
HI, I WAS WONDERING IF YOU CAN HELP ME WITH THIS ISSUE... I HAVE A FORM THAT HAVE 15 FIELDS EACH FIELD HAVE A DROPDOWN LIST WITH 3 OPTIONS TO CHOOSE: LIB., REC., AND SCAN AT THE BOTTON OF THE PAGE ARE 3 FIELDS: LIB., REC, AND SCAN TOO. NOW... I WANT TO PUT IN THOSE 3 FIELDS FROM THE BOTTOM OF THE PAGE, THE COUNTED AMOUNT OF LIB. FROM THE DROPDOWN LIST, THE REC., AND THE SCAN FROM ALL THOSE 15 FIELDS. [Email address removed by moderator] Thank You!
I cannot find my recently opened files for a particular day. I need to retrieve an unsaved file form that day but I cannot find any single I opened on that day. I went to one of the saved files that I opened that day and checked when last it was accessed and it said it was accessed on the day that particular day. However, according to the recently opened file list on my Adobe Acrobat Reader DC, I did not open /access any file on that day. Please does anyone have any idea on how I can navigate this or retrieve the unsaved file? I have tried using the time machine on my MacBook and using a code on my terminal but it did not work.
I build and install computer images for faculty and staff at a university. Some of these users elect to purchase Acrobat Pro DC in the perpetual serial-number edition to keep the software with the machine through staff changes. I install the software at build-time and the software cannot get out onto the internet. When the computer is in place and connected to the network, the user is prompted to enter their Adobe ID to register the product. Upon successfully entering their adobe ID, the product closes without error. The product is not registered.Next launch the process repeats. I have:- run a repair on the installation. - uninstalled, and re-installed the product- run the uninstall and clean utility to remove the product, and any other acrobat-related software and settings, then re-installed. - Attempted sign-in with various adobe user accounts. - Downloaded the latest serial-number installer from: Download Pro or Standard versions of Acrobat DC, XI
I apologize in advance if this is confusing. So I have a dropdown ("dh1ZoneDD") - with options: 1, 2, 3, 4I have a textbox ("z1GPP1") that will receive/display the info based on the selection of the DD.And I have 4 textboxes that will have some calculated data (we can call these "GPP1", "GPP2", "GPP3", "GPP4") if the dropdown selection is 1 - "z1GPP1" will display the value that is in "GPP1". I've tried a few approaches when it comes to coding this solution and I can't get it to work beyond displaying the first value from GPP1 when the DD choice is 1. Any bit of help is greatly appreciated! <This Code is placed in "z1GPP1">var z1 = this.getField("z1GPP1").value; var z2 = this.getField("z2GPP1").value; var z3 = this.getField("z3GPP1").value; var z4 = this.getField("z4GPP1").value; if (event.target.value = 1) { this.getField("dh1ZoneGPP1").value = z1; } else if (event.target.value = 2) { this.getField("dh1ZoneGPP1").value = z2; } else if (event.target.
I have a fillable PDF that is working how I want, but I'm wondering if I can make a document javascript that makes it easier for me? The forumla looks like this,(MHPF1)*((InstalledRow1*.6)+(GlazedRow1*.3)+(CaulkedRow1*.1)) = Completed Man Hours Instead of writing this for every Completed Man Hours row, can I make a document javascript to complete this? I attached the PDF for some help. How would I make it do this for each row?
Hey everyone, I'm hoping to use <table> formatting in a message (as a workaround for not being able to extract and mail a single page in acrobat reader) As an example heres how I populate one of the tables in js; var waarschuwadressen = "<table cellpadding='0' cellspacing='0' border='\'><tr><th>#</th><th>Naam</th><th>Telefoonnummer</th><th>Mobiele nummer</th><th>Pascode</th><th>Pincode</th></tr>" var y = 0 for (var i=0; i<waarschuwadressen_.length; i++) { //pak de datavelden var y =+ 1 var naam = this.getField("C_Naam_"+waarschuwadressen_[i]).value; var tel = this.getField("C_Telefoonnummer_"+waarschuwadressen_[i]).value; var mob = this.getField("C_Mobiel_"+waarschuwadressen_[i]).value; var pascode = this.getField("C_Pascode_"+waarschuwadressen_[i]).value; var pincode = this.getField("C_Pincode_"+waarschuwa
I have options A, B, C, D, E and others. Depending on what I check, I want to list the corresponding values in the Risk field - if there is more than one, separated by commas. See attachment. Can you help me, please?risk.pdf
As a frequent user of the acrobat documentation, I run into dead and non-functional links everywhere.Without my bookmarks, I would have to give up if I was just relying on Google. Some highly indexed pages on Adobe docs have become useless. Some starters for badly maintained documentation:https://www.adobe.io/apis/documentcloud/acrobat/docs.htmlIndividual section links under headings are just one block-link to the last section (e.g. all links under “Javascript for Acrobat” link to “Batch Sequences”) https://www.adobe.com/devnet/acrobat/javascript.htmlThe primary link to the documentation “Developing Acrobat applications using JavaScript” is dead. The other linked resources are outdated.In general there are zillions of links on the web to https://help.adobe.com/livedocs/acrobat_sdk/9/Acrobat9_HTMLHelp/JS_Dev_Overview.71.1.html, it shouldn’t be a 404. It would be really helpful to developers if Adobe could clear up these pages. The documentation website also has a con
I have a pre-fillable user form in PDF format. I need to add a submit button in the PDF, which runs the javascript code. When the button is clicked, I need to save the PDF file into a MoveIT folder location. I am newbie and not sure how to start. I researched in adobe community and found few ways on saving the file but i dont see anywhere about how to save it in location where we need to pass in user credentials to access the file location and save the file there. Does anyone know what is the best way to save the files in a secured location? Thanks in advance
Hello Friends, I am trying to write a script that will change a fill color based on a calculated field's event value, but I am having trouble getting the effected field to change both colors. This is the script I currently have that will not work; if (Number(event.value)>1)app.alert("Total Beneficiary Allocation exceeds 100%");if(event.value == 0)event.target.fillColor = color.white;else if(event.value < 1)event.target.fillColor = color.yellow;else if(event.value > 1)event.target.fillColor = color.red && event.target.textColor = color.white;elseevent.target.fillColor = color.green; The script works perfectly fine when I remove "&& event.target.textColor = color.white", but gives me "invalid assignment" when entered. All help would be greatly appreciated! Thank you,Eric
I'm hoping someone can help me figure out how to resolve my text field not calculating properly.I have a text field name 'TotalOTHrsEmp1'. I click on 'Calculate' and choose 'Value is the' and pick the fields I want to calculate the hours. There is one particular text field I am having a problem with calculating. It's a checkbox that populates '1' to another text field. When I check the box the hour doesn't add up, but when I uncheck the box the hour does add up. That's not what I want, I want the '1' hour to add up in the 'TotalOTHrsEmp1' text field when the box is ticked. Here is what I have set up...The checkbox is named 'TravelTimePdEmp1'. The text field is named 'TTPdEmp1' and in this text field I have a custom calculation script as follows, var a ="";if (this.getField("TravelTimePdEmp1").value == "Yes"){a="1";}event.value = a;Thank you in advance for any help with this!
So.. I know nothing about JavaScript. Simply tooling around with PDF as a potential proposal tool. I'm trying to apply operators (less than, greater than, equal to) to an existing output "Propsal Score", that will create an output in a second box "Accountig Type". If my Value Sum from "Proposal Score" is between 0 an 50, how do I have the second text box populate:"Cash Basis" if the Proposal Score is 0-10 "Hybrid Basis" if the Proposal score is 11-30"Accrual Basis" if the Proposal score is 31-50Really appreciate any help!!!
I only want to protect certain fields that I will fill in. The rest must be completed by the person receiving the form.I have found an answer on this topic from: AkanchhaS but your link is going nowhere.Could someone tell me if it really can be done. I would appreciate information or a link where you can find it.
For below spltePDF function(from Adobe forum), it works fine for most of PDFs, but for some PDF (pdf is editable, no any protection, no image) can't be inserted by .InsertPages() function and return false, but he the PDDoc2.DeletePages function works welll. who can tell why?Function SplitPDF(MyPath As String, strFileName As String) As IntegerDim PDDoc As Acrobat.CAcroPDDoc, newPDF As Acrobat.CAcroPDDocDim PDPage As Acrobat.CAcroPDPageDim thePDF As String, PNum As LongDim NewName As StringDim i As IntegerDim Result As VariantDim Filename As String'...If VBA.Right(VBA.Trim(MyPath), 1) <> "\" Then MyPath = MyPath + "\"End IfthePDF = MyPath & strFileNameSet PDDoc = CreateObject("AcroExch.pdDoc")Result = PDDoc.Open(thePDF)If Not Result Then MsgBox "Can't open file: " & Filename Exit FunctionEnd If'...PNum = PDDoc.GetNumPagesFor i = 0 To PNum - 1 Set newPDF = CreateObject("AcroExch.pdDoc") newPDF.Create &nbs
Good morning everyone, Scenario I have two fields: A: a textfield (nos pecific layout set) , B: a textfield set to a date layout. I'm looping through the fields for reasons, and am looking for a boolean check where B results in true (fields with date layout) and A results in false. Thank you in advance for any trouble to be taken, Sincerely, Wardenburg
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
¿Ya tiene cuenta? Iniciar sesión
¿Aún no tienes una cuenta? Crea una cuenta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.