cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Need last page to be verso

steve.thompson4
1-Newbie

Need last page to be verso

What are we missing?

I have to ask myself that. There must be a way to trigger that 'blank' page in the pageset when the last page with content in a document instance is a recto.

Currently, when the last content at the end of the last chapter falls on a recto page, that's the last page produced by PE. We need the 'blank' page in the pageset to fire, so that the verso of that last page will contain "This page intentionally blank." and the page number will appear in the LEP.

Our current solution is to have a 'dummy' pageset that's called with a usetext (e.g. in the chapter e-i-c, occurrence = last), placement = after, so that the resulting change in pagesets will trigger that 'blank' verso. Then we remove the page generated by the 'dummy' from the resulting PDF.

Inelegant to say the least. We must be missing something blindingly obvious.

Help, Anyone?
Steve Thompson
TAD Technical
Boeing-IDS Technical Publications
(316)977-0515
MC K83-21
"It's only broke if someone notices it." - Tresa Spencer

> NOTICE: This communication may contain proprietary or other confidential information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this e-mail in error, and delete the copy you received. Any and all views expressed are the current understanding of the sender and should not be interpreted as an expression of official Boeing Company policy or position.
>
Les renseignements contenus dans ce message peuvent être confidentiels. Si vous n'êtes pas le destinataire visé ou une personne autorisée à lui remettre ce courriel, vous êtes par la présente avisé qu'il est strictement interdit d'utiliser, de copier ou de distribuer ce courriel, de dévoiler la teneur de ce message ou de prendre quelque mesure fondée sur l'information contenue. Vous êtes donc prié d'aviser immédiatement l'expéditeur de cette erreur et de détruire ce message sans garder de copie.


10 REPLIES 10

A pageset tag with a blankpg attribute such as: <pageset id="doc.page"&lt;br"/>blankpg="1"> is the FOSI default for the <pageset> element, so if you
see blankpg="0", that means your pageset is not set to use a blank
backing page.
If you see nothing, that is the same as blankpg="1", since default
attribute values don't generally show up in Arbortext Editor, unless
they have been changed to something else and then manually set back to
the default value.

If you use recto, verso and blank pages in your pageset, start with a
recto page and have blankpg="1" (the default), you should get the blank
page model at the end if the last page with real content is recto.

I forgot to mention also, in addition to the blankpg="1", you need to
make sure that every chapter begins with a recto page.
The formatter doesn't know that the last chapter is the last chapter.
Therefore, if a chapter wants to end with a recto, it will assume
another recto page is coming and will emit a verso page (or blank page
if blankpg="1") to maintain the proper right-left-right sequence.

That's exactly why we posted this. What you describe in the FOSI is what
we have. The pagesets typically have 2 recto's, a verso, and a blank. As
you say, blankpg defaults to "1", so we don't usually have that
specifically declared. Maybe we need to.

In any case, in all of our doctypes, if the last content is on a recto,
there won't be any page after it in the PDF, "blank" or otherwise,
unless we call the "dummy" pageset. Calling the "dummy" pageset results
in the generation of the "blank" page and then the single recto in the
"dummy" pageset.

Just ran a test on the doctype I'm currently working. Explicitly set
'blankpg="1" on the main pageset. No call to the "dummy.page" pageset.
The last page in both print preview and compose to PDF is the recto
displaying the last diagram image. No following page at all. For every
other diagram, the image displays on its page and then there's an empty
"blank" page.

We originally expected the behavior you describe, but that doesn't
happen. Ever.
Is it possible there's a 'setting' somewhere in AE/PE, or higher level
in the FOSI's, that affects this? I haven't found anything in the help,
but...

Any help still appreciated,
Steve Thompson
(316)977-0515
When the only tool you have is a hammer,
Everything looks like a hard disk...

I don't know anything about E3 or PE or whatever it's called now, but I
wonder if its something peculiar to that? If you have any Print
Composer licenses laying around, you might try making PDF of your book
using that and the Acrobat Distiller/Adobe PDF printer driver. Also, I
assume it looks the same in Print Preview, but it would be interesting
just to check and see what the DVI file, or whatever PE makes for Print
Preview, looks like before it gets to the making-PDF stage.

Oops, sorry. I read that you already looked at Print
Preview...nevermind.

Steve,

Although I get this (not exactly helpful) error message: "[A30043] ERROR: Cannot get the value of the variable ". Either the name was not found or variable is a Cross Reference," the following worked for me.

1. Define an ACL function such as the following, where folioct is the page number counter in the FOSI.

function oddorevenpage(window,oid)
{
$n = fosivar_value(window,folioct,oid);
if (($n % 2) == 1) {$oe = "odd"};
if (($n % 2) == 0) {$oe = "even"};
return $oe;
}

2. In the eic for the top tag, add a usetext placement=after source=<check-odd-even.psu>,</check-odd-even.psu>.

3. In the eic for check-odd-even.psu, add an attribute rule with a specval to call the ACL function with system-func. If the page counter is odd, a new page is forced with an invisible 1 point of blank space.

<att>
<specval attname="oddorevenpage" attloc="system-func" attval="odd">
<charsubset>
<usetext source="1pt" placemnt="after">
<subchars>
<textbrk startpg="next"></subchars>
</usetext>
</charsubset>
</att>

Hope this helps!

Good luck!
Suzanne

Suzanne Napoleon
www.FOSIexpert.com

Thought this thread might be useful for the current conversation re: blank
final page in document.


On Sun, Mar 23, 2008 at 4:43 PM, Suzanne Napoleon <
SuzanneNapoleon@fosiexpert.com> wrote:

> Steve,
>
> Although I get this (not exactly helpful) error message: "[A30043] ERROR:
> Cannot get the value of the variable ". Either the name was not found or
> variable is a Cross Reference," the following worked for me.
>
> 1. Define an ACL function such as the following, where folioct is the page
> number counter in the FOSI.
>
> function oddorevenpage(window,oid)
> {
> $n = fosivar_value(window,folioct,oid);
> if (($n % 2) == 1) {$oe = "odd"};
> if (($n % 2) == 0) {$oe = "even"};
> return $oe;
> }
>
> 2. In the eic for the top tag, add a usetext placement=after
> source=<check-odd-even.psu>,</check-odd-even.psu>.
>
> 3. In the eic for check-odd-even.psu, add an attribute rule with a specval
> to call the ACL function with system-func. If the page counter is odd, a
> new page is forced with an invisible 1 point of blank space.
>
> <att>
> <specval attname="oddorevenpage" attloc="system-func" attval="odd">
> <charsubset>
> <usetext source="1pt" placemnt="after">
> <subchars>
> <textbrk startpg="next"></subchars>
> </usetext>
> </charsubset>
> </att>
>
> Hope this helps!
>
> Good luck!
> Suzanne
>
> Suzanne Napoleon
> www.FOSIexpert.com
>

Paul,


Thanks for the info. However, the suggestion from Suzanne only seems to work if a have a savetext with a "literal" conrule (i.e. <savetext textid="mytext.str" conrule="\2">. If I try to pass a stringdecl, the fosivar_value function doesn't return a value.

In Reply to Paul Nagai:


Thought this thread might be useful for the current conversation re: blank
final page in document.


On Sun, Mar 23, 2008 at 4:43 PM, Suzanne Napoleon <
@SuzanneNapoleon@fosiexpert.com> wrote:

> Steve,
>
> Although I get this (not exactly helpful) error message: "[A30043] ERROR:
> Cannot get the value of the variable ". Either the name was not found or
> variable is a Cross Reference," the following worked for me.
>
> 1. Define an ACL function such as the following, where folioct is the page
> number counter in the FOSI.
>
> function oddorevenpage(window,oid)
> {
> $n = fosivar_value(window,folioct,oid);
> if (($n % 2) == 1) {$oe = "odd"};
> if (($n % 2) == 0) {$oe = "even"};
> return $oe;
> }
>
> 2. In the eic for the top tag, add a usetext placement=after
> source=<check-odd-even.psu>,</check-odd-even.psu>.
>
> 3. In the eic for check-odd-even.psu, add an attribute rule with a specval
> to call the ACL function with system-func. If the page counter is odd, a
> new page is forced with an invisible 1 point of blank space.
>
> <att>
> <specval attname="oddorevenpage" attloc="system-func" attval="odd">
> <charsubset>
> <usetext source="1pt" placemnt="after">
> <subchars>
> <textbrk startpg="next"></subchars>
> </usetext>
> </charsubset>
> </att>
>
> Hope this helps!
>
> Good luck!
> Suzanne
>
> Suzanne Napoleon
> www.FOSIexpert.com
>

Hi,


I am also having a problem trying to force a verso last page with the function suggested. Can you explain how/where you used your savetext to fix this? did you solve the problem?


Thanks, KM

Hi Kim,
What function?
Also, how automated must this be? If you are manually creating PDF, you can call a pageset with just a rectopgat the end of a document, which will force a verso page in the current pageset, if necessary. For example:

<pageset id="add.page"><rectopg><pagespec pgid="addpage.recto">...<header><usetext source="\REMOVE" and=" discard=" this=" page\&quot;=">...
<e-i-c gi="toptag">...<usetext source="\" \&quot;=" placemnt="after"><subchars><textbrk startpg="recto" pageid="add.page" newpgmdl="global"></subchars></usetext>

When creating PDF, specify a page range that omits the last page.

A more automated approach is described in the attached PDF.
Suzanne

Announcements