I'd try eliminating the variables one at a time.  First, take your
custom ACL out by just doing a "File", "Publish", "PDF File" and
specifying your XSL-FO style sheet.  You may not get the right overall
result without your custom code, but if it exercises the landscape
page code in your style sheet without the upside-down page problem,
you'll know where to focus your efforts next.
If you still get upside-down pages, try the same thing after a "set
usedistiller=off" so that Direct PDF is used, instead.
If that fails, too... I noticed you skipped some code between the
fo:page-sequence and fo:flow starting tags.  Are you sure there isn't
anything fun and exciting going on there? 🙂
-Brandon 🙂
On Mon, Dec 12, 2011 at 10:13 AM, Price, Sarah CTR
<sarah.r.price@uscg.mil> wrote:
> We are using Distiller. I've tried this in Distiller version 9.4 and 7.1, same result in both. The version it worked in was Arbortext 5.3 M090. I use an ACL to call the publish function and correct stylesheet.
>
> Here is the publish part of the ACL. There was some package changes between the versions could it be something with the _pubpdf::run_distiller???:
>
> if ($allData)
>     {
>      set printstylesheet="AllData-fo.xsl";
>      $psname  = "c:\\_epictemp\\" . $model . "_alldata.ps"
>      $pdfname = $outdir . $model . "_alldata.pdf"
>      print composed wait printer="$useprinter" file="$psname";
>      _pubpdf::run_distiller("$psname","$pdfname");
>      message "Published All Data Report"
>      $correct='1';
>      remove_file "$psname";
>     }
>
> Here is where it calls the Pagemaster:
>
> <xsl:template match="index">
>    <fo:page-sequence master-reference="PageMaster" initial-page-number="1">
> ...
> <fo:flow flow-name="xsl-region-body" margin-top="1.00in">
>    <fo:block-container>
>        <fo:table border-style="solid" border-color="black" border-width="1pt">
>            <fo:table-column column-width="0.50in"/">
>            <fo:table-column column-width="0.50in"/">
>            <fo:table-column column-width="0.75in"/">
>            <fo:table-column column-width="0.70in"/">
>            <fo:table-column column-width="2.25in"/">
>            <fo:table-column column-width="0.80in"/">
>            <fo:table-column column-width="0.75in"/">
>            <fo:table-column column-width="1.00in"/">
>            <fo:table-column column-width="1.00in"/">
>            <fo:table-column column-width="1.75in"/">
>            <fo:table-body>
>            <xsl:apply-templates select="./item">
>                <xsl:sort select="mpcnum"/">
>            </xsl:apply-templates>
>            </fo:table-body>
>        </fo:table>
>    </fo:block-container>
>