Unlock the power of Acrobat SDK through our community.
Recently active
So, I have for teachers (teaching standards). It is 44 pages and every page only has text on HALF the page. The bottom half of every page is EMPTY. Is there a simple/easy way to cut every page in half, discard the EMPTY part, and combine the two top half pages together into one page? (which would make the pdf a total of 22 pages instead of 44 and no empty/waste of space?).
Hi all, unfortunately my knowledge of Java Script is bareley zero. I would help how to implement a Custom Calculation Script. The situation looks like this: Field A is a Value in currencyFiel B is the output field B= If Fied A <2500€; A*0,015; If Field A<5000€; A*0,0,25; IF Field A>10.000€ B="Text" Could you please help me? Best case woule be if i would be able to copy it here
Hi iam cloud admin and i have purchased Acrobat Pro app for user. When user installs the app it terminates after 75% with a dialogue saying "serious failure during installation" do you have central problem with the app or what can you suggest us to try
I have 4 fields that are named prc10, prc20, prc30, and prc40, along with a couple of ther fields. I have a button that when pressed is supposed to loop through all the fields in the form, and if the field's name starts with "prc" it assigns the number after the "prc" as the value to the field. Here's the code I have assigned to the button: for(i=0;i<numFields;i++){ var strname = getField(getNthFieldName(i)).name; var prcField = this.getField(strname); if (strname.startsWith("prc")) { prcField.value = strname.substring(3); } }When I press the button, it assigns the value of the first prc field to 10, but leaves the other 3 empty. If I press the button again it assigns the value of 20 to the second field and leaves the next two empty. So I need to press the button 4 times to get it to assign values to the 4 fields. I commented out the line where the value is getting assigned to the field and outputting strname.substring(3) to the console
I use textboxes a lot for entering part numbers and the default size in Acrobat 7 was perfect - about 7 characters wide. I'm now using Acrobat DC and the width of the textbox is larger, perhaps 15-20 characters wide. Is there a way to change this?I've formatted the textbox the way I want and saved it as the default, but it only saves the colors and font, not the width or height.Additionally, the text box appears below and to the right of where I click the mouse to insert it. Is this normal? I can get used to it but it is a bit annoying.
I am trying to write a script that adds the values of 11 different fields on a PDF form where 11 checkboxes representing the 11 fields are checked and adds 200 to the final amount. When the checkbox is not checked, I do not add the value representing that checkbox. I have written the script below but it only displays $200. // Define an array with the names of the 11 checkboxes and the corresponding fieldsvar checkboxFieldNames = [{ checkbox: "AGT", field: "150.00" },{ checkbox: "OneYA", field: "75.00" },{ checkbox: "2YA", field: "112.00" },{ checkbox: "CGT", field: "75.00" },{ checkbox: "GTLateFee", field: "10.00" },{ checkbox: "ChapterLateFee", field: "20.00" },{ checkbox: "NHBF", field: "100.00" },{ checkbox: "EFCB500", field: "500.00" },{ checkbox: "EFCB250", field: "250.00" },{ checkbox: "EFCB100", field: "100.00" },{ checkbox: "EFCB50", field: "50.00" }];var total = 0;// Loop through the checkboxes and add their corresponding field valuesfor (var i = 0; i < che
I cannot insert XML into pdf, getting an error about going to documents and attaching. One file is able to be edited and one is showing pages are greyed out.I cannot attach, these two have to be merged. The file that lets me see items in the pages section, I've tried extracting to desktop as pdf, and combining the other pdf, still getting the same xml error. One file is a pdf from the desktop the other is from a webpage, when viewed as a pdf on the page, they hit save as pdf to desktop.Adobe 10.1.10windows 10 pro
Good evening, I want to show and hide a field based on another field's numerical value being equal to or greater than. The scenario is, if one field name "text1" (which has a calculation formula of its own) is equal to or greater than 50k, I want the form to show 7 other fields. If its less than 50k then I want those fields to be hidden. Therefore, those fields should be always hidden unless the value goes 50k+ in "text1". I have been looking around for a while been the syntax I keep getting doesnt seem quite right. Thanks in advance!
I added a timestamp server not really understanding what it would do. However, Adobe Acrobat X still tries to use the original timestamp server even after blocking the site. When I first tried to use the timestamp, I was prompted to set up a server and make it the default server before the timestamp would work. The prompt no longer appears (even when original site is blocked), and instead, I am prompted to allow the original site or the timestamp doesn't work at all. How do I get back to the starting point or at least change the server?
does anybody know how to fix this ?i am getting UPDATE FAILED, ERROR 130200 when Acrobat X 10.0.0 tries to update.i installed form a CD yesterday.
Hello everyone, I'm currently working on an Acrobat plugin that involves creating bookmarks and hyperlinks in PDF documents. While I'm new to these technologies, I'm eager to learn more. If anyone has experience with Acrobat SDK, wxWidgets for the GUI, and C++, I would greatly appreciate your guidance and any helpful resources. If you could share any links or tips for learning Acrobat SDK, it would be a valuable contribution to my project. Thank you in advance for your support. Best regards, [Question moved]
I'm trying to run a JS script that creates bookmarks for titles and so on. The script has to know what a parent title and children title is. Right now the only way I've found is specifying what font-size and kind of format (bold) the parent title or children is. // Get the current document var doc = app.activeDocs[0]; // Initialize an array to store bookmarks var bookmarks = []; // Define a function to add bookmarks recursively function addBookmarks(page, parentBookmark, level) { var lastBookmark = null; for (var i = 0; i < page.length; i++) { var word = page[i]; if (word.fontSize === 15.99) { // Titles (Font size 15.99) var title = word.text; var bookmark = doc.bookmarkRoot.createChild(title, page[0].pageNum); if (parentBookmark) { parentBookmark.insertChild(bookmark); } else { doc.bookmarkRoot.addChild(bookmark); } bookmarks.push(b
Hello I'm new to javascript. I'm pretty much googling everything so if I do not use the correct nomenclature, my apologies. I have a pdf document with a check box. I would like this check box to spawn a "medical" form and make two fields hidden and when they uncheck the box, I would like for the "medical" form to be deleted and the two fields to be visible. So far, I have been able to write a javascript where it does everything except for deleting the "medical" page. No matter how I try to write the script, I can't get it to delete the "medical" form. Below is my script. Can anyone help?var a = this.getField("Please Answer");var b = this.getField("Questions");var c = this.getTemplate("Medical")if(event.target.value == "Yes"){a.display = display.hidden;b.display = display.hidden;c.spawn(event.target.page+5, false, false)}else if(event.target.value == "Off"){a.display = display.visible;b.display = display.visible;c.deletePage({nStart: 6})}
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.