span8
span4
span8
span4
Title slides and slides with text are common in PowerPoint presentations. By using the AttributeCreator transformer or just the PowerPointStyler transformer, these types of slides can be put together in a matter of minutes. The following tutorial is part one of six focusing on creating an informative PowerPoint presentation about street food vendors in Vancouver, British Columbia.
PowerPointWriter-1-TitleBody-Complete. fmwt
1. Start FME Workbench
First, we are going to create the Title slide for the PowerPoint. Start FME Workbench and open up a new workspace. Add aCreatortransformer to the canvas, we will use the Creator to trigger the translation. Then add an一个ttributeCreatortransformer and connect it.
In the AttributeCreator, create a new attribute called Title and give it the value of Food Vendors. Next, create another attribute called Subtitle and give it the value of Types & Locations in Vancouver, BC.
Use the AttributeCreator to create Title and Subtitle attributes
2. Style the PowerPoint
Before we can write to PowerPoint we need to use thePowerPointStylertransformer to create our slides. Add a PowerPointStyler to the canvas and connect it to the AttributeCreator. In the parameters change the Slide Type to Title, then set the Title Slide Parameters to the attribute Title for Title and the attribute Subtitle for Subtitle. Since this is the title slide, set the Slide Order to 1.
PowerPointSyler parameters for the title slide
3. Write to PowerPoint
Let’s add a微软PowerPoint的作家to our workspace to test the results of the PowerPointStyler. Set the Dataset to a location you want to save your PowerPoint to and call it FoodVendors.pptx
In the Parameters set the Template Microsoft PowerPoint FIle to TemplatePowerPoint.pptx. This is a premade template PowerPoint where the Master Slide has been stylized with fonts and a background image. For information how to create your own please visit theMicrosoftwebsite.
Finally, ensure the Feature Type Definition is set to Automatic and then click OK to add the Writer. Set the Feature Type Name to FoodVendors.
4. Run the Translation
Connect the Writer to the AttributeCreator and then run the translation. Open up the folder containing the output and then open up the FoodVendors.pptx. As you can see the PowerPoint is stylized from the template we used.
Title slide viewed in Microsoft PowerPoint
Note:If when you open the completed PowerPoint and it is in Master View, click the "Close Master View" button on the ribbon.
5. Create Introduction Slide
Next, we will create a slide stating what a food vendor is. To do this we will use another PowerPointStyler transformer. Previously we used the AttributeCreator to create the content and then set it in the PowerPointSyler, this is a good method if you want to re-use the content, like the Title. This slide we are only going to use the content once, so we will create it directly in the PowerPointStyler. Add a PowerPointStyler to the canvas and connect it to the Creator, then open up the parameters.
Change the Slide Type to Title with Body, then for Title type: What is a Food Vendor?
Then click the ellipsis next to Body to open up a text editor. Paste the following blurb into the Text Editor.
一个street food vendor sells ready to eat food or drinks that are meant to be consumed immediately. They are often found in busy city centers or at public events. A vendor can be a booth, cart or truck.
Finally, set the Slide Order to 2.
PowerPointStyler parameters for the Title With Body Slide
6. Create Agenda Slide
We are going to create one more slide in this tutorial, a bulleted list slide for our agenda.
一个dd a third PowerPointStyler transformer to the canvas and connect it to the Creator. In the parameters set Slide Type to Title with Body, then for Title type: Agenda. Open the Text Editor for Body. In the text editor, paste the following:
What is a Food Vendor? Types of Food Vendors Food Vendor Statistics Food Vendor Locations
Text Editor in the PowerPointStyler_3 parameters. Note: You can add the Carriage Returns if you like but it is not necessary.
Set the Slide Order to 3.
7. Connect transformers and run.
Ensure that all 3 PowerPointStylers are connected to the PowerPointWriter and then run the translation. Save your workspace and continue on to thenexttutorial, where we will be adding images to the slides.
Completed workspace
Opening up the FoodVendorsPresentation.pptx, you will see 3 slides.
Three slides created, viewed in Microsoft PowerPoint
© 2019 Safe Software Inc |Legal