Unlock the power of Acrobat SDK through our community.
Recently active
I have a PDF with rich text fields that use base Acrobat fonts (Times New Roman). But for some reason every time I edit+save the form, Acrobat insists on embedding the fonts and bloating the file size. Is there a way to force Acrobat to not embed fonts?
// Loop to create and save 10 PDF documents for (var i = 1; i <= 10; i++) {// Create a new PDF document var doc = app.newDoc(); // Save the document with the appropriate file name var fileName = "/C/temp/test" + i + ".pdf"; doc.saveAs(fileName); // Close the document doc.closeDoc(); } // Inform that the process is complete console.println("Creation of 10 PDF files completed."); That is my sample code above, when you run it, you can see all 10 files created, saved and then all 10 being closed at the same time. Why is this? Tested this in both in console and as a JS action. After each file is created, that doc should close. I tried reading the SDK manual but there is nothing in there except for this:It is important to use this method carefully, because it is an abrupt change in the document state that can affect any JavaScript executing after the close. Triggering this method from a Page event or Document event could cause the application to behave strangely. In versions
Hi, Before the update this fall, I was able to make a box around text in a pdf file and then highlight the text within the box. After the update, I can only highlight text BEFORE it is boxed. This is a small and silly issue, I realize, and I can do a work around by using the pen tool to make the text instead, it's just messier to do so, since the highlighting tool made an automatically straight line and the pen tool is freehand. I don't know why this change was made or if there is a way to allow me to highlight text after it has been boxed (I use the highlighting for annotating, it's tedious to highlight and then box for reasons that are relevant to my workflow), but if there is a workaround, I would appreciate hearing about it! Thank you.
Hello,we are developing a plugin for Acrobat / Acrobat Reader. The user opens a PDF with form-fields. Now he want to save his inputs. In Acrobat he could do this without problems but in Acrobat Reader only a "Save As" is possible. To write back the PDF in our system I need to detect when the user saves the PDF and under which filename it was saved. I need an event in the plugin like "DocumentSaved" which passes the filename or some other mechanism to store back the saved document in our system. Any ideas? Greetings Stefan Westner
I am creating an evaluation document, where an average numerical score is translated to a text representation. I can do it in Excel, but I don't know how to do it in any other format. Basically, if Score = "1", then Rating = "Fair" I hope that this is easier than I'm making it out to be. Thanks.
How do you add a new font to Adobe DC. I have a monthly subscription and need to add a new font for when I edit a PDF
Despite having paid for the ability to convert pdfs into word docs, and even after signing in, each time i click on "convert" it sends me to the Adobe page to purchase a plan. any ideas?thanks!
Hi,I converted all the forms from Word to PDF and customized them based on the requirement to have a digital signature (Using Acrobat Pro DC). Some of these tables need to add/delete rows button. The IT department suggested the Indesign and provided me with the subscription. Unfortunately, I can not find a solution for running any Java Script to add a row to a table created in InDesign. (No name for the table that I can consider as an object). please help me with the JS code, how can I run it in Indesign without knowing the table name? Where I can run JS in Adobe Indesin tool? Thanks in advance,
Good morning, I'm having quite some troubles understanding the process to download and install Acrobat SDK. I have Adobe Acrobat Pro license; My current task is to export values from the text-fields of a PDF Document of mine, and transfer them into the cells of a xlsm file, by mean of a Macro (VBA). The fact is I realized the "Adobe Acrobat Type 10.0 Type Library" is missing into the references, hence the macro will never work.I understood I need this enhanced tools from Acrobat SDK, but (apparently I'm a complete idiot) I'm struggling to get the exact process to download it from the page:https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/#:~:text=Welcome%20to%20the%202021%20release,%2C%20sample%20code%2C%20and%20documentation.I need the step by step's description or I'll never work this out. Thanks everybody in advance for the help
I get this message from Acrobat Pro, whwn I will creae an Acrobat document from Word:%%[ ProductName: Distiller ]%%%%[ Error: invalidfont; OffendingCommand: definefont; ErrorInfo: .notdef --nostringval-- ]%%Stack:/Font-dict-/TTE56t00%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%%%[ Warning: PostScript error. No PDF file produced. ] %%The Word-document has text and fotos in a table and some af the lines and fotos are missing after the convertion.
Hi, I recently had my CAC card updated and now I cannot digitally signe any military PDF documents. I get the following error message: I recently had my CAC updated and now I cannot digitally sign any military PDF documents. I was able to sign documents before today. Any assitance would be greatly appreciated.
Hello,I developed a plugin for PDF manipulation functions by adding a new menu item under Edit menu.It is working fine in Acrobat Pro XI but it is not loading in Acrobat pro DC.I am using:1. Acrobat Pro DC(2015-Classic)2. Operating System - Windows 7NOTE: According to my observation, first time when I installed Acrobat DC, my plugin was working fine. But when my trial version completed, I reinstalled it now and it is not working now. For the case, If I did something wrong in the code, to check this, I placed a BasicPlugin from Acrobat Plugin SDK. It is also not working for Acrobat Pro DC.But both are working fine for Acrobat Pro XI.Please help!Thanks.
Trying to install Adobe Acrobat Version 7.0 on a new PC running Windows 7. Getting the error message - "Warning 20225. Adobe Acrobat7.0 was unable to create a new item. Adobe PDF Port & Printer. The Adobe PDF printer may be unavailable."any help appreciated
I'm trying to convert a Word document to a PDF, but I get this error message saying that additional files need to be downloaded and that I need administrator privileges to download those files. This is my personal laptop so of course I'm the adminstrator. I did a Quick Repair of Microsoft Office 365, that didn't fix it. So I did an Online Repair and that still didn't fix the issue. I downloaded Acrobat from their website, and I have the 7-day free trial. I waited until it updated with the free trial before trying to use the conversion tool. Is there something else I need to download or am I just screwed and can't convert files?
I've created a series of forms in Acrobat Pro that the Javascript works works only some of the time, or stops working, or works differently on different platforms.Created and tested in Acrobat Pro on my computer, but also Acrobat Pro on MacBookPro, Windows 11, and using Acrobat Reader on all platforms. All software has Javascript enabled.The simple form only has 1 recurring script attached to 8 similar fields to change the field color depending on the value of what's in the field. It works initially, then make any other changes to the form (no other Javascript) and save again... then the field scripts (sometimes) stop working when testing or opening it again to fill. Sometimes they don't work at all, even though nothing from those fields has changed. I thought maybe saving a version that is Reader optimised (Save as Other -> Reader Extended PDF -> Enable more Tools) might work, but it's just as unstable as with Acrobat Pro.The finished form is intended to be used as a templa
Hello hello everyone,(First of all, I'm truly sorry for my poor english and thus, for this question badly written, I'm not an english speaker)(Second, I already tried to find an answer by searching through the forums but I didn't find anything that was of any help with my pretty poor abilities to understand Javascript (and I already asked my question in the french version, which didn't give any result))Here is the issue I'm facing :A series of checkboxes whose number associated (I suppose the value?) must be transferred in a text area when checked. Problem “bis”, I don’t understand javascript and the many examples I’ve found on the forum about similar issues, hence I can’t ‘translate” them to my particular situation. More precise description: I have a series of checkboxes (in an interactive PDF form that I make with ADOBE ACROBAT PRO), each one represents a certain number "1", "2", "2024", etc. => in fact a code in a list of work risks. The risk "Fall" has the code "1", the "chemica
I'm just trying to create a mailDoc on Mouse Up for a submit button and I'm encountering a syntax error:var sendForm = app.alert("Are you ready to submit to " + ProgramManager + "?",2,2,"Program Manager Submission");if(sendForm) == 4) {this.mailDoc({bUI:true,cTo:ProgramManagerEmail,cSubject:"Incident Report Submitted",cMsg:"A new Incident Report has been submitted.\n Please sign it and return it to the sender."});}elseapp.alert("Please continue with the form"); I'm getting syntax error 3: at line 4. I'm hitting a wall, so I'm open to suggestions. ProgramManagerEmail is a variable that is set from a drop-down to select a user. That populates an email address in ProgramManagerEmail. Thank you,~ David
hello can i know some steps to help me to add my own plug in to adobe
I have experimented a lot using viewState function this.viewState.toSource();var refView = eval(viewState.toSource());refView.pageViewZoom= 5;refView.pageViewY = 1500;refView.pageViewX = 800;this.viewState = refView;this.viewState.toSource(); but it is going haywire and is not able to focus on the page at the X and Y coordinates. I have tried page scroll also and there is no description in the manual. Your help is very much appreciated.
The lineFileRef source = FileRef.CreateFromStream(stream, "application/vnd.openxmlformats-officedocument.wordprocessingml.document");seems to run indefinitely. Witihin stream is a docx file. This seems to only be an issue while using docx files so wondering its an on going issue, I'm using the wrong media type or something else. Thanks
Hello, I tried to set up some conditional formating on a PDF form and am hot sure where it went wrong. Here's what I hoped to achieve: I configured three check-box field "Check Box5.0.0.0", "Check Box5.1.0", and "Check Box5.2.0.0", and I want the three box to be filled with green, red, and purple if they're checked individually. I confugured them to run a Javascript, with Mouth Up as the trigger, and the code is below: if(event.target.value != "Off") this.getField("Check Box5.0.0.0").fillColor = color.yellow;else this.getField("Check Box5.0.0.0").fillColor = color.transparent; I edited the form on MacOS and it seems to be working, but when I later open it up on a PC, it behaves really strange. Same thing happened when I opened it on a differnet Mac. Once I checked another box, it'll clear up the color for the previous check-box. Not sure where I got it wrong. Thanks!
Hi. I'm trying to write a script for incorporation into a custom Action that can run on a batch of files. The goal is to add a watermark in the upper right-hand corner of all pages with:Line 1: File ID = [file name without extension]Line 2: Page # of 30 For example, for a pdf named 'MyFile.pdf' that contains 30 pages, the script would add the following text in the upper left corner of each page: File ID = MyFilePage # of 30 where # starts at 1 and increments by 1 on each subsequent page See draft script below. As written, it only adds the watermark to the first page of the pdf. I've successfully created scripts to do each line of the watermark independently, but can't seem to figure out how to accomplish both into a single script. Any suggestions are very appreciated! for (var p = 0; p < this.pageNum; p++); var cMyText = "File ID = " + event.target.documentFileName.replace(/\.pdf$/i,"") + "\nPage " + (p+1) + " of " + numPages; event.target.addWatermarkFromTe
Why setTimeOut not working?This is my script: var p=0;var link_info="";function processPage(){if (p < 10){link_info += "page:"+p;p++;app.setTimeOut(processPage, 1000);console.println(link_info);}else{event.value = link_info;}} processPage(); Result output: page:0undefined
Hello all,I've just finished refreshing my iMac to clean up the macOS and have run into a problem with an existing XCode project. The code is based on one of the Samples that comes with the Acrobat SDK and I did have it working previous to the wipe and reinstall, but now I'm getting an error at the end of the compilation. There appears to be an Adobe shell script that runs at the end of the process to copy the compiled Adobe Acrobat plugin over to the /Users/<username>/Library/Application Support/Adobe/Acrobat/DC/Plug-ins directory. But I'm getting an error "Sandbox: ditto(50711) deny(1) file-read-data /<path to Desktop>/XCode-PDF-Plugins/PluginSupport/Samples/tech360AODAtool/mac/BuildResults/bin/debug/<pluginName.acroplugin" : Operation not permitted What I'm surmising is that somewhere in the past I updated a setting to allow XCode permission to read from the Desktop and write to the ~/Library directories. Any thoughts on what I need to do here to allow
I am creating a form that adds amounts for a total. I want to create a check box (BOX1), that when checked, puts a specific dollar amount in another text box (#4) which is then added to other amounts to create a total for purchase.
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.