Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

edit pdf

New Here ,
Jan 21, 2016 Jan 21, 2016

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 ?

Schermata 2016-01-21 alle 14.51.50.png

TOPICS
Acrobat SDK and JavaScript
936
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2016 Jan 21, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2016 Jan 21, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2016 Jan 21, 2016

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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2016 Jan 21, 2016

OK , but how do I create and use the script ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2016 Jan 21, 2016

What are the names of the fields involved?

You can run the code via the JS Console (Ctrl+J).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2016 Jan 21, 2016

the field involved is price

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2016 Jan 21, 2016

i use mac.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2016 Jan 21, 2016

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.)?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2016 Jan 21, 2016

yes, give me your mail

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2016 Jan 21, 2016

try6767 at gmail.com

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2016 Jan 21, 2016
LATEST

sent. thank!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines