Commits

Jason McKesson committed 674a7a8

Adjusted PDF generation, and added some image scaling to make everything work.

  • Participants
  • Parent commits b833f53

Comments (0)

Files changed (7)

File BuildDistro.lua

+--[[
+Must manually generate the following first:
+* Documents/web, generated with Oxygen template
+
+May also generate the following:
+* Documents/tutorials.pdf, generated with Oxygen template
+* Documents/kindleTutorials.pdf, generated with Oxygen template
+]]--
+
+require "lfs"
+
+local destDir, hgChangelist, versionNum = ...
+
+--local test = {...}
+--print(#test, ...)
+assert(#({...}) == 3, "Not enough commandline parameters.");
+
+lfs.mkdir(destDir);
+
+
+-------------------------------------------
+-- Use the other Lua script to copy the HTML to the destination.
+local CopyWebsite = assert(loadfile("CopyWebsite.lua"));
+CopyWebsite(destDir .. "html\\");
+
+
+--------------------------------------------
+-- Copy other files.
+os.execute(string.format([[copy "documents\TutorialsPrint.pdf" "%s\"]], destDir));
+os.execute(string.format([[copy "documents\TutorialsKindle.pdf" "%s\"]], destDir));
+os.execute(string.format([[copy "documents\TutorialsComp.pdf" "%s\"]], destDir));
+
+------------------------------------------
+-- Use Mercurial to get a version in the destination directory.
+local clone = [[hg archive -r "%s" "%s\"]];
+clone = clone:format(hgChangelist, destDir);
+
+print(clone);
+os.execute(clone);
+
+-------------------------------------------
+-- Generate the ancillary README and index.html files.
+
+
+
+
+
+
+
+

File CopyWebsite.lua

 
 --Copy the .css file to all directories in the destination.
 for dir in lfs.dir(outputDir) do
-	if(dir ~= "." and dir ~= "..") then
-		command = string.format([[copy %s%s %s]], outputDir, cssFilename, outputDir .. dir);
+	if(lfs.attributes(outputDir .. dir, "mode") == "directory" and dir ~= "." and dir ~= "..") then
+		command = string.format([[copy %s%s "%s"]], outputDir, cssFilename, outputDir .. dir);
 		print(command);
 		os.execute(command);
 	end

File Documents/Basics/Tutorial 00.xml

             <title>An Image</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="pixels.svg" format="SVG"/>
+                    <imagedata fileref="pixels.svg" format="SVG" contentwidth="4in"/>
                 </imageobject>
             </mediaobject>
         </figure>
                 <title>Normalized Device Coordinate Space</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="NormDeviceCoord.svg" format="SVG"/>
+                        <imagedata fileref="NormDeviceCoord.svg" format="SVG" contentwidth="4in"/>
                     </imageobject>
                 </mediaobject>
             </figure>
                 <title>Scan Converted Triangle</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="TriangleScanConvert.svg" format="SVG"/>
+                        <imagedata fileref="TriangleScanConvert.svg" format="SVG" contentwidth="6in"/>
                     </imageobject>
                 </mediaobject>
             </figure>
                 <title>Shared Edge Scan Conversion</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="SharedEdgeScanConvert.svg" format="SVG"/>
+                        <imagedata fileref="SharedEdgeScanConvert.svg" format="SVG" contentwidth="6in"/>
                     </imageobject>
                 </mediaobject>
             </figure>

File Documents/Basics/Tutorial 02.xml

                 <title>Interpolated Vertex Colors</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="VertexColors.png"/>
+                        <imagedata fileref="VertexColors.png" contentwidth="3in"/>
                     </imageobject>
                 </mediaobject>
             </figure>

File Documents/Positioning/Tutorial 04.xml

                 <title>Triangle Winding Order</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata format="SVG" fileref="WindingOrder.svg"/>
+                        <imagedata format="SVG" fileref="WindingOrder.svg" contentwidth="6in"/>
                     </imageobject>
                 </mediaobject>
                 <caption>
                 <title>Orthographic Prism</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="OrthoPrism.png"/>
+                        <imagedata fileref="OrthoPrism.png" contentwidth="3in"/>
                     </imageobject>
                 </mediaobject>
             </figure>
             <title>2D to 1D Orthographic Projection</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="Ortho2DProjection.svg" format="SVG"/>
+                    <imagedata fileref="Ortho2DProjection.svg" format="SVG" contentwidth="4in"/>
                 </imageobject>
             </mediaobject>
             <caption>
             <title>2D to 1D Perspective Projection</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="Persp2DProjection.svg" format="SVG"/>
+                    <imagedata fileref="Persp2DProjection.svg" format="SVG" contentwidth="4in"/>
                 </imageobject>
             </mediaobject>
         </figure>
             <title>Viewing Frustum</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="ViewFrustum.svg" format="SVG"/>
+                    <imagedata fileref="ViewFrustum.svg" format="SVG" contentwidth="4in"/>
                 </imageobject>
             </mediaobject>
         </figure>
                 <title>2D to 1D Perspective Projection Diagram</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="PerspDiagram.svg" format="SVG"/>
+                        <imagedata fileref="PerspDiagram.svg" format="SVG" contentwidth="4in"/>
                     </imageobject>
                 </mediaobject>
                 <caption>
                 <title>Perspective Computation</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="PerspectiveFunc.svg" width="300" format="SVG"/>
+                        <imagedata fileref="PerspectiveFunc.svg" width="300" format="SVG"
+                            contentwidth="3in"/>
                     </imageobject>
                 </mediaobject>
             </equation>
                 <title>Camera to NDC Transformation in 2D</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="CameraToPerspective.svg" format="SVG"/>
+                        <imagedata fileref="CameraToPerspective.svg" format="SVG" contentwidth="6in"/>
                     </imageobject>
                 </mediaobject>
             </figure>
                 <title>Depth Computation</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="ZValueFunc.svg" width="500" format="SVG"/>
+                        <imagedata fileref="ZValueFunc.svg" width="500" format="SVG" contentwidth="4in"/>
                     </imageobject>
                 </mediaobject>
             </equation>
             <informalfigure>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="CameraToPerspective.svg" format="SVG"/>
+                        <imagedata fileref="CameraToPerspective.svg" format="SVG" contentwidth="6in"/>
                     </imageobject>
                 </mediaobject>
             </informalfigure>
                 <title>Perspective Prism</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="PerspectivePrism.png"/>
+                        <imagedata fileref="PerspectivePrism.png" contentwidth="3in"/>
                     </imageobject>
                 </mediaobject>
             </figure>
             <title>Camera to Clip Equations</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="CameraToClipPartial.svg" width="600" format="SVG"/>
+                    <imagedata fileref="CameraToClipPartial.svg" width="600" format="SVG"
+                        contentwidth="6in"/>
                 </imageobject>
             </mediaobject>
         </equation>
             <title>Camera to Clip Expanded Equations</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="CameraToClipNearMatrix.svg" width="800" format="SVG"/>
+                    <imagedata fileref="CameraToClipNearMatrix.svg" width="800" format="SVG"
+                        contentwidth="6in"/>
                 </imageobject>
             </mediaobject>
         </equation>
             <title>Camera to Clip Matrix Transformation</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata format="SVG" fileref="CameraToClipMatrix.svg" width="600"/>
+                    <imagedata format="SVG" fileref="CameraToClipMatrix.svg" width="600"
+                        contentwidth="6in"/>
                 </imageobject>
             </mediaobject>
         </equation>
             <title>Perspective Matrix</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="MatrixPerspective.png"/>
+                    <imagedata fileref="MatrixPerspective.png" contentwidth="3in"/>
                 </imageobject>
             </mediaobject>
         </figure>
             <title>Bad Aspect Ratio</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="MatrixPerspectiveSkew.png"/>
+                    <imagedata fileref="MatrixPerspectiveSkew.png" contentwidth="5in"/>
                 </imageobject>
             </mediaobject>
         </figure>
             <title>Widescreen Aspect Ratio Frustum</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="RectViewFrustum.svg" format="SVG"/>
+                    <imagedata fileref="RectViewFrustum.svg" format="SVG" contentwidth="5in"/>
                 </imageobject>
             </mediaobject>
         </figure>

File Documents/Positioning/Tutorial 05.xml

                 <title>Overlapping Objects</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="Overlap%20No%20Depth.png"/>
+                        <imagedata fileref="Overlap%20No%20Depth.png" contentwidth="3in"/>
                     </imageobject>
                 </mediaobject>
             </figure>
         <informalfigure>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="Overlap%20No%20Depth.png"/>
+                    <imagedata fileref="Overlap%20No%20Depth.png" contentwidth="3in"/>
                 </imageobject>
             </mediaobject>
         </informalfigure>
                 <title>Depth Buffering</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="Depth%20Buffering.png"/>
+                        <imagedata fileref="Depth%20Buffering.png" contentwidth="3in"/>
                     </imageobject>
                 </mediaobject>
             </figure>
                 <title>Mild Overlap</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="Depth%20Buffering%20Mild%20Overlap.png"/>
+                        <imagedata fileref="Depth%20Buffering%20Mild%20Overlap.png" contentwidth="3in"/>
                     </imageobject>
                 </mediaobject>
             </figure>
                 <title>Major Overlap</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="Depth%20Buffering%20Major%20Overlap.png"/>
+                        <imagedata fileref="Depth%20Buffering%20Major%20Overlap.png" contentwidth="3in"/>
                     </imageobject>
                 </mediaobject>
             </figure>
                 <title>2D Camera to NDC Space</title>
                 <mediaobject>
                     <imageobject>
-                        <imagedata fileref="CameraToPerspective.svg"/>
+                        <imagedata fileref="CameraToPerspective.svg" format="SVG" contentwidth="6in"/>
                     </imageobject>
                 </mediaobject>
             </figure>
             <title>Perspective Computation</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="PerspectiveFunc.svg" width="300" format="SVG"/>
+                    <imagedata fileref="PerspectiveFunc.svg" format="SVG" contentwidth="3in"/>
                 </imageobject>
             </mediaobject>
         </equation>
             <title>Vertex Clipping</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="Vertex%20Clipping.png"/>
+                    <imagedata fileref="Vertex%20Clipping.png" contentwidth="4in"/>
                 </imageobject>
             </mediaobject>
         </figure>
         <informalfigure>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="Vertex%20Clipping.png"/>
+                    <imagedata fileref="Vertex%20Clipping.png" contentwidth="4in"/>
                 </imageobject>
             </mediaobject>
         </informalfigure>
             <title>Depth Clamping</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="Depth%20Clamping.png"/>
+                    <imagedata fileref="Depth%20Clamping.png" contentwidth="4in"/>
                 </imageobject>
             </mediaobject>
         </figure>
             <title>Depth Clamp With Overlap</title>
             <mediaobject>
                 <imageobject>
-                    <imagedata fileref="Double%20Depth%20Clamping.png"/>
+                    <imagedata fileref="Double%20Depth%20Clamping.png" contentwidth="4in"/>
                 </imageobject>
             </mediaobject>
         </figure>

File Documents/Tutorial Documents.xpr

                                     <String xml:space="preserve">XSL</String>
                                 </field>
                                 <field name="url">
+                                    <String xml:space="preserve">Positioning/Tutorial%2004.xml</String>
+                                </field>
+                            </scenarioAssociation>
+                            <scenarioAssociation>
+                                <field name="name">
+                                    <String xml:space="preserve">Tutorial to HTML</String>
+                                </field>
+                                <field name="type">
+                                    <String xml:space="preserve">XSL</String>
+                                </field>
+                                <field name="url">
                                     <String xml:space="preserve">Basics/Tutorial%2000.xml</String>
                                 </field>
                             </scenarioAssociation>
                                     <String xml:space="preserve">Tutorials.html</String>
                                 </field>
                             </scenarioAssociation>
-                            <scenarioAssociation>
-                                <field name="name">
-                                    <String xml:space="preserve">Tutorial to HTML</String>
-                                </field>
-                                <field name="type">
-                                    <String xml:space="preserve">XSL</String>
-                                </field>
-                                <field name="url">
-                                    <String xml:space="preserve">Positioning/Tutorial%2004.xml</String>
-                                </field>
-                            </scenarioAssociation>
                         </scenarioAssociation-array>
                     </entry>
                     <entry>
                                     <null/>
                                 </field>
                                 <field name="name">
+                                    <String xml:space="preserve">Tutorial to Computer PDF</String>
+                                </field>
+                                <field name="baseURL">
+                                    <String xml:space="preserve"></String>
+                                </field>
+                                <field name="footerURL">
+                                    <String xml:space="preserve"></String>
+                                </field>
+                                <field name="fOPMethod">
+                                    <String xml:space="preserve">pdf</String>
+                                </field>
+                                <field name="fOProcessorName">
+                                    <String xml:space="preserve">Apache FOP</String>
+                                </field>
+                                <field name="headerURL">
+                                    <String xml:space="preserve"></String>
+                                </field>
+                                <field name="inputXSLURL">
+                                    <String xml:space="preserve">${frameworks}/docbook/xsl/fo/docbook.xsl</String>
+                                </field>
+                                <field name="inputXMLURL">
+                                    <String xml:space="preserve">${currentFileURL}</String>
+                                </field>
+                                <field name="defaultScenario">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="isFOPPerforming">
+                                    <Boolean xml:space="preserve">true</Boolean>
+                                </field>
+                                <field name="type">
+                                    <String xml:space="preserve">XSL</String>
+                                </field>
+                                <field name="saveAs">
+                                    <Boolean xml:space="preserve">true</Boolean>
+                                </field>
+                                <field name="openInBrowser">
+                                    <Boolean xml:space="preserve">true</Boolean>
+                                </field>
+                                <field name="outputFile">
+                                    <File xml:space="preserve">${cfd}/TutorialsComp.pdf</File>
+                                </field>
+                                <field name="openOtherLocationInBrowser">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="locationToOpenInBrowserURL">
+                                    <null/>
+                                </field>
+                                <field name="openInEditor">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="showInHTMLPane">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="showInXMLPane">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="showInSVGPane">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="showInResultSetPane">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="useXSLTInput">
+                                    <Boolean xml:space="preserve">true</Boolean>
+                                </field>
+                                <field name="xsltParams">
+                                    <list>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">body.start.indent</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">2pc</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">draft.mode</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">no</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">fop1.extensions</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">1</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">page.margin.bottom</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">0.25in</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">page.margin.inner</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">0.25in</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">page.margin.outer</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">0.25in</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">page.margin.top</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">0.25in</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">paper.type</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">USLetter</String>
+                                    </field>
+                                    </transformationParameter>
+                                    </list>
+                                </field>
+                                <field name="cascadingStylesheets">
+                                    <String-array/>
+                                </field>
+                                <field name="xslTransformer">
+                                    <String xml:space="preserve">Saxon6.5.5</String>
+                                </field>
+                                <field name="extensionURLs">
+                                    <String-array/>
+                                </field>
+                            </scenario>
+                            <scenario>
+                                <field name="advancedOptionsMap">
+                                    <null/>
+                                </field>
+                                <field name="name">
                                     <String xml:space="preserve">Tutorial to HTML</String>
                                 </field>
                                 <field name="baseURL">
                                     <Boolean xml:space="preserve">true</Boolean>
                                 </field>
                                 <field name="outputFile">
-                                    <File xml:space="preserve">${cfd}/${cfn}.pdf</File>
+                                    <File xml:space="preserve">${cfd}/TutorialsKindle.pdf</File>
                                 </field>
                                 <field name="openOtherLocationInBrowser">
                                     <Boolean xml:space="preserve">false</Boolean>
                                     <field name="paramDescription">
                                     <paramDescriptor>
                                     <field name="localName">
+                                    <String xml:space="preserve">fop1.extensions</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">1</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
                                     <String xml:space="preserve">page.height</String>
                                     </field>
                                     <field name="prefix">
                                     </paramDescriptor>
                                     </field>
                                     <field name="value">
-                                    <String xml:space="preserve">../chunked.css</String>
+                                    <String xml:space="preserve">../chunked.css ../../chunked.css</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">ignore.image.scaling</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">1</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">keep.relative.image.uris</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">0</String>
+                                    </field>
+                                    </transformationParameter>
+                                    </list>
+                                </field>
+                                <field name="cascadingStylesheets">
+                                    <String-array/>
+                                </field>
+                                <field name="xslTransformer">
+                                    <String xml:space="preserve">Saxon6.5.5</String>
+                                </field>
+                                <field name="extensionURLs">
+                                    <String-array/>
+                                </field>
+                            </scenario>
+                            <scenario>
+                                <field name="advancedOptionsMap">
+                                    <null/>
+                                </field>
+                                <field name="name">
+                                    <String xml:space="preserve">Tutorial to Printable PDF</String>
+                                </field>
+                                <field name="baseURL">
+                                    <String xml:space="preserve"></String>
+                                </field>
+                                <field name="footerURL">
+                                    <String xml:space="preserve"></String>
+                                </field>
+                                <field name="fOPMethod">
+                                    <String xml:space="preserve">pdf</String>
+                                </field>
+                                <field name="fOProcessorName">
+                                    <String xml:space="preserve">Apache FOP</String>
+                                </field>
+                                <field name="headerURL">
+                                    <String xml:space="preserve"></String>
+                                </field>
+                                <field name="inputXSLURL">
+                                    <String xml:space="preserve">${frameworks}/docbook/xsl/fo/docbook.xsl</String>
+                                </field>
+                                <field name="inputXMLURL">
+                                    <String xml:space="preserve">${currentFileURL}</String>
+                                </field>
+                                <field name="defaultScenario">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="isFOPPerforming">
+                                    <Boolean xml:space="preserve">true</Boolean>
+                                </field>
+                                <field name="type">
+                                    <String xml:space="preserve">XSL</String>
+                                </field>
+                                <field name="saveAs">
+                                    <Boolean xml:space="preserve">true</Boolean>
+                                </field>
+                                <field name="openInBrowser">
+                                    <Boolean xml:space="preserve">true</Boolean>
+                                </field>
+                                <field name="outputFile">
+                                    <File xml:space="preserve">${cfd}/TutorialsPrint.pdf</File>
+                                </field>
+                                <field name="openOtherLocationInBrowser">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="locationToOpenInBrowserURL">
+                                    <null/>
+                                </field>
+                                <field name="openInEditor">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="showInHTMLPane">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="showInXMLPane">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="showInSVGPane">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="showInResultSetPane">
+                                    <Boolean xml:space="preserve">false</Boolean>
+                                </field>
+                                <field name="useXSLTInput">
+                                    <Boolean xml:space="preserve">true</Boolean>
+                                </field>
+                                <field name="xsltParams">
+                                    <list>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">body.start.indent</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">&lt;xsl:choose&gt;   &lt;xsl:when test="$fop.extensions != 0"&gt;0pt&lt;/xsl:when&gt;   &lt;xsl:when test="$passivetex.extensions != 0"&gt;0pt&lt;/xsl:when&gt;   &lt;xsl:otherwise&gt;2pc&lt;/xsl:otherwise&gt; &lt;/xsl:choose&gt;</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">draft.mode</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">no</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">fop1.extensions</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">1</String>
+                                    </field>
+                                    </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">paper.type</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">USLetter</String>
                                     </field>
                                     </transformationParameter>
                                     </list>
                                     <String xml:space="preserve">chunked.css</String>
                                     </field>
                                     </transformationParameter>
+                                    <transformationParameter>
+                                    <field name="paramDescription">
+                                    <paramDescriptor>
+                                    <field name="localName">
+                                    <String xml:space="preserve">ignore.image.scaling</String>
+                                    </field>
+                                    <field name="prefix">
+                                    <null/>
+                                    </field>
+                                    <field name="namespace">
+                                    <null/>
+                                    </field>
+                                    </paramDescriptor>
+                                    </field>
+                                    <field name="value">
+                                    <String xml:space="preserve">1</String>
+                                    </field>
+                                    </transformationParameter>
                                     </list>
                                 </field>
                                 <field name="cascadingStylesheets">