Unlock the power of Acrobat SDK through our community.
Recently active
I am writing an Acrobat Javascript script. How can one embed or call some Python code in an Acrobat JavaScript script?
Does anyone have advice on how to translate from the PDFEdit layer to the PDSEdit layer?I'm writing a plugin for Acrobat Pro to help with accessibility programming but have run into a problem: I have a selection server where a user can select a PDEElement/PDEContainer on a page, but I cannot find a method to retreive the associated PDSElement from the structure tree using the selected PDEElement or Container.I can go from the PDSElement to a PDEElement, but have not found a way to go in the opposite direction. Any tips?
I use an Excel macro to copy and rename PDF files based on data contained within the spreadsheet. Each of those newly created PDFs have multiple extablished Acrobat Actions that must be performed on them. Is there a way to incorporate/copy those Actions into Excel, so that I can simply assign a macro to run each of them? Running MS365 and Acrobat Pro DC.
Hi! I have created a list box in Pro DC but I want the selected item values to appear in another text box as soon as they have been chosen. If an item has been clicked by mistake it should also be possible to remove it from the text field. How would I begin to create this?
Hi, I have a fillable PDF I have created in Acrobat - I am trying to create a senario where everytime the user opens the master PO form I have created a new PO number is generated sequentially (ideally starting at 0001) in the "Invoice" field of the form. I have read lots of threads on similar questions, however I am trying to achieve the following:User opens master documentThe generated number appears in the "Invoice" field e.g. 0002The user then "saves as" on computer and gives the document a name - lets give it the name "PO-Form-0002"The user completes the form and fills in all the fieldsSaves and closes the formWhen the document "PO-Form-0002" is reopened I would like the "Invoice" field to maintain the SAME number it generated origianlly - as per this example it would be 0002. When the master document is opened next the "Invoice" field generate the number 0003 and the user the saves the file as "PO-Form-0003" and so on. Can anyone advise me with a p
Hello there, Maybe you can help with some Javascript code:: I would like to add a javascript code to a check box: so that with activation of the box (first click) the color of an associated text fieldchanges from white to red, and with deactivation (second click) the color of the text field changes back again fra red to white.The text color, black, remains constant. It is like making an on/off switch to the backround color of the text field.If there is a javascript geni out there who can help this uneducated man with a couple of lines of javascript, I would be foreever thankful.A reference to an on/off function in javascript would also be deeply appreciated. Using acrobat pro DC, or v.9 windowsI am a beginner with javascript, and have just started to learn this miraculous progammering language with serious effort.. Many thanks.Michael H (Copenhagen DK)
I used acrobat to export several thousand emails to a pdf portfolio. (Worked great by the way and I love the way attachments to email stay attached as links to pdf.)I now need to count the number of documents in the portfolio. Found this question with an answer in the forum here: How To Display Acrobat Portfolio File Count in DC? Answer involved using the javascript which I'd never done. I opened the debug console and followed the instructions in the post. I get an error. So, (1) is there any way to do this without using javasript or, if not, (2)what am I doing wrong. What I did: Opened console and typed:app.alert("This portfolio has " + this.data.Objects.length + " files attached to it.",3);When I select the text given and use Cntrl-Enter, get this error: "TypeError: this.dataObjects is null1:Console:Execundefined No document within portfolio is open, though I am seeing preview in bottom pane (which I don't know how to get rid of)
Hi, my interative pdf contains multiple image fields where the client has to click on each each field to insert an image. Is there a way that my client can insert as many as 100 images in one click? Or perhaps if they can insert a photo album directly from the PDF?would highly appreciate your help with this. PS my clients will be using Acrobat reader.
Hi,We are updating PDF document properties (Title, Description, and Keywords) from SEO perspective but when we save PDF then it removes the custom properties (which are already added by our client) automatically. Why is this happening and how can we avoid this?Thanks in advance.Regards,Kamal
Our OCR ability keeps stopping. Getting a message that it might be corrupt. If we reinstall it will work for a week or two and then we get the same message again...Anyone have any ideas. Getting tedious reinstalling the program...
Hi.I want to compress a PDF by C#.Please tell me three questions. 1. Acrobat SDK can compress a PDF by C#?I want to sample source code.2. Can I try it for free?3. If use Acrobat SDK, I think need Acrobat application.So, what do you need, Acrobat Pro or Acrobat Standard? Thank you.
I have created an interactive pdf (from InDesign) with a set of rollover buttons in the contents panel. These used to work fine when viewed in Acrobat a few months ago (July 2021) but since then they don't seem to be displaying correctly any more. There are a set of rollover buttons with actions set on each one to hide / show the 2 different rollover states. These actions seem to work fine when viewd in Acrobat but the hyperlinks don't seem to work straight away. Click once and you see a small section of the page it is meant to go to - within the space of the button. If you click a second time it then shows the whole page linked to. Seems to display fine if I open in a web browser but not if I open in Acrobat DC. Are there known issues with display of interactive pdfs in Acrobat DC? In the file attached - it's just the first button that I've set up on the Contents page (SWP overview). Clicking on it you might see the same problem.Thanks
Hi there, I'm creating a fillable timesheet where the individual needs to select the meeting (either by check box or drop down menu, open to whatever is easiest). When they select the meeting I'm wanting a text box at the bottom of the pdf to autopopulate the general ledger code. Is this possible, and if so, how do I go about creating that? I'm using Adobe Acrobat Pro.
Hi, I am hoping to achieve a dynamic dropdown like functionality using a text field and list box. The purpose of this is because from what i have seen, there is no functionality in Adobe or javascript templates to begin from to be able to filter a dropdown from keystroke actions. I have seen suggestions to use a textfield for users start typing to then dynamically filter by keystroke a listbox below. they can then select from the listbox and the selection will populate the textfield. this would essentially emmulate a dropdown style. ie. if a user typed "j"/"ja"/"jan" it would display the words "Janus" or "January" to show in the listbox. I have found some example scripts for livecycle using xfa script connections and xml files to do this, but nothing for acrobat. I am intermediate at javascript, but for this i dont know where to begin. I am guessing maybe to use thisgetField("").search or thisgetField("").match functionality... but i just done know w
function bookmrk.GetByTitle stoped working as it should. It worked properly early. We tried to reinstall then Acrobat, but it didn't help.Here is VBScriptSet MainPartDocument = CreateObject("AcroExch.PDDoc")MainPartDocument.Open("C:\1\1.pdf")Set bookmrk = CreateObject("AcroExch.PDBookmark")'on the next line function returns False, although the "bookmark" exists. Why?res = bookmrk.GetByTitle(MainPartDocument, "bookmark")msgbox resif res thenmsgbox "bookmrk exists " & bookmrk.GetTitleend if
Hello,I have found the following Javascript code (from here Re: Check to see if any field is empty) and join code && f.page =="0" to check page1, text and check box can show right, but if checkbox is same name ex:checkbox#0 checkbox#1 ,it will not showing into alert, how to identify code ,thank you for help!var emptyFields = []; for (var i=0; i<this.numFields; i++) { var f= this.getField(this.getNthFieldName(i)); if (f.type!="button" && f.required && f.page =="0") { if ((f.type=="text" && f.value=="") || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name) ; } } if (emptyFields.length>0) { app.alert("請輸入下列欄位 \n" + emptyFields.join("\n")); }
Hi, I'm having trouble editing a PDF in Acrobat. I activated the Adobe Garamond family and see that it's in my active fonts tab. However, when I try to make edits on a PDF, it's not in the fonts dropdown list. How can I get it in there so I can select it to be used to edit with in Acrobat? Thank you.
One of my fields (Type field) I have is a drop down list with options RFC, ADM, REB. I would like to create a condition if either ADM or REB are selected from the drop-down list to require the user to select either a quarter checkbox or a month AND enter a year. Is this condition possible with the version of Adobe I am currently using? The 2nd image below shows the options that I have available. Thank You.
I recently purchased a new Macbook Pro with OS X El Capitan Version 10.11.4. I tried installing my Adobe Creative Suite 4 which I've had since college. All of the programs seem to be working, at least for the most part, except when I try and open Acrobat Pro 9 I get a Repair Setup message that says: "Acrobat has detected that there are missing components that require repair. Select the optional components you would like to pre air and click Continue. Deselect a component to completely remove it. Click Cancel to cancel the component repair process." The components it's saying need repair are Adobe PDF Printer and Adobe PDFViewer Safari Plugin.No matter which option I select, whether it's Continue or Cancel or deselect the components the same thing happens. Which is absolutely nothing. The window goes away and the top toolbar only shows the word "Acrobat", but I can't click on it to see any drop down options, there are no other options on the toolbar. The only thing that I can do is forc
Hi AllI've looked through some of the other posts but could find any exact info. I have some users who have a pdf template where they fill in a whole bunch of information. I was looking to do an application that would fill in most of the pdf form for users with name address etc and then the users would complete the rest of the details as they received additional information. They only have Adobe Reader DC (as do I at the moment). I downloaded the SDK and setup in C#. I'm wondering if I need the full Acrobat DC to be able to develop the application which is then used by users with Reader, or is there a way to do development work with just Reader installed?Note: I've tried some 3rd party apps but it looks like once you fill in the form and save it, it is then no longer modifyable with Adobe Reader presumable due to the digital keys no longer being Adobe.Any help would be greatly appreciated.CheersPeter
Through extensive searching, I came across this post from 2009, but I'm sure quite a lot has changed since then. I have a macro in Excel VBA which executes a number of operations on a workbook, and I want it to automatically export the results to PDF using the Acrobat add-on so that it can create bookmarks for each sheet in the workbook. I also found this code (VBA), but I don't really understand it, so I can't update it myself: Dim AcroApp As Acrobat.CAcroApp Dim AcrobatDoc As Acrobat.CAcroPDDoc Dim numPages As Long Dim WorkSheetToPDF As Worksheet Const SaveFilePath = "C:\temp\MergedFile.pdf" Set AcroApp = CreateObject("AcroExch.App") Set AcrobatDoc = CreateObject("AcroExch.PDDoc") numPages = AcrobatDoc.GetNumPages For Each WorkSheetToPDF In ActiveWorkbook.Worksheets If AcrobatDoc.InsertPages(numPages - 1, WorkSheetToPDF, 0, AcrobatDoc.GetNumPages(), True) = False Then MsgBox "Cannot insert pages" & numPages Else numPages = nu
I have this code from everything I found on the internet: var E = this.getField( "Text16").value; // the value of field E is line 7; var F = this.getField( "Text17").value; // the value of field F is line 8; var G = this.getField( "Text19").value; // the value of field G is line 10; = MIN(E,F,G) ;// else value is minimum of line 7, 8 or 10; Can anyone help me figure out why this is not returning a value? Please note that all of these fields are calculated values. Not sure if that matters.
How do I set text field default properties? The forms creator set font sizes that are too large.
What our team would like to do here:A user chooses if they Have or Need to Develop a skill. Each H chosen passes a 0. Each D chosen passes a 1 and calculates the % total. 0/33/66/100 is possible. Each H and D need a different box name, like Have1 and Develop1 and so on through possibly 300 skill levels. It seems something along the lines of:var total = 0;for (var i=1; i<=1; i++) {var f = this.getField("Check Box"+i);if (f.valueAsString=="1") total++;}event.value = total; should be a starting place, but I don't think it's that simple. We don't want to have to use the Pick option in Calculate. Thoughts anyone?Thanks!
Hey Everyone, I have data in a flask API that I want users to load into their custom pdf forms. My problem is finding documentation on how to approach this. My idea is that I have the user run javascript from the pdf (hit a button); have them enter a # in an app.alert window and then use the entered # for a HTTP GET request to flask which will then show the data. Which is where my problems start on how to best set this up, I've found the following code on the forums here which I hoped to utilize. var url:String = "wwvv. URL GOES HERE/Script?number=007"; var importer:URLLoader = new URLLoader(new URLRequest(url)); importer.addEventListener(Event.COMPLETE, onFileLoaded); function onFileLoaded(e:Event):void { var importer:URLLoader = e.target as URLImporter; var importedVersionText:String = importer.data; dataImported_txt.text=loadedVersionText; } My questions boils down to the following:What is the best (data-)format to hand fielddata to a
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.