Copy link to clipboard
Copied
hello , I would like to change the prices of this pdf and multiply by two, I would not do it individually , what can I do ?
Copy link to clipboard
Copied
Are these prices located in form fields, or are they static content on the page? If the latter there's no simple way of doing it.
You'll need to either manually edit each price using the Edit Text & Images tool, or create a custom-made script to identify them and overlay a field with the new price on top of them.
This kind of editing should really not be done in the PDF format. You need to go back to the original file used to create the PDF, edit it, and then generate a new PDF.
Copy link to clipboard
Copied
unfortunately I don't have the original file. these prices are located in form fields.
Can i create a custom-made script to identify them and overlay a field with the new price on top of them?
thanks
Copy link to clipboard
Copied
If they are form fields then it's quite easy to change, actually.
Here's an example of a script to change the value of a single field:
this.getField("Price1").value = Number(this.getField("Price1").value)*2;
Copy link to clipboard
Copied
OK , but how do I create and use the script ?
Copy link to clipboard
Copied
What are the names of the fields involved?
You can run the code via the JS Console (Ctrl+J).
Copy link to clipboard
Copied
the field involved is price
Copy link to clipboard
Copied
i use mac.
Copy link to clipboard
Copied
It seems to be more than one field... I think you might not know what form fields are.
Can you share the file in question (via Dropbox, Google Drive, etc.)?
Copy link to clipboard
Copied
yes, give me your mail
Copy link to clipboard
Copied
try6767 at gmail.com
Copy link to clipboard
Copied
sent. thank!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now