Unlock the power of Acrobat SDK through our community.
Recently active
Hey guys, I've got a bit of a weird bug that is driving me completely insane. I have a form that checks if PDF is being opened in something other than Acrobat using "if(this.external){"Until recently, this worked perfectly. If the form was opened in Chrome or something else, an error would pop up and the form fields would stay hidden.However, sometime between July and now, this stopped working, but only when the forms are digitally signed. Reproduction:1) Document-level script executes "if(this.external){//unhide form fields}" on document open.2) User fills form and uses digital signature field to sign.3) User emails form to my team.4) My team opens the form and "//unhide form fields" doesn't execute, with this error in the console:"InvalidGetError: Get not possible, invalid or unknown.Doc.external:3:Document-Level:zOpenDoc" In my testing, I found that removing the "this.external" check would also result in an error when the script got to the "this.delay = true" lin
Good morning all.I am building a smart multi-purpose form. One of its features is to allow the user to enter a vertical section at a specific location on a vessel drawing. Once the location is selected, a vertical line is displayed together with a set of data fields where the user is supposed to enter water depths. In order to do this, I use the rect data from specific fields as base and then I add the appropriate figures to create a new set of fields at the selected location. Here is the full code (runs when you click a button on the page. This page is a template)//var FieldGND="P"+this.pageNum+".GND."; var FieldGND="S."; // the following are the numbers for min and max frame numbers var FRmax=226; var FRmin=-5; // the following are actual frame numbers marking changes in frame spacing var fr1=FRmin; var fr2=13; var fr3=36; var fr4=206; var fr5=FRmax; // the following are x-coordinates in points for frame locations marking changes in frame spacing var pos1=93.03; var pos2=122.03; v
Is there an easy way to recreate a dialog box that looks exactly like in the picture. With buttons in those cells highlighted in red.I tried the example from the API, it works, but the structure of the nested elements for my picture will be very complex.var dialog1 = { initialize: function (dialog) { var todayDate = dialog.store()["date"]; todayDate = "Date: " + util.printd("mmmm dd, yyyy", new Date()); dialog.load({ "date": todayDate }); }, commit:function (dialog) { var results = dialog.store(); console.println("Your name is " + results["fnam"] + " " + results["lnam"] ); }, description: { name: "Personal Data", align_children: "align_left", width: 350, height: 200, elements: [ { type: "cluster", name: "Your Name", align_children: "align_left", elements: [ { type: "view", align_children: "align_row", elements: [ { type: "static_text", name: "First Name: " }, { item_id: "fnam", type: "edit_text", alignment: "align_fill", width: 300, height: 20 } ] }, { type: "view", align_children: "al
Hello, Is there a way to bypass the password dialog when opening a password protected file. Here is our use case, we are trying to render pdf to the client using the Adobe Embed API before sending them the pdf binary we applied watermarks onto it. For protected files, we let them enter the password first, then we do the watermarking from the severside and then send back the watermarked content. We already asked from them the password and we just want to use it instead of asking them twice.We already tried passing it on adobeDCView.previewFile parameter as the password, content.password, content.location.password and metaData.password but no luck. document.addEventListener("adobe_dc_view_sdk.ready", function() { var adobeDCView = new AdobeDC.View({clientId: "<YOUR_CLIENT_ID>", divId: "adobe-dc-view"}); adobeDCView.previewFile( { content: { location: { url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea
I'm trying to select a rectangular area of a page via python, but I can't manage to do it. From what I've read, a rectangular selection is an AVGrafSelect object, but the commandselection = Dispatch("AcroExch.AVGrafSelect") is resulting in the error message 'Invalid class string'. What am I doing wrong? How do I make an AVGrafSelect object?
What Adobe product do I use to make a PDF document searchable? Does this product use a dictionary to allow the user to add words not already in the dictionary? Thanks in advance.
I know this topic has been covered extensively but I have spent too much time searching past questions/answers. If anyone can point me to the right place I would much appreciate it. I am creating a timesheet in PDF form and although I can calculate the difference in starttime, lunchout, lunchin, endtime the result does not format properly.Instead of getting say 5.5 hrs the result is 5.30 hrs. 7:00 starttime; 10:30 lunchout; 11:00 lunchin; 13:00 endtime. Here's my code so far:// startvar start = this.getField("Start1_1").value;var startArr = start.split(":");//lunchoutvar lunchout = this.getField("LunchOut1").value;var lunchoutArr = lunchout.split(":");//lunchinvar lunchin = this.getField("LunchIn1").value;var lunchinArr = lunchin.split(":");// finishvar finish = this.getField("End1_1").value;var finishArr = finish.split(":");// difference var hourDiff = Math.abs(lunchoutArr[0] - startArr[0])+ Math.abs(finishArr[0]-lunchinArr[0]);var minDiff = (Math.abs(lunchoutA
Hi All, We have enabled document cloud with our SP Online instance and can not open the pdf documents directly within document cloud when opening it from SP. The generic link we see when the document is opened in Doc-Cloud is something like this: https://documentcloud.adobe.com/spodintegration/index.html?r=1&locale=en-us which lets us in-line edit the document, but does not let us sign the document as the interface is very restricted. The only features we see are: However, when we manually upload a document in document cloud and then open from the online-browser based cloud link, we see full Doc-Cloud feature and the url which we now see is something like this:https://documentcloud.adobe.com/link/file/?uri=urn:aaid:sc:US:051443ff-9e17-425d-8c83-790ef76c1530 Our Ask:Is there a way to identify similar document url from SPO so that we have access to full Doc-Cloud interface?
Each month I get a large pdf file that I need to extract pages from and resave. The page numbers rarely change so this can had been working: this.extractPages(0,1, "table1.pdf");this.extractPages(2,15, "table2.pdf");etc. for many more tables. I recently "upgraded" to Adobe Acrobat Pro DC version 2021.005.20058 the code no longer works. I get an error message:RaiseError: The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder. Doc.extractPages:1:Console undefined:Exec There is no possible way for another user to have the file open - I just created it. I have searched on this error and seen many solutions, however none of them solve the problem.
Hello,I have a similar situation in which I'm trying to highlight specific sections when I choose a specific drop down option. Could you please help me out as well. Please see my example of my pdf form below. I saw this script from this posting on forum and I want something similar to this:Solved: Conditional formatting of cell's fill based on tex... - Adobe Support Community - 10706981 My Adobe Acrobat Pro Form
tl;dr - Acrobat Pro DC is inconsistently crashing while I'm adding page headers and footers. Here - Dropbox - acrobat-crash-report.txt - is the crash log.I'm working with a large (~120) number of PDFs, from disparate sources, and adding page headers and footers to them. This is done in four separate operations, as the even and odd page headers differ in position and content, and the even and odd page footers differ in position.I add the page headers first, then the page footers.Acrobat Pro DC (details below) running on a MacBook Pro (10.11.4) crashes on about 30% of the files when I try to add the second page header.Architecture: x86_64Build: 15.16.20039.185268AGM: 4.30.63CoolType: 5.14.5JP2K: 1.2.2.36256The crash log can be found here: Dropbox - acrobat-crash-report.txt Once I restart Acrobat and successfully apply the second page header (which happens in one try MOST of the time, but sometimes it crashes again and I need to try again), the footers apply without issue. Hopeful
All I have a simple text field box that I need to be able to add an windows UNC path that is clickable. "\\servername\sharename\etc". The text field is in rich text format that will allow me to make a clickable hyperlink (manually), but since the format needs to be "//servername/sharename/etc" with forward slashes vs windows UNC. Is there a javascript that can be used on teh field if my under copy the unc path from windows to convert it & make it a clickable hyperlink?
Hi Everyone, I created a form for clients to fill. This form has 2 pages. The first page I would like to lock or flatten the data submitted once I am done my review and stamp it and not have the second page locked so that others can complete the second page of the form and sign off. I have Acrobat DC Pro. Can I use the java scipt "this.flattenPages(); " and have it only flatten the first page? Is there addition code I can use to limit the range of flatten? I cannot use any add-ons and I am restricted to what I have for software. Thanks in advance.
I would like to apologize in advance, I'm not very comfortable with Java. Perhaps you all can help me come up with a solution to the form I am working on. My form is for samples. I've been using a fillable field for the first sample, then every sample thereafter calculates +1. I would like to have the form stay empty and NOT autofill if we don't have enough samples to fill every row in the form. I've considered doing an if then statement in a dropdown, where the sample ID has a prefix in a dropdown. If the prefix is "A", the sample ID is +1. If the prefix is "N/A", the sample ID field is blank. I can get the "A" to work, but not the "N/A". Another idea was maybe a button called "END" that is visible but doesn't print. Pressing "END" would hide all following fields, and pressing it again would show them again. I can get it to hide the fields, but pressing it again doesn't show them again. Thanks in advance for all your help,Ali
I cannot seem to scroll through a PDF file once I combine them. It tabulates them on the left.
Hey everyone, Quick/basic question: is there a function that 'deselects' the currently focussed (text)field? I figure I can use .setFocus() as a workaround but I'm wondering if there's an out of the box option to deselect the selected field. Thank you in advance for any trouble to be taken
Good day honorable adobe forum members, I am looking for the method to use to check if a value is in a list i.e.: var list = ["A","B","C"] if ("a" in list) { //dothings } Hoe does one do this effectively? Thank you in advance for any and all trouble to be taken
Why, if the input field is empty and the user pressed the OK button, the function is not interrupted and the Else block is processed?app.addSubMenu({ cName: "Test", cParent: "Help", nPos: 0}) app.addMenuItem({ cParent: "Test", cName: "My_button", nPos: 2, cExec: "NumberX()", cEnable: "event.rc = (event.target != null);"}); function NumberX() { Msg = app.response(" ", " "); if (Msg == null) { app.alert("The user did not enter anything and clicked Ok"); return;} else { app.alert("The user entered some number: " + Msg); } }; app.trustedFunction(NumberX);
Hi, I'm creating a table which calculates the individual PRODUCT "Quantity" and "Price" for up to 10 items. Then the table has a "Total" (SUM of all PRODUCTS). The issue I'm having is that some people will not use all of the "Quantity" and "Price" fields, and when they are left empty, the "Total" does not calculate unless all "Quantity" and "Price" are filled. Right now I have a simple set up for calculating: Field QP1 = Field Q1*Field P1 - this is what I use to calculate the Total of quantity and price for one item. This is continued from field QP1 to QP10Field Total Value of Transfer = QP1+QP2+QP3+QP4+QP5+QP6+QP7+QP8+QP9+QP10 - this is where things get broken in the calculations I think, I just can't wrap my head around how to get these to work when some "QP" values are empty. I'm not sure if this makes sense, but it would be helpful if someone has any idea of what I'm talking about.
My company is creating some kind of PDF Editor.We're using pdf.js currently to render the PDF onto the web.The problem we're having is when the PDF is printed after edited.The texts are blurry.We are using window.print(); to print the PDF. But because the pdf.js per se, renders blurry texts, we don't achieve what we want.What we're currently planning is to integrate it with Adobe DC SDK.What advice can you give on it?What things to be taken care of?
Adobe DC - I am trying to import a number from Excel that has no dashes into a pdf file that will insert the dashes. Is this possible ? ie 123456789012 in excel and I want it to look like 123-456-7890-12 when in the pdf. Do I need to do a Java script? If yes could you tell me how to write it?
I already add Headers\API and Headers\SDK , also could find define POKE(name, formals, formalsWithRock, actualsWithRock) name##NSEL, but PIPokes.h is error.
On Windows platform, I can look at the title to see if (32-bit) or (64-bit) in the title from Adobe Acrobat DC or Reader DC 2021. I am looking for a way to allow a custom install program to determine if the installed of Adobe Acrobat or Reader DC 2021 is 32-bit or 64-bit, is there some registry or something from Adobe Acrobat set after installed to indicate this? If the Acrobat title with the text 32-bit or 64-bit is stored in some registry or somewhere in the file system then the custom install program can also get and parse the title for the text string to determine 32-bit or 64-bit. Thank you.
Hi Team, This is chenchaiah, Actually Earlier I downloaded Acrobat XI pro Samples from Adobe Site.I'm using the "Snippet Runner sample". Remaining all samples working fine under visual studio 2019.I was using that project in Visual studio 2019, I opened the project after the retarget solution.@13152947:I'm facing the fatal error C1189:The C++ standard library forbids macroizing the keyword "return". Enable warning C4005 to find the forbidden define.I referred in google some sites:respected issue-> It shows the need to change v16.4 in platform toolset but in visual studio 2019 available only in platform toolset visual studio 2019(v142),visual studio 2017(v141),visual studio 2015(v140).Note: Need to update the visual studio 2019(v16.4), How to upgrade?.I tried all ways to solve the issue, but it was not resolved.Please help on this, How to compile without any exception.Note: I'm Thinking project configurations.Please guide me on how to set up the project. I will also join
I have a document in Adobe reader but I needed a way to change the colour of every other word automatically. Any help is appreciated. Thanks in advance. [Spelling mistake corrected for clarity]
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.