Skip to main content
Participant
January 13, 2021
質問

Adobe PDF with embedded Gifs?

  • January 13, 2021
  • 返信数 2.
  • 6945 ビュー

Hi there,

I am in the process of putting together a presentation PDF that requires two gifs to be embedded on some pages.

I'm wondering if this is something that can be created with an interactive PDF?

I have embedded MP4s and MP3s in the past but can't seem to apply animated Gifs.

Is anyone here able to help me?

 

Thank you!

Patti

このトピックへの返信は締め切られました。

返信数 2

JR Boulay
Community Expert
Community Expert
October 23, 2022

Explanations:

 

In Joel's document there are 15 named icons:

 

icon[0]=Muybridge_01
icon[1]=Muybridge_02
icon[2]=Muybridge_03
icon[3]=Muybridge_04
icon[4]=Muybridge_05
icon[5]=Muybridge_06
icon[6]=Muybridge_07
icon[7]=Muybridge_08
icon[8]=Muybridge_09
icon[9]=Muybridge_10
icon[10]=Muybridge_11
icon[11]=Muybridge_12
icon[12]=Muybridge_13
icon[13]=Muybridge_14
icon[14]=Muybridge_15

 

See importIcon here: https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/doc.html#importicon

 

 

In Joel's script you will find "interval.count" which is the number of frames/icons to loop.

And "interval.maxLoops" which is the number of repeats.

You can change the name of the field and the name of named icons in these lines:

var icon = this.getIcon("Muybridge_"+pad(interval.count,2));
this.getField("Muybridge").buttonSetIcon(icon);

Acrobate du PDF, InDesigner et Photoshopographe
Joel Geraci
Community Expert
Community Expert
January 13, 2021

Take a look at this example file. If it does what you want, I'll share the technique.

 

https://www.dropbox.com/s/mgo4u7s2xlqgzlz/PDF_GIF.pdf?dl=1

tillt
Known Participant
February 19, 2021

Hi Joel,

 

thanks for sharing the example – I’m also looking for a way to integrate a small animation (animated GIF style) into a PDF. Can you please share the technique?

 

Best regards,

Till.

tillt
Known Participant
February 19, 2021

One additional question: could you also make the animation auto-run when opening the file (not having to click to start it)?