" /> Tim Cole's InDesign BackChannel: November 2008 Archives

« October 2008 | Main | December 2008 »

November 17, 2008

InDesign 2 Flash: Part II

In this post I begin a more detailed discussion of the technical background of InDesign's SWF and XFL export processes. This series will be based largely on a white paper researched and written by Adobe's Matt Laun.

Both of InDesign's Flash export formats are designed to represent InDesign content as accurately as possible, with emphasis placed on preserving the visual appearance of the InDesign document.

The imaging model in Flash is different than that of InDesign. InDesign uses the Adobe Imaging model (AIM) that's the foundation for both PostScript and PDF, while Flash does not. Because of this, there are challenges and choices to be made when converting a layout from one model (AIM) to another (Flash). Whenever choices need to be made, the InDesign to Flash process will typically choose the option that produces the best visual fidelity, even if it means that something is lost in the process. For example, text may in some cases (like ligatures) be converted to outlines or rasterized, and dashed lines--which have no native Flash representation--may be converted to compound paths that are then filled.

One important difference between the two exportable formats is that SWF is a final form for delivery (similar is some respects to PDF) that is not intended for further editing in a downstream tool. XFL is, on the other hand, is, due to the fact it's an XML format, designed to be editable format. This has two main consequences. First, it means that all interactivity for SWF must be added in InDesign, whereas with XFL it will likely be added within Flash. Second, it is much less important to attempt to preserve the original structure of the document for SWF. Because of this, InDesign treats the two types of exports differently.

Examples: Unlike a SWF export, InDesign CS4 does not include interactive content (like buttons and hyperlinks) when exporting to XFL. The assumption behind this behavior is that users will most likely want to add interactivity like this in the Flash environment given both the vast range of powerful features available there.

Second, InDesign CS4 flattens all transparency when exporting to SWF. The assumption here is that the SWF content will not have later edits that would benefit from the preservation of live transparency. As with PDF 1.3, PostScript/print, and SVG exports, flattening only occurs on spreads that contain transparency, and makes use of the existing Flattener Presets to control the flattening options.

Imaging Models: Flash vs. InDesign

Similarities: Flash's imaging model is superficially similar to the Adobe Imaging Model (AIM).

  • Both are vector-based and support the notion of paths that are filled/stroked with various kinds of painted pixels.
  • Both support affine transformations (transformations which--like scaling, translation, and rotation--preserve the "parallel-ness" of an object's lines). Both support raster images, including alpha channelsl.
  • Both support vector text. Both support simple opacity and the notion of blend modes that dictate how content is composited with any other the content it overlaps.

The takeaway here is that most of the AIM representation of objects will largely transfer to Flash.

Differences: The complete list of differences is too large to include here, but some of the more relevant differences for this discussion are:

  • Flash uses device RGB color only. No other color spaces are supported and all color is un calibrated.
  • Flash uses quadratic curves, whereas AIM uses cubics. This requires that an authoring tool approximate its native cubic curves with quadratic curves.
  • Flash paths implicitly use a non-zero winding rule. AIM paths may use either non-zero or even-odd winding.
  • Flash supports a limited set of paint types: solid color, gradients, and raster paint are supported; more complex paints, such as general smooth shades, and patterns, are not.
  • Flash gradients allow a smaller number of stops than their AIM equivalents.
  • Flash supports limited clipping and masking. Flash allows objects in its display list to be clipped and/or masked by other objects in the display list, but this is a simple one-to-one relationship and limited compared to the graphic state based clipping and masking supported by AIM.
  • Flash does not natively support dashed or dotted lines. These simulated in Flash by drawing each dash as an individual line segment.
  • Flash supports a limited subset of the blending modes available in AIM.
  • Flash does not support transparency groups.

Next time: how specific types of AIM objects are translated into Flash CS4.

November 16, 2008

InDesign 2 Flash: Part I

InDesign CS4 delivers the ability to move your InDesign layouts to the web and beyond via SWF and XFL export features. The former creates a web-ready .swf file that's intended to be the final form for delivery, and not editable. XFL, on the other hand, is a new, XML Flash native file format. The purpose of this export path is to enable you to take your InDesign layouts and convert them into a native Flash CS4 documents that can then be opened and enhanced with all the powerful interactive capabilities of Flash CS4.

This series of blog posts is aimed at giving you background on the technical issues and best practices relevant to exporting as SWF or XFL.

The focus of this first blog post will be positioning the two different export methods. What are they for? InDesign's SWF export is aimed at facilitating the creation of interactive presentations, client pitches, and personal portfolios. It's aimed at traditional print designers who wish to use InDesign as a bridge into the world of basic interactivity, whether it's being used for a customer facing presentation, an internal document review process where a single spread or an entire book could be viewed in a web browser, or as a way to help prototype a more sophisticated interactive experience that will ultimately be produced using Adobe Flash.

InDesign Page Transitions PanelInDesign Button Panel

InDesign CS4 has a remodeled Buttons panel new page transitions (including the definitive "page curl"), and hyperlinks. These interactive features can be built into an exported SWF file, and used to advantage in the use cases enumerated above. What Adobe is not trying to do with InDesign's SWF export, is try to make anyone believe that it's designed to compete with Adobe Flash. That would be rather silly. Instead, our first cut at a SWF export is designed to introduce traditional print designers to the world of interactivity in a pretty painless and accessible way. The SWF export dialog contains straightforward options for presenting the InDesign generated content and interactivity in a SWF file.

InDesign SWF Export

InDesign's XFL export, on the other hand, is designed for professional workflows in which InDesign is used as the basic layout engine, and then Flash is used to add high-end interactive features. SWF is a black box that cannot be opened and edited. XFL, on the other hand, is a native Flash file format than enables a Flash designer/developer to leverage all the power of Flash with a design that comes from InDesign. InDesign has a rich set of tools for layout and publishing: styles, text wrap, drop caps, etc.--all things that layout designers want to leverage whether they're designing for print or for an interactive experience.

In the past InDesign users have had to export layouts as JPEG files to move them over to Flash, or also add copy and paste in and out of Illustrator as part of that workflow. The new XFL export feature eliminates those limiting and time-consuming steps, and instead offers a direct way to move designed from InDesign into the powerful interactive world of Flash. Most text can be converted directly to editable Flash native text, rather than ingested as uneditable and unsearchable "piles of pixels", as InDesign Product Manager Michael Ninness puts it. The goal of XFL is deliver InDesign content as faithfully as possible, while preserving editability in Flash.

InDesign XFL Export

In the next installment of this series, we'll start to look into the technical details and background as a necessary foundation for establishing and understanding best practices for taking InDesign documents into SWF and XFL formats.

Singapore

We finished our Asian CS4 launch tour in Singapore. Thanks to everyone who turned out. Paul, Karl and I had the privilege of showing much of what's new in the CS4 Design, Web, and Production suites.

Singapore

We saw many old friends in Singapore and made some new ones. It was great to see the local Adobe User Group represented, as well as a lot of other people I met for the first time.

Special thanks to the event crew we had in Singapore and KL. You guys were great to work with, and everything went off without problems (either that or you hid them very well ;^). Your work was much appreciated.

The Singapore event was unique in that it was the only event that involved costume changes. In Paul's case it was onstage. Paul was given a special gift by event organizer Mongchee, and it added a touch of class and theatricality to Paul's web session.

I expect that more photos of the event will emerge that will prove embarrassing to all of us.

In Singapore I was able to show something new (and hidden) that got the Tamil speakers in the audience a little excited.

Finally, I wanted to say a special "thank you" to the person who gave me a very thoughtful gift. At first I thought it was something arranged by the local Singapore team, but later I learned that this was not the case, and that it was from someone who attended the event. I tried to locate this person later in the day to express my appreciation, but it appeared that they had already left the building. So, if the person in question is reading this blog, please accept my apology for not thanking you adequately at the time, and don't hesitate to identify yourself so that I can make up for my mistake.

My final event for this trip to Asia will be a presentation at the Fuji/Xerox Platinum Partner event in Macao on the 24th. Meanwhile, Michael Stoddart and Company will be doing CS4 launch events in Beijing and Seoul.

November 11, 2008

Kuala Lumpur

We had a full house in KL, and a very responsive crowd. It's a pleasure to be able to present to groups like we had there.

The stage in KL was fun, because we were able to come and go through doors behind the presenter's table. This enabled Karl and I to assist Paul whenever we felt that interest in his demo was flagging. As everyone there in attendance will attest, Paul is rather shy and a bit of a wallflower.

Several people in KL walked away with fabulous lucky draw prizes, including one very lucky individual who won a Master Collection.

Did I mention we had a great time with our friends in KL? We truly did, and we're very appreciative of the work that went into organizing the event. Best KL audience ever for me. I'm looking forward to the next time.

After the event we made our way over to Alor Street in KL for some fine dining at a local street eatery.

November 08, 2008

CS4 Launch Tour: Mumbai, Hong Kong, Taipei

I (and my colleagues Paul Burnett and Karl Soule) would like to thank the Adobe teams in Mumbai, Hong Kong, and Taipei, as well as all of the great people that turned out for our CS4 launch events. The events were a blast, and it was a pleasure seeing old friends and making new ones. A big, heartfelt "thank you!" to all of you who turned out to share the day with us in all three cities.

Mumbai

We had an opening act in Mumbai.

The lamp is lit.

After lighting the lamp, the CS4 demos began.

Brave souls in the front row.

The Mumbai event was unique in that I was able to demo something special for them that I will write about in a later post.

Hong Kong

We had a big hall in Hong Kong. This is how it looked before we opened the doors.

In Hong Kong and Taipei, we had our first encounters with the pong bong stick (aka, bang bang stick, people's tube of joyful acclamation, etc.), a curious, inflatable plastic tube used to express affirmation and enthusiasm. There was much bong bong as Paul, Karl, and I showed off the new CS4 products.

Taipei

Taipei, you rock! We had to split the crowd into two room in order to accommodate everybody. More bong bong, and a lot of fun to get to present to our good friends in Taipei. (See Jimmy Hsia's blog post for more [and better] photos.

Just part of the crowd in Taipei...the upstairs crowd. There was another enormous collection of devoted Adobe users in the downstairs room.

Some of our front row friends in Taipei.

And, of course, when one is in Taipei, one must drop in to the Wind restaurant there, and order at least one bowl of fly heads. And, for the record, there are no actual fly heads in a bowl of fly heads...or, at least there shouldn't be.

For a little more information on fly heads--as well as an action photo of the dish--go to the Foodite site and scroll down to the entry dated Wednesday, March 22nd, 2006. I should have taken my own photo, but in the heat of the moment I was far too consumed with actually eating my fly heads to think about posing them and recording the moment with my iPhone.

Next up for us, Kuala Lumpur and Singapore!