Unlock the power of Acrobat SDK through our community.
Recently active
Hi,I'm trying to create a checklist form, and want to check off the line item only when the requirement is obtained. It doesn't have to be in order. I'm not able to make the boxes act separately. Right now if I check one, it checks all of them. Can someone help?
Hi. I have a simple javascript that will convert highlight annotations to redactions. That works well. However it would be better if I could also use the rectangle (or other shape) annotation. But i cant get the script to work. It just deletes the annotion, I am assuming because I need to somehow specify that the redaction box be the same size / location as the rectangle. Is anyone able to help? Here is what i have so far: var annots = this.getAnnots();for (var i=annots.length-1; i>=0; i--) { if (annots[i].type == "Rectangle") { this.addAnnot( { page: annots[i].page, type: "Redact", rect: annots[i].rect, overlayText: "REDACTED", alignment: 1, alignment: true,
While running the SDK examples on Windows 11, in attempting to run the ActiveViewVB sample from the Acrobat SDK, when opening a PDF file, instead of the file opening in the PDFView form, an external Acrobat window is loaded and the PDF is shown in Acrobat window (completely outside of the ActiveViewVB application). Is there updated guidance on how to use the OpenInWindowEx functionality with Acrobat DC in Windows 11 that is not reflected in the SDK examples?
(I posted this in Acrobat Discussions 3 months ago, with no response, so I'll try here instead.) I am having problems with some PDFs created using Perl package PDF::TableX with PDF::Builder, on Windows 10. When created with no compression, Adobe Acrobat Reader (64 bit free version) displays it fine, but with Flate compressed streams, the PDF loads but is overlaid with a dialog "An error exists on this page. Acrobat may not display the page correctly. Please contact..." Press "OK" and everything seems to be fine, and Acrobat does not request permission to save the (changed?) file upon exit (as it normally does if it fixed something upon load). I have been trying for ages to find what's wrong with the PDF (compressed version) and have found nothing. Everything seems to be clean. I even ran PDFtk against it to created an uncompressed version, which displays without error, and the streams appear to be identical in size and content with the originally uncompressed version. 01compr
I have an Acrobat form with a checkbox that checks another checkbox. I have used the mouseUP action in the original checkbox to Run a Javascript to check the 2nd checkbox which works.If I uncheck the original checkbox, the 2nd checkbox still has a checkmark. I have tried many solutions, but have not found success.My mouseUP JS in the original checkbox is:if(event.target.isBoxChecked(0))this.getField("200Plus").checkThisBox(0,1); Go easy on me, as I barely know how to spell Javascript.Thank you.
Acrobat is forcing me to combine 2 PDF documents as a PDF Portfolio File. OK, got that done, but I need to rearrange the pages and i can't drag and drop. What am I doing wrong?\
Hello Everyone, I have created two form lines. First one is tagged "PurposeOtherDetails01" and the second "PurposeOtherDetails02". Within the first tag - properties - format, I created a custom script: if(event.willCommit||event.fieldFull) {this.getField("PurposeOtherDetails02").setFocus();} This should push my text into the second line form when the first one is full, which works fine. I am, however, running into an issue when copying and pasting into the form rather than typing it out. You can see from my screenshot below it cuts off and does not go to the next line. Does anyone have a solution? Side note: I am using the copy and paste method because a user will be entering details in a different UI and the software will map it onto the PDF. Thanks!
i dreew a line once i remove it the redline disappears
We've got an interactive PDF. There are 23 pages in total, but many of these are duplicates with slightly different content to enable interactivity. For example page 2 has 4 options to click and so we have created 4 very similar pages with slightly different content depending on which of these options has been clicked. We have renamed the pages so pages 2, 3, 4 and 5 all show up as page 2 (see image for clarification).However, it's still showing that there are 23 pages in total. We want it to look like there are 8 pages in total. Is there a simple way of changing the total number of pages shown in Adobe Reader, or do we have to change how the document is set up in InDesign completely to achieve this?
I have the folowing VBA code that successfully creates two signature fields in PDF and then stops with Object Required error at Set oAttachment = oJS.ImportDataObject(Selected_File). Any ideas how to make it work?===========================================================================================================Sub Prepare_PDF()On Error GoTo Err_HandlerDim pdfPDDoc As New AcroPDDoc, oJS As Object, oFields, oAttachment As ObjectDim strFName As StringDim oParam As Parameter strFName = "C:\Main.pdf"'------- Select XLS file to embed ----------With Application.FileDialog(msoFileDialogFilePicker).AllowMultiSelect = False.Filters.Add "Excel Files", "*.xlsx; *.xlsm; *.xls; *.xlsb", 1.ShowSelected_File = .SelectedItems.Item(1)End With '------- Add signature fields to PDF file----------If pdfPDDoc.Open(strFName) ThenSet oJS = pdfPDDoc.GetJSObjectSet oFields = oJS.AddField("SignatureField1", "signature", 0, Array(200, 620, 450, 670)) Set oFields = oJS.Ad
As per the Acrobat Distiller API Reference, I'm attempting to launch Distiller to enable the distillation of a PostScript file that is user the restricted operators. I am using a Mac with Acrobat Distiller 2020. I have set the plist AllowPSFileOps to True. On every launch of the distiller, the plist entry is changed to False, and the distillation of a PostScript file that uses file operators fails. I need guidance on how to make this work.
Hello I have a simple Yes or No dropdown list, I want the color of the filed to change to red if no selected. Is there a simple code for that Thanks for the help
Good day,I designed a dynamic stamp with 3 fields;- the current date "_Date"- the current time "_Time"- the expiry date "_ExpDate"I need the expiry date to be 6 months from the current date.Can someone provide a javascript to calculate the expiry date? K. Gibbs
Im not sure when or how this happened but whenever I open a pdf a flashing cursor showsup before some of the text. Is this some sort of setting I can turn off? It doesn't seem to have anything to do with "edit pdf" and if you start typing it doesnt type anything where the cursor is. Im sure it's something obvious that I am missing. Any ideas?
Hey guys, I have searched many posts but unfortunately still haven't found a solution. I am very much a beginner when it comes to writing code(s). Hope you guys can help me. So we have a PDF file which is an agreement. What I want is that when a certain checkbox is ticked, certain text appear. So f.e. checkbox 1 is ticked which is 12 months agreement. I want the text on another page to become 12 months. Checkbox 2 is 24 months and checkbox 3 is 36 months. Depending on the checkbox they tick I want the text to become the 12, 24 or 36 months. There are more checkboxes in the PDF file (fyi).A bonus would be if none of the checkboxes are ticked it would say 12 months, since the minimal duration of the contract will always be 12 months. But if that isn't possible then empty is fine too. Thanks in advance!
Hi Community, we have a supplier that is sending multiple pdfs (one page per file) but outlook seems to be combining these into one pdf with multiple pages. We want one pdf per page. They claim the issue is with us and they are generating the files correctly. Is anyone else experiencing this?We're using Microsoft Outlook 2019.
I created a fillable form and set the tab order to by row. This works correctly in Acrobat and in Adobe Reader but when I upload it to my website, all browsers use a different tab order. I set the language as English. It sort of behaves RTL in the browser, but is also somewhat random. I have created many forms in the past and never had this happen before. This form did start as a Word document which I used the Form creator to import. Any ideas on how to force it to use the correct tab order? Thanks.
Tried to download and install Adobe Acrobat DC and getting this error: Third party payload Adobe Acrobat\Setup.exe failed with exit code 1603 and installation errors DW0071 and DW003. Help!
New to creating a script in PDF, so I need some help. I need to the drop down color to be red, yellow, greem or trasparent based on a selection "high" - red, "Medium" - yellow, "Low" - green, and "N/A" to be no color. I read some similar posts and created the script below. I think my problem is how I am loading it under "actions". Can someone please validate the script then walk me through the process to load the script? Thank you! if (event.value == "Low") event.target.fillColor = color.green;else if (event.value == "Medium")event.target.fillColor = color.yellow;else if (event.value = "High")event.target.fillColor = color.red;else if (event.value =="" || event.value == " ") event.target.fillColor = color.transparent
I obviously work with a lot of pdf files. I am trying to combine several into one pdf. Unfortunately I am getting a message saying that one file is password protected. Can I remove that password when I have no idea who would add one?Thanks!
I am creating a document and the last calculation I need is the addition of the higher of two fields. What script do I need to add in. The three fields are below. I need to add Total Income to the higher or either Income From Asset Value or Imputed Value and if both are 0 then 0 or no change. var fld1=this.getField("Income Total").value;var fld2=this.getField("Income From Asset Value").value;var fld3=this.getField("Imputed Value").value;
I am trying to make a subtotal field in which overtime pay can be automatically calulated using current pay. However, the script I wrote in does not seem to calculate anything. With O/T pay being 1.5x of normal pay, below is the Custom calculation I wrote. Disclamer, I am very new to this. var nA = Number(this.getField("Hourly Pay").value);var nB = Number(this.getField("Hourly Weeks").value);var nC = Number(this.gedField("Hourly OT Hour").value);var nResult = (nA * 1.5) * nB * nC;event.value = nResult; Any help would be greatly appreciated.
Hi,I'm a bit stuck with a form I have been given with some Javascript that has both on focus and on blur triggers. The downside to this is that each field needs to have two Javascript tigger set, which gets super time consuming on a large form. What I would like is it to is fill the yellow on focus and then set back to trasparent in the same bit of code (saving me from having to add the on Blur trigger) or set when it printing the document to be transparent but i'm not sure if that is possible?. below is the code that has been used in these old forms i'm updating. function HiLite(){if (app.viewerVersion > 4.05){var MyField = event.target;var rgEmptyTest = /^\s*$/;color.ltYellow = new Array("RGB",1,0.994,0.820);if(event.name == "Focus"){if(MyField.type == "button"){MyField.borderColor = color.red;}else{MyField.fillColor = color.ltYellow;}}else if(event.name == "Blur"){if(rgEmptyTest.test(event.value)){MyField.fillColor = color.transparent;MyField.borderColor = co
I included a snippet of sample code [found here:https://opensource.adobe.com/dc-acrobat-sdk-docs/library/plugin/Plugins_Documents.html ]into my plug-in code. When executed, after the open dialog is displayed and user selects a file, Acrobat crashes. The same code compiled for Acrobat 64-bit runs without issues. This test was performed after my plug-in (that runs similar code) crashed in a similar manner. The crash after AVAppOpenDialog started in the most recent release (2023.006.20320). The code did not crash in any of the previous versions of Acrobat. I know I can replace the AVAppOpenDialog with a Windows file dialog - but would like to know why this is happening only in the latest release. Any help or insight would be greatly appreciated. ASPathName OpenPDFFile(){ //Declare an AVOpenSaveDialogParamsRec objectAVOpenSaveDialogParamsRec dialogParams; //Create local variablesAVFileFilterRec filterRec, *
I have a form I have built and want to submit the entire pdf to a url. I have added a submit button with an action on MouseDown to submit a form. When I open the pdf in Acrobat DC or in Acrobat Reader DC it works perfectly. However, when I open the pdf in the browser (and not in the actual acrobat reader stand-alone software) I get an "Adobe Acrobat" error stating "Error opening URL to submit this form". I am 100% sure I am using the adobe acrobat reader plug-ins in the browser and I have tried opening the file in the browser on both the local server machine and on a remote machine accessing the webpage. Is there some reason why I am getting this error in the browser acrobat reader but not in the stand-alone software? Any ideas would be helpful.On a side note, I am doing this because I need to save a copy of the pdf (filled in by the user) to the server and the only way I know how to is to submit the pdf...and from there I have a php handler that takes it
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.