JavaScript in a PDF file that checks the value of a specific field and then make the right calculation.
Hi guys!
Sorry for my English is not my mother tongue.
This is my first time writing here, I just discover the great possibilities of Javascript in PDF files and I'm very excited about it!
I have no experience with Javascript, that's what I would do:
Basically, I need to calculate how many litres of gas is needed to do a specific job in agriculture.
I have a table that looks like this:
Seed: 120 litres/Km
Weeding: 20 litres/Km
Fertilize: 140 litres/Km
I have 3 fields in the pdf file: OPERATION / KM / NECESSARYGASOLINE
I need something like this:
Seed = 120;
Weed = 20;
Fertilize = 140;
IF the OPERATION is 'Seeds' then NECESSARYGASOLINE = 120 * KM;
OTHERWISE, if the OPERATION is 'Weed' then NECESSARYGASOLINE = 20 * KM;
OTHERWISE, if the OPERATION is "Fertilizer" then NECESSARYGASOLINE = 140 * KM;
Is it possible to translate it in Javascript?
Thank you very much for the help! It would be really wonderful!
Yes, it is possible. Use the following syntax:
If (organic == 'Yes' & culture == "Wheat")
Tags: Acrobat
Similar Questions
-
Hello
Is there a limit for research on the function of advanced search for files containing a text match? My search always ends with 500 discoveries but the folder contains several PDF files that match the criteria.
Hi carls76936091,
Open Acrobat, go to the Edit-> Preferences-> search & check if there is a limit to 500 set, in case if it is to increase it please.
Kind regards
Nicos -
I have a pdf file that contains the text if I copy all the text and paste it into Notepad and save the .txt file is it changes the ascii value of the text?
If the encoding is ASCII? Laughing out loud
Be well...
-
Save a PDF file that retains the size when opening.
I start with my photoshop file. I save as pdf. At the opening of the PDF it opens 2 X the size of my orginal photoshop file. I hit then command 0 to see the size of the original, but it is still much bigger than my photoshop file.
I would like the best viewing experinece to my PDF and I want it opens exactly the size of my photoshop file. It is annoying when it open wide. How can I do this?
Thank you for your help.
If you have Acrobat, you can open the PDF file and edit the document properties ".» (CMD - D)
On the tab 'Initial view', select the 'magnification' favorite.
Beware that there are limits to the retention of what you perceive as the correct size. Different people have different size poster.
-
I need to process a large volume of PDF from Word files.
Option of work required is high quality press.
I tested the creation of PDFs in 2 ways:
Open the file in Word and PDF/Print/File and select high quality default press + save as default printer
Then I tested it by selecting several files to a directory and using the right click (convert to PDF)
Results: PDF do not have the same properties and right click PDF files have a poorer quality unsuitable for printing paper.
Do you know how to set the option of high quality for the click press right (Adobe does not use the same parameters depending on the operation)?
Go to the preferences of Acrobat. Choose the convert to PDF pane and click Microsoft Office Word. Click on change settings and from there, you get a dialog box that allows you to set the Settings Adobe PDF for such operations in batches. Select the option of high quality print and then press OK twice and you should be good to go.
-Dov
-
Hello
I bought this pdf of the SABS in South Africa, the file contains the standards of the unit and I can't walk around with my laptop all the time. The PDF contains a field user name and password on page 6, which connects directly to the Web of OCS site to open page 6 to 397. Why cant fields that I type in the username and password on my laptop?
Kind regards
Christo
Hello
Is the PDF "protectedPDF" by Vitrium?
Currently, mobile products Acrobat DC (for iOS and Android) do not support PDFs with DRM (Digital Rights Management) by third parties.
I'm not aware of any other free mobile applications that support documents "protectedPDF".
I advise to use the desktop Reader on a Windows or Mac computer version to view PDF documents. Sorry for the inconvenience.
-
editing a pdf file that I not create
This program will allow me to easily change/revise a pdf file that I've not created? Specifically, my employer request frequently copies of my credit card statement so that I can be reimbursed for the expenses and I do not wish to reveal all other purchases I made. Can I remove those with this program? Currently, I have to print it, cover them Sharpie, scan him in and then send it. Yuck.
Thank you
Acrobat will allow you to edit a PDF and Acrobat Pro has a reduction
tool that will allow you to permanently remove items from it. There is a
free trial version that you can use for 30 days.
-
Using Acrobat Pro and what impression on network printer it prints very slow. I have found that if we choose to print the image works fine. But how do I print as image remains for all of my PDF files. I have to choose every time now and that is not always known.
Hi jeans37547790,
Please do mention it below as follows to change the settings:
Open Acrobat > click file > print > click on advanced > and check the box that says "Print as Image".
Here is the screenshot:
Let us know if you face any problem.
Thank you!
Shivam
-
I am new to Adobe, I created an Excel file that I convert the file to PDF, but the converted PDF file shows all the data, missing on the right side of the page
Hi Tony,.
In Excel, click on the Acrobat toolbar, and then click Preferences.
Now select the option 'Fit the worksheet to a single page' and click ok
Now, try to convert and check.
Kind regards
Rave
-
How can I remove 'save' options in a pdf file that only allows you to complete and print the form
How can I remove 'save' options in a pdf file that only allows you to complete and print the form?
Go to tools - JavaScript - the value of the Document Actions and define one will save the action with this code:
this.resetForm ();
If you are worried about the safety of private information transfer, however, then email is not a good way to do it. You must use a HTTPS web service for the security.
-
My pdf files that I am editing keeps "freezing" and I have to use the Task Manager to end the program. I have the latest version of Adobe Acrobat Reader DC and I have 10 windows? Is there any solution for this?
Hi gregs5153218,
You can't the PDF files to be changed with Acrobat Reader DC.
You must have the Acrobat application to edit PDF files using Acrobat. Edit PDF files.
Kind regards
Nicos -
Adobe booth 7.1 on Win7 32 bit, 4 GB of ram - when creating a pdf file, that he was very quickly now that is very, very slowly, at 53 seconds of 8 pages. We scan many documents and this slows us down. I tried another directory, clean the current directory, remove other programs that have been added and stopped scanning of Kaspersky. Any help would be greatly appreciated
Assuming that you are talking about Adobe Acrobat 7 Standard, it is far from being compatible with Windows 7, if problems are to be expected.
The first version which has been is 9.2, if I remember correctly.
-
I have Adobe Acrobat Standard DC and I would be able to reduce the size of PDF files that I could with Adobe Acrobat Professional. Reduce size PDF with Adobe Acrobat Standard DC file? If Yes, where is the button? IN Pro, the button was in the drop down "Document"... Thanks for the tips, Bob
Hi Robert,.
Please visit the following link: https://helpx.adobe.com/acrobat/using/optimizing-pdfs-acrobat-pro.html
Kind regards
Rahul
-
I have a document composed of separate PDF files that reside in a folder and are related to each other through hyperlinks. Each pdf file is configurΘ for dΘmarrer with bookmarks displayed, however if I have a link to one PDF file to another and use the "back" button to return to my starting point bookmarks are replaced by "vignette". Is there anyway to prevent this?
Hi Mike,.
While the implementation of the links, if you choose to open the file in a new window then you will not experience this issue, then you can simply switch to the file view and previous bookmark will remain as it is.
Is that what helps with your query?
Kind regards
Rahul -
Any ideas how can I insert a pdf into word, by using the option object to insert. However, the pdf file that I want to insert text and annotated lines, but once inserted comments do not appear? any help would be greatly appreciated.
You will need to find a forum for MS Word, since it is the software you are trying to manipulate in the present. If you think that the treatment/creation of the PDF file plays a role, then you should ask in the forum for the software that you use to create the PDF file.
This forum is for a question about downloading and installing Adobe products test, so in all circumstances, your question does not fit in this forum.
Maybe you are looking for
-
Windows 7 cannot resolve the ip addresses of domain names
I have a desktop computer that I built components purchased in a major computer store. I got this system works well for several months, now. Recently, however, I met a problem with one of the modules of memory of 2 GB. I deleted (because it turned
-
Your upgrade to Windows 10 ready
This message is the only thing in Windows Update. I can't install Windows 10 but when I followed the instructions for "restart now" just, it restarts and comes back (under Windows 7) to the same "your upgrade to Windows 10 is ready" with the button '
-
Windows DVD Maker - a section will not play music
I used Windows DVD Maker to create a photo slideshow. I downloaded music and for some reason there is a break in the music after the second song. In the end, the last sang the fade in unfinished is not because there are not enough audio files. It wor
-
I have trouble at any time update for Windows 7, what should I do?
I am running Windows 7 Professional on my laptop, my brother bought me a "Move up Windows 7 Ultimate" Windows Anytime Upgrades. After I received the product key, that's when I realize that this upward movement was made for Windows Home premium, what
-
The user can select manual or automatic, advancing slide?
HelloI have a very simple project that currently drives slide when the user clicks a Clickbox or shape used as a button. (I've also hidden the PlayBar)I would like to change so that at the beginning of the project, the user is given the opportunity t