Unlock the power of Acrobat SDK through our community.
Recently active
Im using the Javascript plugin with the following code var j = 3 for (var i = 0; i < 10; i++) { var line= this.getPageNthWord(0,j+i,false); var final2 = line.slice(-2); if (final2 == ""){ console.println("I AM A NEW LINE"); } //console.println(this.getPageNthWord(0, j+i,false)); console.println(line); //console.println(line.slice(-2)); }the output of this shows for example word1 word2word3 word4word5 word6word7word8word9work10 as expexted howeever i want to see what is the last word on the line the spaces in the console print are showing correctly but ive tried if line == "" and "\n" etc but nothing is telling me that its the space. Any suggestions?
Good afternoon,I am looking to automatically flatten my document when I place a dynamic stamp. I am pretty new to Java and have cobbled together code to make my stamp, learning on the way.I have tried adding this.flattenPages() to the script, but when I do Acrobat crashes when I place the stamp.I cannot install the menu bar script to add a flatten document button, because I don't have admin permissions.Thank you in advance for any help.Patrick
In the "SampleExtn" plugin that demonstrates how to write a plugin to work when Acrobat is running in protected mode, the plugin does not attempt to start the broker by calling sandboxpisdk::InitSandboxPIBrokerIPCChannel(L"SamplePIBroker.exe") until Adobe Acrobat has fully started, the SampleExtn plugin has been loaded, and the user selects an item from the menu for the SampleExtn plugin. For my company's Acrobat plugin, we require our users to sign into a server to enable the plugin's features. Until now, our plugin has never been made to work when Acrobat is in protected mode. Now we are enhancing it to do so. Until now, our plugin has always automatically signed the user into our server when the plugin is loaded, when Acrobat starts, if the user's login and password was saved from a previous login. Here is what is happening now that we have modified our plugin to work when Acrobat is in protected mode: START OF EVENT CHAIN Our plugin's P
For my company's Acrobat plugin, we require our users to sign into a server to enable the plugin's features. Just to be safe, I want to ask this probably paranoid question: Must ALL 3rd party plugins that run when Acrobat is in protected mode have their broker binaries submitted to Adobe for certifying? Or must only plugins that run when Acrobat is in protected mode AND when Acrobat is in "certified plugins only" mode have their broker binaries submitted to Adobe for certifying? Background for the question: Until now, our plugin has never been made to work when Acrobat is in protected mode. Now we are enhancing it to do so. Our plugin requires the user to have an account with us and sign in to enable the plugin's features. After the plugin sends the login request, it also makes network requests to download preferences and other things from our servers. In order for a plugin to make network requests when Acrobat is in protected mode, Developers need to
Hi All, Am looking for a JavaScript script to import comments from a different PDF document using the "Import Data File" option in Adobe Acrobat Pro. The script I have works to open the dialog box, but it does not allow for the selection of PDF files or import comments from a different file. This isn't the whole process. Prior to this, there is a resizing of the documents is step 1, which I have worked on and it is working fine.Kindly help me out to open the dialog box from comments section "Import Data File..."var cPathToFile = "/path/to/your/comments.fdf";// Replace with the actual path to your FDF/XFDF filethis.importAnFDF(cPathToFile);
I've used the below code for ~7 years, but have recently been getting the following error: "An error occurred: GeneralError: Operation failed.", in the console, but unfortunately, this is all the console shows, so I have been unable to troubleshoot and determine what is causing the error. All I know is that the signature field gets placed correctly, but the signature is not being applied. Any help is appreciated. Thanks! /* * sdkAddSignature.js * * * Folder Javascript Created by Acrobat SDK. * This JavaScript sample shows you can programmatically sign a PDF document using * your digital ID file. * * As a sample, this file has included all the digital signature information * except the path and password for the digital ID file to be used. * When you are ready to sign a PDF, click the newly added "Add My Signature" * menu item under the Edit>Acrobat SDK JavaScript menu. * * After you input the platform independent path and * the password through a
Hello I am new to Javascript and specifically Javascript + Adobe. At my jobs I use a lot of stamps in my pdf. I want to create a script, button, or tool that when clicked will count all the specific stamps in the document. Is there a way to do this or is there an easier way to go about counting my things on the document. Thank you
I'm trying to execute a javascript file in Acrobat. tell application "Adobe Acrobat" do script file theFilepath as aliasend tell But Acrobat (24.002.21005) crashes. The contents of the file "theFilepath" executes if do script is called using a string. What am I doing wrong? Thanks!Doug
Hi Community! I am trying to batch convert 100s of HTML downloaded files with a chart to a PDF (I can do one by one on chrome, and formatt is great) however I want to be able batch convert (a function that adobe can do for me). However when I convert even a single file from HTML to PDF using adobe, it doesn't convert the chart, it just drops it. Is there a setting or a script I can change/run to make adobe convert the chart?I have taken a snip on the HTML when chrome displays the chart. - not sure if that is helpful or not. Thanks
When I attempt to update the fields used for a calculated field, the changes do not take. Any ideas what is going on? TIA
I used to have batch stamp on my Adobe Reader but I recently got a new computer. I need to apply stamps to PDFs daily, sometimes up to 300 pages for one document. Applying the stamp to each page manually just doesn't make sense. I did have a javascript that was on my old computer but now I cannot find the page I got it from. How can I do this? I have Acrobat XPlease help.Thank you.
I'm trying to convert the PDF to PDF/A using C#. Having a CAcroAppPrefs reference issue. There is no clear documentation for which library has CAcroAppPrefs class. If anyone experiences this issue please help me with this.
I'm tagging a fact sheet to be Section 508 compliant and, when doing a quality check with JAWS, I discovered JAWS reads each hyperlinked URL twice. I tried to strip all object reference (OBJR) tags from the document by using the "Remove all links" button, but the OBJR tags are still there, although they don't behave normally (that is, when I click on them in the tag tree, they don't highlight in the document, and when I hover the cursor, a tooltip doesn't appear with the URL in it, etc.). Has anyone encountered this problem? How did you solve it?[Moved out of the non-support, all-of-Adobe forum Lounge where web designers hang out with animators, marketing folks, those who make PDF's, and users of all of Adobe's other software hang out and chat - where it doesn't belong - and into a more product-specific support forum - Mod.]
Hi, I am looking to add the path to adobe's dynamic stamps in the "Execute Menu option" section of a button. So far, there doesnt seem to be a path to naviagting to the stamp section in Adobe. I tried creating a cutom action but I am not able to attach the custom action to a button either. Thank you for your help! 🙂
Hi all, Hope someone can help. Is it possible to have a formula that adds only the next month from the field before. I need date2 to show 05-Nov-2024date3 to show 05-Nov-2024date4 to show 05-Dec-2024date5 to show 05-Jan-2025 So the year would also need to update when a new one is reached. Is this possible? CheersChris
Hello guysI have an order file PDF which is an interactive form. I added a hint that the processing time takes up 5 work days at least but people keep putting the deadling before those 5 days. Is it possible to get a code where file finds the current date when its opened and automatically locks the 5 next days from being picked on the date field?Thanks!
Hi,I have a batch of pdf files which I want to print on 2 identical printers simultaneously in the correct order. Currently, I am using a Word vba macro to do this on a Windows 11 system. The macro opens each document in Adobe Acrobat and prints using OLE Automation and using Adobe Acrobat 10.0 Type Library. Here is my current workflow: Set Windows default printer to Printer1Open document in AcrobatPrint document on Printer1Close documentClose Adobe AcrobatSet Windows default printer to Printer2Open document in AcrobatPrint document on Printer2Close documentClose Adobe Acrobat Then repeat these steps for the next document. And so on. While this all works fine, it seems inefficient and slow, needing to open the same document twice to print to the two separate printers. On opening the document, Acrobat prints to the default Windows printer, hence the need to close it, change the default printer, then reopen it. Surely, there must be a better way to do this. It should
I'm tring to write a VBA Macro that will convert emails to PDFs in outlook, but when I call the pdfmaker.CreatePDF function, I'm not sure what arguments to put in. When I put in just the file path and name, it tries to save and errors, but when I try to pass it the mail object, it says incorrect or wrong number of arguments. Currently have adobe object library 10 installed in Outlook.
Hello:Is it possible via the PDF Extract API(Python) to verify and find model tree information. I am not trying to change information but verifying that model tree information exists as well as checking pre-flight information. Is this possible via the Python Extract API or by another means? I would appreciate the assistance!
HiI have an intranet for my commpany.On one of those pages, I need to create a button, that takes the content and creates a PDF.1) Am I allowed to create a PDF on the fly using C# code? Like maybe either create a totally new one... or create a copy of an existing template and then start dynamically filling it out with content from my database?2) Which product do I use? I have used Acrobat SDK toolkit in the past but it did allow me to put this on a webpage on a server but only allowed local computer usage.3) Or do I have to use 3rd party tools?4) Any samples or examples of code? Is it the same code or have there been huge changes?Steps:-i) Create a copy of an existing PDFii) Create frames, labels, text boxes & multi line text boxesiii) Fill those labels, texts, multi lines with data from databaseiv) Save the PDF and store it or email it to an email id
We can do this via Adobe Acrobat without issue (Menu -> form options -> import data -> zzz.xml), but we need to be able to do this programmatically. Looking through the SDK documentation in your 'pdfservices-sdk' (https://opensource.adobe.com/pdfservices-python-sdk-samples/apidocs/latest/reference/index.html) and I can't find anything to import xfa data in from. Anyone tackle this before/have any thoughts? I've been trying DocumentMergeJob, but that may not be what I am looking for.
I'm running into a problem where I have 4 sets of check boxes. set 1 is called Severity and there's options 1-4set 2 is called Probability and there's options 1-4set 3 is called Criticality and there's 16 options and is automatically checked based on selections from set 1 and set 2. (i.e. if you select 4 from Severity and 3 from Probability then it automatically checks 12 in Criticality)set 4 is called AEM and has 3 options.option 1 is automatically checked if 16, 12, or 9 is checked in set 3option 2 is automatically checked if 8 or 6 is checked in set 3option 3 is automatically checked if 4 or below is checked in set 3 The problem I'm running into is that if I manually check the boxes in set 3 then set 4's auto checking works. However if I make selection from sets 1 and 2 and it autochecks a box in set 3, then set 4 doesn't auto check. Here's an example of what I have for the autocheck for set 3:console.println(this.getField("Severity4").value);console.println(this.getF
Related Post I am trying to implement a duplicate feature which automatically adds prebuilt sections to the form in PDFto change position and page of fields i am using this.removeField but its not working in chrome, android, opera in android it's showing this error `TypeError: this.removeField is not a function, Adobe Reader`i am using it like this in the code```if (this.addScript) {this.addScript("rmField", function rmField(tag) {this.removeField(tag);});}```
I used to know how to do this, but I cannot find the feature anymore. I want to: Click somewhere on the PDFand type some words.For example, I printed a form to PDF and forgot to check a box. Rather than re-print the form, I would like to type "X" in adobe pro, where the box is. The form is non-responsive; there are no fields.Where is the typewriter tool? I am on Mac.
I'm working on a new feature in an Acrobat Plugin to help with Accessibility programming.I need a way to access a tag's "Tag Elements" – this is the encoded data pairs that can be seen by right-selecting a tag, selecting "Properties...", and then clicking on the "Edit tag" button. See the attached screenshot for reference.Essentially, I need to extract the "/Headers" array, or any item value pair (i.e. <"/S", "/TD">). I've tried PDSElementGetAttrObj, and a few similar methods, but they don't seem to provide the right (or any) data.I've looked through the SDK API docs and cannot find a function that provides read/write access to this level of data. Anyone have any ideas?
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.