Unlock the power of Acrobat SDK through our community.
Recently active
I have two check boxes that I want to spawn templates when checked, and delete those pages when unchecked. I have no issue spawning the templates, but I am unable to determine the page number once they are spawned to be able to delete these once unchecked. Checkbox1 spawns/should delete template1Checkbox2 spawns/should delete template2 & template3 I understand the pages start at 0, but the output does not make sense when I print to console. The three templates are hidden. I check checkbox1 then checkbox2, and uncheck in the same order and the console prints the following for the page numbers:temp1pages=0temp2pages=-1,-11temp3pages=0 My code currently is this for checkbox1:if(this.getField("Checkbox1").isBoxChecked(0) == true){ var temp1 = this.getTemplate("template1"); temp1.spawn(); } else{ var temp1pages = this.getField("template1_field").page+1; this.deletePages(temp1pages); }and for checkbox2:if(this.getField("Checkbox2").isBoxChecked(0) == t
I had been suffering from this problem for several days.No matter how many times I looked at what was wrong with the code I wrote, I couldn't figure it out. Finaly I noticed the following problem. I kept a number of different dates (more precisely, the history of initialized dates and dates updated in the past) in hidden fields to calculate the dates to display in the form.It's not that my code was wrong, it's just not really working. I created a sample form to make this problem easier to understand.Please see the attachiment PDF. Is this a bug? Or is it a specification ?Please let me know if there is another good way.
I wouldn't write this normally but i know how to cancel the subscription, the thing is i dont have the option to do so
I am using the PDF Embed API to display a local PDF and am experiencing an issue where the PDF Viewer is stuck on "Opening Document 0%" about half the time that I open it. I've followed the sample for React provided by Adobe. I've tried using a URL as well as a promise. I've tried doing a timeout call to see if it was an async timing issue but it still happens. Has anyone else experienced this? I know it's not a problem with the PDF because half the time it loads correctly and everything is fine. React Typescript Implementation: const Bill: React.SFC<BillProps> = (props) => { const bill = props.billDetails; const viewSDKClient = new ViewSDKClient(); viewSDKClient.ready().then(() => { //const blob = await getBillImageLocation(String(bill.controlNumber)); //const url = window.URL.createObjectURL(blob); viewSDKClient.previewFileUsingFilePromise("pdf-div", getBillImageArrayBuffer(St
Hi All, Is this possible to develop the tool in offline for run the OCR in Acrobat DC multi language scanned image files using Acrobat SDK
I tried using app.openDoc to test wether a file exist or not, like this It does work (although bHidden set to true is ineffective)... unless a file doesn't exist or there is an open handle of the file in another application. In both cases,it returns the same NotAllowed error, so using try{} catch {} to discern between both cases is useless. However, if file doesn't exist, it prints that directly in console, regardless of where the script is (batch, document or folder level) and how i try to escape this. I can only clear console with console.clear(), but i didn't find a way to catch this. So the question is: is there a method to read console output or to pipe that into variable, to check if a file exist? Also is possible to make the "bHidden" parameter to work?
I am trying to find a way to convert PDF to DOCX with creating proper table structure <table> <tr> <td> etc.The tricky part is that the conversion should be done without user interaction. I pass the information about the PDF location via API or the document itself and I would like to get DOCX at the outputIdeally, it should be able to run directly on the server.
I am in the process of creating a dynamic stamp with a text field that has a custom calculation script to use the document name. This is the script that I found and am using:event.value = event.source.source.documentFileName; It pulls the document name in fine but it displays it as 1234.pdf, is there a different script or more that I need to add to the current script that would pull in the document name but leave off the .pdf?
Hello!I am looking for a help to understand why the below script does not work the way I would like it to work.I would like the script to give me below value:- if age < 1 and month <6 then give me months count with word "month(s)" - if age <1 and month >=6, then give me a value of "1 year".The below code seems to work fine, but does not give a word "month(s)" in the first condition.Could some help me adjust the code so that it would work? event.value = "";var dobValue = getField("Textfield-54").value;if (dobValue!="") {var dob = util.scand("mm/dd/yyyy", dobValue);var today = new Date();var age = today.getTime() - dob.getTime();// compute age in millisecondsvar nAgeMilliseconds = today.getTime() - dob.getTime();var nAgeYears = ( age / (1000 * 60 * 60 * 24 * 365.2425) - 0.005);if(nAgeYears < 1) {var nAgeMonths = today.getMonth() - dob.getMonth();if(nAgeMonths < 6)nAgeMonths += 12;event.value = Math.floor(nAgeMonths) + " Months";if(nAgeMonths >= 6)nAge
Good Morning, I do have the feeling that I am not very intelligent as I read through nearly every post that covers the topic of Dynamic Stamps and scripting. In front of me I do have the book from Thom Parker - BUT I am not able to create the probably easiest stamp fild on earth. Fun fact, I managed to do a couple of years ago, but missed to save the script and the files. So what have I done so far: Created the stamp I would like to have from an .eps (attached as .png)Made a new Stamp from this file => this one is automatically entered in my Stamps folder (Mac). Than I gave it a new name "Buchhaltung.pdf". (and in Acrobat it has the same name and the same category name) If I try to stamp with it, it works. Now I would like to simple have the chance to enter values (as text) next to each field. Therefore I open the PDF from the stamps folder and started to prepare a form. Works great. The form fields are added automatically and I ca
We’re looking to build an Adobe Reader plug-in to open DRM protected PDF files. We read about the Acrobat Reader Integration Key License Agreement (RIKLA) and related material from here. However, we’re not clear about the specific steps to set up a strategic partnership with Adobe to create DRM plug-ins and pricing details. The link given for “digital rights management (DRM) Acrobat Reader plug-in” is broken. How do I go about creating a DRM plug-in? The steps are unclear. The email address provided on the above mentioned page does not seem to reply. There is no other Adobe Dev Support contact I have to contact Adobe.
Hi.After Opening a PDF file, I want to set the page layout to single page.I think maybe AVDocSetViewDefEx (AVDoc doc, ASCab viewDef) can be used,but I don't know how to set ASCab viewDef about page layout.And,is it possible to use AVDocOpenFromFileWithParams (ASPathName pathName, ASFileSys fileSys, constASText tempTitle, AVDocOpenParams params) to set page layout?I tried to use PDDocSetLayoutMode (PDDoc doc, PDLayoutMode mode),but the page layout not changed.If it's possible, please show me some codes.Best Regard.
Hi folks.First time posting in this community.I have a large library of PDF's. I have been creating and populating custom document metadata for each file using javascript containing barebones code such as:this.info.Name1 = "ACME Company"; this.info.Name2 = "1500"; this.info.Name3 = "2021-01-01"; . . .and then run it as a batch script.Through occassional sloppy coding, sometimes the custom property becomesthis.info.Nmae1 = "ACME Company"; //or// this.info.2Name = "2000"To fix these mistakes, I'll write a script with the linethis.info.Nmae1 = null; this.info.2Name = null;I checked this snippet in the javascript console and I can see it has removed the offending document data object but the change is not persistent. After I save and close the document, it remains. After each console entry I check it in the Documents Property → Custom Tab to discover it has not been removed. In some documents, I have a long list of metadata objects that are not really related to the docume
I have created an Acrobat DC PlugIn which creates a toolbar. The icon for the toolbar initially shows up correctly, but on subsequent mouse clicks of the icon, it turns black. I cannot find any significant documentation on the AVToolBarSetIcon function and am going by one or two samples I have seen. I am not sure what the two images in AVToolBarSetIcon should be. It doesn't seem to matter what the second one is though. The code is shown here: ASPathName pn = ASFileSysCreatePathFromCString( ASGetDefaultFileSys(), settings.logoFilename );PDDoc doc = PDDocOpen( pn, ASGetDefaultFileSys(), NULL, false );AVIcon icon1 = AVIconCreateFromPDF( doc, 0, 24, 24 );AVIcon icon2 = AVIconCreateFromPDF( doc, 1, 24, 24 );AVToolBarSetIcon( mainToolbar, icon1, icon2 );PDDocClose( doc ); Before Clicking: After Clicking:
I'm creating a worksheet meant to help with budgeting, adding up expenses and calculated a percentage based off of a number that is the total of two salary inputs. One of the fields is meant to calculate %50 percent of the total salary. Here's the code I'm using:var Salary_Total = getField("Salary_Total").value;var percentToGet = 0.50;var percent = (percentToGet / 100) * number;event.value = Salary_Total * Percentage; What am I doing wrong here?
I was looking through the Acrobat SDK Plugin Guide and saw the section of "Exporting data from PDF document objects". The section mentions using the "PDDocExportUserProperties" method to retrieve data from a PDF document object. I'm curious as to what kind of user properties are gotten from this method, but I can't find anything about this method other than the page that references the method. What does this method return if anything? Is there an alternative way to getting this PDF document object data? Here is the link to the "Exporting data from PDF document objects" section.https://help.adobe.com/pdfl_sdk/18/PDFL_SDK_HTMLHelp/PDFL_SDK_HTMLHelp/index.html#t=PDFL_MasterBook%2FUnderstanding_Plug-ins%2FExporting_data_from_PDF_document_objects.htm
Hello, I calculated the average text box of 3 fields into one text box to get a 1-5 rating. I will need to be able to use the outcome of that text field number to change the text outcome of another text box to reflect the situations below. 0 to 1 = Unacceptable1.1 to 2 = Below Average2.1 to 3 = Average3.1 to 4 = Above Average4.1 to 5 = Outstanding Can anyone help me please?
Hello, I am an adobe acrobat developer and enthusiast for just about anything that relates to interactive and dynamic pdf forms. I had a serious workflow question for Adobe Acrobat DC. What is the future of Adobe Acrobat Response files after Acrobat Flash Player is discontinued in late 2020? Will acrobat portfolios and response files still be supported after the discontinuation of Adobe Flash Player? I understand portfolios and response files rely on the flash player engine and its components to function as intended. I cannot find any documentation as to how or if this function will be affected. If so, I would love to know as soon as possible to prep my organization for alternative soltions. Thank you for your time. Bryan
Hi.I have written an macro as the following code to get the list of word and the quads of the word in PDF file.But the code doesn't work well.Sub GetPDFWdList() Dim acroApp As Object Dim acroPDDoc As Object Set acroApp = CreateObject("AcroExch.App") Set acroPDDoc = CreateObject("AcroExch.PDDoc") Call Prc_1(acroPDDoc) Call Prc_2(acroPDDoc) aroApp.Hide acroApp.Exit Set acroPDDoc = Nothing Set acroApp = Nothing MsgBox "Done" End Sub Private Sub Prc_1(acroPDDoc As Object) Call GetWdList_EachPDF(acroPDDoc, path, 1) End Sub Private Sub Prc_2(acroPDDoc As Object) Dim fileArr As Variant Dim i As Long fileArr = Array() Call GetFileList(folderPath, fileArr, "pdf", False) For i = LBound(fileArr) To UBound(fileArr) Call GetWdList_EachPDF(acroPDDoc, CStr(fileArr(i)), i + 1) Next End Sub Private Sub GetWdList_EachPDF(acroPDDoc As Object, PDFPath As String, docNum As Integer) Dim jso As Object Dim TotalPage As Long Dim TotalWds As Long Dim
Hi all,I have 3,4 ... pdf documents opened in Adobe Reader.a.pdfb.pdfc.pdfd.pdf .....Let's say that I want to close one of them.Is it possible also just to close tab without killing process?I found this with which I can manipulate pdfs documents.https://opensource.adobe.com/dc-acrobat-sdk-docs/https://www.nuget.org/packages/Adobe.DocumentServices.PDFTools/https://github.com/adobe/PDFTools.NET.SDK.SamplesNowhere I see in it that I can close one or specific pdf file.
I have a script that is causing an error. Everything works except one line. I am trying to insert a page in the document and the document.The linethis.insertPages({nPage:-1, cPath:"C:\Users\xxxxx\Downloads\Documents\Blank Page PDF.PDF"});throws an error about security settings prevent access to this method. How do I run this code in "privleged mode" It is Acrobat DC.{var numWords;try{for (var i = 0; i < this.numPages; i++){numWords = this.getPageNumWords(i);if (numWords < 300) {var PageText = "";for (var j = 0; j < numWords; j++) {var word = this.getPageNthWord(i,j,false);PageText += word;}var strMatches = PageText.match("This Page Intentionally Left Blank");if (strMatches != null) {this.insertPages({nPage:-1, cPath:"C:\Users\xxxxx\Downloads\Documents\Blank Page PDF.PDF"});}}}}catch(e){app.alert("Processing error: "+e)}}
Hi,We're looking at deploying a plugin (targetting both Acrobat Pro and Reader) and we need to convert an AVIcon object to a raster image file (ultimately a PNG file).As far as we can determine, the AVIcon class is purposedly obsfucated and there are no utility functions to convert between AVIcon and other formats. We're following up here to see if we have missed anything.As for alternatives, we'd appreciate if anyone could indicate how to convert a PDF page to a raster image from within Reader. We looked at PDPageDrawContentsToWindowEx() but it will throw. We were unable to find an example on how to this function in plugin and we're not sure we're passing in correct data.Cheers,Nuno
Hi Community, It seems that the export of PDF to txt doesn't launch OCR recognition. When converting the attached document to .txt, no text gets recognized.However converting to DOCX or HTML outputs the recognition text. Please find the script to reproduce in enclosure. Is it expected? Any suggestion to trigger OCR when converting to .txt would be highly appreciated. Thanks & regards,Simon
Dear all,I am trying to combine various PDFs via Acrobat XI Pro into a single PDF file. While at the beginning the process works more or less smoothly it gradually gets more time consuming (consolidating duplicate fonts) the more pages the final PDF file contains (>3000 pages). This leads eventually to the point that integrating a one page PDF file (via "combine files into single PDF" or "insert from file" it does not matter) takes up 1 to 3 hours just to crash at the end completely. The problem occurs with many different PDFs I am trying to combine and not one specific file.Here the technical specifications:Acrobat Pro XI: 11.0.17, Architecture: i386, Build: 11.0.17.9, AGM: 4.28.147, CoolType: 5.11.145, JP2K: 2.0.0.36554MacBook Pro: 2.8 GHz, 8 GB from 2014OS X: El Capitan, 10.11.6Any suggestions would be highly appreciated.Thank you in advanceDJ
Hello,I'd like to automate the process wich transforms all text areas of a PDF file into form fields.I can do this manually with the "Prepare form" button, then let Acrobat automatically detect fields.Step 1 : I create a PDF document from Access VBA containing a lot of text areasStep 2 : VBA should transform the text areas into form fields Any idea ?Thanks.
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.