Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
I tried 2 methods, none of them worked.1: AVDoc avDoc = AVAppGetActiveDoc(); PDDoc pdDoc = AVDocGetPDDoc(avDoc); PDColorConvertParams colorParams = (PDColorConvertParams) calloc( 1 , sizeof(PDColorConvertParamsRec) ); PDColorConvertAction colorConvertAction = (PDColorConvertAction) calloc( 1 , sizeof( PDColorConvertActionRec ) ); ASBool pageChanged = false; AC_Profile workingProfile; ACGetWorkingSpaceProfile (kACWorkingCMYK, &workingProfile); //Populate the PDColorConvertAction data members colorConvertAction[0].mMatchAttributesAny = -1;//kColorConvObj_AnyObject; colorConvertAction[0].mMatchSpaceTypeAny = -1;//kColorConvAnySpace; colorConvertAction[0].mMatchIntent= AC_UseProfileIntent; colorConvertAction[0].m
This seems like a simple one, but I've had some difficulty finding examples. I have Adobe Acrobat DC installed, and the Acrobat Addin for Excel. I'd like to convert say 3 of 5 worksheets in my Excel workbook into a PDF using VBA (and replace me having to do this manually). Hopefully this is easy to do.
We have encountered an issue where the size of the PDF files that we generate almost doubled in size when we upgraded the Operating System that we generate these files on from Windows XP to Windows 2012. Has anybody else encountered this issue? If so, how did you resolve it?
I am working on a script that is trying to read files (in .txt format) and manipulate them. I am trying to prompt the user to find and select an existing file on their computer. How can I write the code in such a way that triggers a pop up file explorer window (compatible with Adobe Acrobat DC)? I want the user to be able to find any document instead of dictating the file name or file location within the script. Once this is achieved, I would set the file name to a string variable called fileName. I am unsure where to begin with this process, so any help would be greatly appreciated. If there is an easier or more efficient method of achieving this goal please feel free to share. Thank you.
I need to create a fillable form that contains a simple drop down list in a pdf document that obtains its values from a web service that returns a small xml document and populates this drop down accordingly. I have the following questions on this topic:It seems I can add interactivity with Javascript so is it safe to assume I can use Javascript to consume a web service for this purpose? I read something about being able to access web services using something called Lifecycle Designer (seems to be really old posts about LCD), is this really necessary if I can use straight forward Javascript?If this is possible with Javascript, will all users who access this document be able to use it with Acrobat Reader without any issue be it security or other or do all users require the full version of Adobe for such an action?
Hi everyone.Im very new to javascript but learning. Im making i time sheet for my employer and have a calender widget on the first day of the week so whoever needs to use it can click on that datefield and choose a date. I wrote a script (With some inspiration from around here) to fill out the rest of the dates of the week. So if someone chooses monday 08/14-2017, the rest of the dates gets filled out by the script.I was asked if i could make it stop autofilling if a certain date is hit (We need to make them start a new timesheet at 2 dates each months , even if its midweek.) and im not sure where to go from here.This is the script i put in the costum calculation scripts for the other days. So this code is for tuesday and for wednesday i just changed the d.setdate to +2 etc.Any help on getting it to stop if i get the 20. and 31. of the month?(function () { // Get date from field var v = getField("Dato").valueAsString;  
Salve come da titolo chi mi sa aiutare con chrome ma anche con firefox mi da errore e non converte niente, mi sembra di capire che sia un problema di java ma non so dove mettere le mani.grazie dell'aiuto
I'm not sure it's the correct forum however I didn't find a forum specific for PDF Library. If there is one, I would love to get a link to it.Now to the question(s).I have an automated c# process that's optimizing pdf files that's coming from multiple sources using PDF Library: using (Library library = new Library()) { using (PDFOptimizer optimizer = new PDFOptimizer()) { SetOptimizerOptions(optimizer); try { optimizer.Optimize(new Document(sourceFile), targetFile); }
I'm still looking for help with this. One button to undo and one button to redo. Can someone provide a little help with this? I just can't find any javascript that will help me achieve these buttons. I have four text fields (total1, total2, total3, total4) and next to each I want to have the undo button and redo buttons for each total fields. Pretty basic. Like this, check box - click it to undo and if possible, to uncheck it to redo total1 field. And so on for the other three total fields. Or a second check box to redo total1. If you can help, please don't hesitate. Thank you.
Dear Sir/Mam,Can you suggest me how can I multiply the vale which was selected in combo box with a text box ??I have created form of Final Invoice through Adobe pro 9. In that copy I have used the calculation method available to bring the total of amount. Now for calculation of GST(Tax) which may varies from 5% to 18%. So I want to multiply the value of percentage which was selected in combo box with the Total amount mentioned in text box.Regards,NT
Hello All,I was wondering how difficult it would be to write a script that would go through all my bookmarks in the current PDF and mark those bookmarks that are dead and don't lead anywhere in a specific manner? Maybe bold and in red font?We send PDF documents back and forth with clients and between our changes and their's, we often end up with dead bookmarks in the file and I'd like an easy way to identify and resolve those. Any help would be greatly appreciated! THank you!
We receive a daily PDF file from our bank that is not searchable (they are not able to provide in searchable format). In attempting to perform text recognition we receive Acrobat error "could not perform recognition (OCR) because page contains renderable text".As a workaround we copy the original file, convert the copy to TIFF, covert it back to PDF and are then able to perform successful OCR, making file searchable. This is very time consuming. We are performing this on new daily files but also have a backlog of files to address. We are seeking a better solution.
I was wondering, is it possible to use one drop down box to apply a percentage to a specific total field? But, then clicking the same drop down box would then apply a different percentage to a different total field on the second click. At the moment I have one drop down that applies the percentage to two different total fields, at the same time but now I'd like to be able to apply two different percentages from the same drop down. I'm trying to not clutter up the form by using another drop down that would apply the selected percentage. So, I thought it would be possible with a bit of javascript and know how, to use one drop down to select the percentage. Or, I'm always open to suggestions that would work. Thanks, guys.
Hi,Attached you will see a pdf file with some text that is repeated at the top of each page and all my pdf files. What kind of an object is this? Javascript does not recognize it as a field or annotation or header. Is there a way for me to detect this as a header via javascript and therefor skip my pattern matching test on its content .U8_2 _forum.pdf - Google Drive
I am trying to get my text field "Text 2" to populate based on the value in field "Text 1". If "Text 1" is less than 0.75, then "Text 2" should fill with "Not Met." Below is the custom calculation that I am setting up for "Text 2." Can someone tell me what I am doing wrong in my script?var a=this.getField("Text 1").value;var num1=0.75var num2=1.75var num3=2.75if(var a<var num1){event.value=a=="Not Met"?"":a;}Thank you!!
Hi,I have a formula for calculating the %CV of a set of values. The formula is below. The problem is that if you enter another value in one of the "fill" cells and then change it back to the original number you end up with a different calculated value. Also if you delete the contents of the calculated cell and then click or tab out of it the value also changes. Any idea what can be the root cause here?var average = this.getField("Text10").value;var v = 0;var fieldName = "fill"; var s = 0;var sd = 0;n = 6; for (var i = 0; i < n; i++) { v = this.getField(fieldName + i).value; s = s + Math.pow((v - average), 2);}sd = ((Math.sqrt(s / n)) / average); event.value = sd;event.value = util.printf("%.2f", event.value);
Hello,I am currently working with a form that has several check boxes for a mutually exclusive checkboxes for a row series. Based on the check box selected, a corresponding text box will be populated with the applicable data (done using javascript). Also, when a certain option is checked, there are other options down below in the order guide that need to be checked simultaneously. I have accomplished this, but now I cannot figure out how to have check boxes populate simultaneously, but then if I check a different box in one of the previously automated series, that it will uncheck the other check box in the series automatically. I have searched and searched for an answer, but cannot find the solution. Please help!
I've writted some code but it show me this erreur(m_lpDispatch == NULL); : app.exe has trigged a breakpointbut I think that I've do mistake into my code please really I need your help , I want to no how to step
Can anyone provide me with the proper script for converting the amount in figure to amount in words as per the indian currency format such asFOR Rs. 25,25,25,225.25 we spell it as Twenty Five Crore Twenty Five Lakh Twenty Five Thousand Two Hundred Twenty Five Rupees and Twenty Five Paise only.I got some script from forum which is : aTens = [ "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"];aOnes = [ "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen" ];function ConvertToHundreds(num){ var cNum, nNum; var cWords = ""; num %= 1000; if (num > 99) { /* Hundreds. */ cNum = String(num); nNum = Number(cNum.charAt(0)); cWords += aOnes[nNum] + " Hundr
I am scanning a document from Adobe Acrobat DC on a wireless multifunction printer. I am on Windows 10 and have never had any problems before. In the current document, for some reason Adobe stops working (locks up) after several pages. In other words, after the second page the program simply locks up – I cannot discontinue scanning, save the document, or anything. I have it set for a custom scan into prompt me for more pages. After two or three pages, it stops prompting me for more pages and the save button is grayed out. My only option is to shut down the program through the taskbar. I have tried running repair, and even uninstalled and reinstalled Adobe. I also changed the color mode from black-and-white to grayscale (I am only scanning at 150 for crying out loud). Nothing works. What's the fix for this behavior?
Dear all,Arcobat Pro has a very nice function as context menu "Combined supported files in Acrobat...". Does anyone have a sample code in VBA that I can use in Excel?I want to perform the functions variably:Specific files, which should be converted and merged into a single PDFSpecify which file comes first, second, or other place in the single PDF fileFile name as bookmarkOptional: Edit Bookmarks from Excel cell dataSwitch the File sizeOptional: Switch Title and Author informationOptional: Save the single PDF in archiv format (PDF/A)For an example VBA code I would be very grateful.Best regards,/M
So I have been trying to find an answer to this sense the release of acrobat x. When you pullout a guide from the ruler there is no preview of where that guide will end up. The preview usually shows up as a black line that then turns blue. This feature exists in all the other Adobe products I use (illustrator, photoshop, INdesign etc.) but after updating to Acrobat x it seemed to go away. Does any one know why this is and how to fix it? It's very annoying to try and place guides without that preview.
I'm running Acrobat 8.31 on Windows 7 ... it's an old computer at my workI don't think this should be hard. I am new to both JavaScript and JavaScript on Adobe, but I know Java and VBA pretty well.From everything I've read, creating a trusted function and running extractPages from it should work and not be an error: I test my function in the Debugger by passing in this...test123(this);(my code)var test123 = app.trustedFunction(function(oDoc){ <then later> oDoc.extractPages(previousPage, p, "file" + p); //previousPage and p are variables that are initialized <later again});and I get this..."NotAllowedError: Security settings prevent access to this property or method.Doc.extractPages:20:Batch undefined:Exec"I've have tried everything I can think of. Any idea why I would get this?
I am creating a form which will be submitted via email. I need the form to CC an email address based on a field value.I need it to be based on: field = employee ID then cc the email address for the particular IDI've currently got the rest of it working. Just want to add in this CC function to streamline a process.so far I've got:var Subject = getField("fieldname").value;this.mailDoc({bUI:false,cTo: "email address",cSubject: "Additonal text"=Subject,cSubmitAs: "PDF"});thanks
Hi,I am trying to implement a delete button in which attached files can be removed from the current document. I need to create a dialog box that lists all the attached files in which the user can choose to delete, and then have the dialog box refresh the list with whatever files are left. I have been looking into the execDialog and Dialog objects as a solution, but I am not sure if this is the best approach. Are there better solutions?Also, the users will be using Adobe Reader, which is why I am trying to implement a delete button because it does not exist. Is this possible to do in Reader?I am new to Javascript, so if you know any good resources that will speed up my learning process using it to interact with Acrobat, I would appreciate it.Thanks.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Har redan ett konto? Logga in
Har du inget konto än? Skapa ett konto
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.