Skip to main content
Participant
June 11, 2020
Question

Batch Process - Insert icons into each pdf-side

  • June 11, 2020
  • 1 reply
  • 592 views

Hello community,

 

I want to implement an icon with the help of javascript on each side of the pdf. I have already implement two text field on each side. It works fine with:

for (var p=1; p<this.numPages - 1; p++)

{
var textfield1 = this.addField("Text1" + p, "text", p, [75,130,100,110]);
textfield1.value="Notizen:";
textfield1.readonly = true;
var textfield2 = this.addField("Text2" + p, "text", p, [75,110,520,30]);
textfield2.multiline=true;
textfield2.strokeColor=color.green;
var textfield3 = this.addField("Text3" + p, "text", p, [75,520,100,500]);
textfield3.value="Notizen:";
textfield3.readonly = true;
var textfield4 = this.addField("Text4" + p, "text", p, [75,500,520,420]);
textfield4.multiline=true;
textfield4.strokeColor=color.green;
}

 

But up to now I can not implement an icon into the alreading existing text fields.I do not know how I can implement an external icon into Adobe pdf. 

Further Questions:

Is this possible with an text field or only with buttons?

Is it better to use images than icons?

 

 
I look forward to your help. Thanks in advance.
This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
June 11, 2020

You can use images at button fields.

johan32Author
Participant
June 11, 2020

I have already tried this. But without success. Can you explain a litte bit more? Or do you have an example?