Create and Embed a Photo Gallery in a PDF

Create and Embed a Photo Gallery in a PDF

with Chris Converse

 


Discover how to create and embed a photo gallery, portfolio, or product catalog into a single, interactive PDF file—with one line of code. This course demonstrates how to create an interactive gallery with Adobe Bridge, featuring your own photos or files. Using Adobe Acrobat, author Chris Converse also shows how to embed the entire interactive user experience into a single, shareable PDF file. Use this technique to share photos, promote portfolios, or show off a product lineup in an easy-to-distribute format.

show more

author
Chris Converse
subject
Design, Web, PDF, Projects
software
Acrobat 9, X, Bridge CS4, CS5, CS5.5
level
Intermediate
duration
11m 30s
released
May 02, 2012

Share this course

Ready to join? subscribe


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Preview the final project
00:04Hi, this is Chris Converse and this is a
00:05course on embedding a photo gallery into a PDF file.
00:08So I wanna start by showing the final project.
00:10I'm gonna open up the myGallery PDF inside of the Final Project folder.
00:14Notice when this PDF opens, we have the photography that fades into place.
00:18We have some thumbnails on the left-hand side, have a scrollbar that I can
00:21scroll through. Clicking on individual
00:23thumbnails will bring up the main picture
00:25in the main area and do a crossfade.
00:27There's also a Play button down here that I
00:29can click and go into Auto Play or Slide Show mode.
00:32And I can even turn on and off
00:33the thumbnails by clicking on this button here.
00:35So this entire interactive experience is gonna be embedded into a PDF
00:39file and we're gonna create this entire
00:42experience using Adobe Bridge. So we're not gonna be coding anything. And Bridge
00:45will give us the ability to put together
00:47multiple types of templates that are Flash- driven, all with external data, and all
00:52based on folder of photos and images that
00:54we bring into Adobe Bridge. Now, although the web community has been moving away
00:58from Flash as a format that they use on their web sites, Flash is alive and well
01:02inside of Adobe Reader and Adobe Acrobat. So, anybody who's Acrobat Reader 9 or
01:06later can look at your PDF file on their computer and get this full interactive
01:10experience, all contained inside of one PDF file.
01:12So I hope this sounds interesting to you and if so let's get started with the first movie.
Collapse this transcript
Using the exercise files
00:00Now if you download the exercise files, there's gonna be three folders
00:02inside of that ZIP.
00:04The first is gonna be a Photos directory.
00:05Inside of here is just a series of JPEG files that you can use for this course.
00:08Of course, you can use your own JPEG Files, and if you're gonna be using an Adobe
00:12Bridge, you can use any file format that Bridge supports as well.
00:15Inside of the second folder is the final export that we're gonna be
00:18creating from Bridge.
00:20Now, if you don't have Adobe Bridge, you can simply start in the next movie by
00:23picking this particular myGallery folder and just continuing on.
00:26And you can also use the techniques we're gonna do in the next movie for
00:29embedding Flash for using third-party- based slideshows inside of Flash as well.
00:35And then finally, in folder 3 is a copy of the final project.
00:38So, you can take a look at this file and see what the final project should look like.
00:41So, now that we're familiar with the exercise files,
00:44in the next move, we're gonna launch Bridge and then start by creating
00:46our gallery.
Collapse this transcript
1. Creating the Gallery
Using Adobe Bridge to create an interactive gallery
00:00To create our gallery, we're going to move over to Adobe Bridge.
00:03You can follow along with the Adobe Bridge CS4 or later.
00:06So the first thing we're going to do inside of Bridge is come up to the Window
00:08menu, come down to Workspace, and activate the workspace called Output.
00:12That's going to bring up the Output panel in the upper right-hand area,
00:16and it's also going to give us a Folder and Favorites view on the left-hand side.
00:20So, over here in the left-hand side, let's go up to Desktop.
00:23Let's open our Exercise Files, and we basically want to locate the Photos directory.
00:28So, you can use the Photos directory with the Exercise Files or again, you
00:31can use your own set of photos or any folder that contain files that Bridge supports.
00:36Now with the Photos folder selected, I can see the Content panel down here.
00:39Clicking on any individual item will then show me a larger view inside of the Preview pane.
00:44So with any one of these photos selected, let's come up t the Edit menu and come
00:48down and choose Select All.
00:49That will select all of the images in the Content directory and then show me a
00:53preview of all of these in the Preview area.
00:56Next, we'll come over to the Output panel.
00:58Let's select Web Gallery.
01:00The first thing we want to do is pick a template.
01:02Inside of this dropdown menu here are a series of templates that are all Flash-
01:05based, with the exception of the HTML gallery.
01:08So, we can basically use any one of these templates and embed them into a PDF file.
01:12The only reason we can't use the HTML gallery is there is no way to natively
01:16embed HTML inside of Acrobat right now.
01:19So, I'm going to come up and choose Left Filmstrip.
01:21This is the one we looked at in the introduction video.
01:23There's also some panels under here that allow you to customize your
01:26particular gallery.
01:27We can do things like change the titles, we can change the colors of the
01:31individual text, we can even come in and change the appearance.
01:34So, we'll take a look at some of these settings in a moment. In order to see
01:37what we're going to though, what we're going to come up and click on the Refresh Preview here.
01:40What this is going to do is Bridge is going to take all of these settings
01:45and compile a Flash application and show us the entire finished project
01:49inside of the Output Preview.
01:50So, this is interactive inside of here. I can scroll through, click on
01:54individual photos, see the crossfade, turn on and off the slideshow, and even go
01:58into the Full Screen or a Thumbnail view.
02:01So again, this is a fully interactive version showing right inside of the Output Preview.
02:04Then you'll notice in the upper left-hand corner we see things like My Gallery,
02:08and in the upper-right My Photographs and Contact Name.
02:12If we come down to Site Info, all of that data is coming from this particular
02:15panel inside of Bridge. So you can come in here and add your name, add your
02:18email, put in a description.
02:21Under Color Palette, we can come in here and change information about the color palette.
02:25So a text, for example, I might want to click and make this maybe a dark blue. Refresh Preview.
02:33And then when we re-compile a new zip, we'll actually see those settings showing up here as well.
02:38So, I don't actually like the blue, so let's get back and change it back to white.
02:41Once you have the gallery working exactly the way you want,
02:49let's come down to Appearance. In here we can set settings such as duration, the
02:53crossfade transition effect.
02:54We can even set the quality of JPEGs and the thumbnail and gallery image size.
02:57Then when we're complete, let's come down to Create Gallery.
03:03Under Gallery Name, you can give your gallery a specific name.
03:06Under Location, let's choose Browse.
03:08I'm going to select the Desktop, click Open, and then I'm going to click Save.
03:14Now, what Bridge is going to do is basically re-create that same gallery.
03:17But instead of bringing it to the Output Preview, it's actually going to rate
03:19the entire project to a folder on the Desktop. Let's click OK.
03:24Minimize Bridge. Then let's go out to My Gallery.
03:27Let's open this up. And we can see inside of the folder now, we have an index.html
03:32file and a folder called Resources.
03:34If I double-click the index.html, open this up in the browser, I can see
03:37the exactly same user experience running inside of a web browser that we saw
03:40on the introduction video embedded inside of a PDF. Same interactivity,
03:45same clickable thumbnails, same slideshow settings, and same Full Screen and Thumbnail view.
03:52So this entire experience is running inside of the browser. I'm going to close out of
03:55the browser. Let's come back out to the My Gallery folder.
03:57So inside of this Resources Directory, what Bridge did is created a series
04:02of JavaScript files,
04:04a SWF file which is interpreted by Flash player, and an XML file, and in images
04:08directory which has the large, medium, and small graphics that were created from Adobe Bridge.
04:13So basically what's happening here is this SWF file is getting loaded by Flash player,
04:18and then the Flash player, in turn, is looking at this XML file, which informs the
04:22Flash player of all of these individual images and all of the text and data for
04:26our Flash application.
04:27So now that we have the entire gallery working, in the next movie we'll take
04:30that SWF file, we'll create a PDF from the SWF, and then embed all of these resources
04:35so we can have that full interactive experience embedded into a PDF file.
Collapse this transcript
2. Embedding the Gallery in a PDF
Using Adobe Acrobat to embed your interactive gallery into a PDF
00:00Now, to embed our gallery into a PDF file, we need to switch over to Adobe Acrobat.
00:04You do have to have the full version of Adobe Acrobat, and it has to be Acrobat 9 or later.
00:09So, once Acrobat is running, we're simply gonna come down to the File menu,
00:11come down to Create, and choose Create PDF from File.
00:15Now, from the desktop, we're gonna choose the My Gallery folder that was created by Bridge.
00:20Let's go into resources and let's select gallery.swf. Let's click Open.
00:26The next dialog box we're gonna see is the Insert SWF dialog box.
00:30Let's move this up a little bit and come down and click on the Show Advanced Options.
00:34This is gonna give us a whole host of settings that we can set when this SWF file
00:38is activated inside of our PDF.
00:41Under Activation Settings, on Launch Settings, let's come down and choose Enable
00:44When: page containing the content is opened.
00:47That way when the PDF file is opened, the SWF will begin to play automatically.
00:51Let's switch over to the Resources tab.
00:54This is where we can add in all of the resources into this Flash object.
00:58So, just like a web browser loads Flash Player and then Flash Player in turn
01:01looks for that XML in all the images, we need to embed all of this into the PDF so
01:05that the Flash file can still find that data.
01:07So, let's come over and click on Add Directory.
01:10We're gonna select the resources directory inside of My Gallery, then click Choose.
01:16Then we're gonna see a listing here of all of the files that are gonna be included.
01:23Next, we're gonna come over the SWF tab. And notice down here we have this term
01:27called FlashVars and this entire area here is a text field.
01:31So, FlashVars are all of the variables that Flash needs from the HTML file in order to load.
01:37Since we're not gonna be using the HTML file and not loading this in a browser,
01:40we still need to tell that Flash file all that information.
01:43So, this is Acrobat's way of taking the place of the web browser and still
01:47sending all that data to Flash.
01:48Now, to find the FlashVars, we're gonna come back out to our file that Bridge
01:54created and open index.html up in any text editor.
01:58You can use Dreamweaver, you can use Aptana, you can use anything that will open a text file.
02:02Now, this HTML file has everything that a web browser needs to load this Flash file.
02:06So, most text editors have a way to search or find information.
02:10I'm gonna choose Edit > Find.
02:13I'm gonna type "FlashVars," hit Return, and that's gonna bring me down into the
02:19object embed code inside of the HTML file.
02:21So, notice we have all these individual data down here.
02:25So, we have FlashVars and then a comma and then the actual value.
02:29We need to take this entire value and copy it all the way up through the
02:33startImg variable.
02:37Let's copy that to the Clipboard.
02:38We'll switch back to Flash, and we'll simply paste this entire string.
02:44Now, where is says startImg,
02:45we're gonna delete that.
02:48We're gonna delete the Plus sign and the tick mark that's a string literal, and
02:51we're gonna put in -1.
02:54Adobe Bridge has a start image of -1, which means it basically starts from
02:57the very beginning.
03:00For those who are curious as to how we figure that out, if we come back to HTML--
03:04we'll scroll all the way up to the top--
03:08we'll see a function here called QueryVariable.
03:11This variable down here is set into a variable called startImg.
03:16And if we look at the getQuery Variable, we can see the return of that is -1.
03:19So, again, if you're always using Adobe Bridge to create your galleries, you can
03:24always just replace that last piece with a -1.
03:26And now we'll click Okay.
03:30With all these settings in place, Acrobat's gonna recreate a brand-new PDF file
03:34based on that SWF, load all of the resources, load the Flash variables, pass
03:38that information to the embedded Flash player that's inside of Adobe Reader, and
03:42then we're gonna get that exact user experience inside of the PDF.
03:44So, here we are, inside of Acrobat. Our SWF file has been loaded automatically.
03:49The last final touch I'm gonna do is come in here to the File menu, come down to Properties.
03:54We're gonna go to Initial View, and we're gonna set the Magnification to Fit Page.
04:02Let's choose Okay.
04:03Let's hit File > Save.
04:07Let's choose our Desktop.
04:10We'll call this myGallery.pdf.
04:13We'll hit Save, close the file. Then we'll come back out to the desktop and re-open the file.
04:19When the file opens, the initial view kicks in.
04:21In this particular case, I can see it's scaling it 91.2%. That's based on the
04:25screen size of the machine that I am actually running this on.
04:27And then again, I can see all of Interactivity built inside of this PDF file.
04:30And now with your new interactive PDF file, you can e-mail this to folks.
04:35You can even put it up on your Web site and have people download it. And all,
04:38anyone needs to see this interactive experience is Adobe Reader 9 or later.
04:42And with that, that concludes embedding this user experience inside of a PDF
04:46file, and I really appreciate you watching.
Collapse this transcript


Suggested courses to watch next:

Best Practices for Flash-based Banner Ads (3h 59m)
Anastasia McCune



Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 98,572 instructional videos.

start free trial learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 1,894 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.


site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked