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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Styler fails to generate blank page

jsillari
1-Newbie

Styler fails to generate blank page

Any Styler gurus out there? Why would styler refuse to generate blank pages when page layout is set to double-sided? Even if I do FOSI edits to the page set to add a rectobb structure, it just doesn't output blank pages after odd pages. Any reset?

John Sillari
Chief Technologist, Technical Services Division
Dayton T. Brown, Inc.
jsillari@dtb.com<">mailto:jsillari@dtb.com>
dtbinfopros.com
631 742 3477 (mobile)
650 735 5864 (direct)
Pacific (GMT -08:00)



8 REPLIES 8

Is it failing to do so only on the lastest page in the doc? I recollect that
that page is slightly different somehow than "internal" blanks. Not really
helpful, but a clarifying question ...

Correct. Double-sided layout should default to generate blank pages when the last page is recto, but there's nothing in the Styler UI to control this behavior.

John Sillari
Chief Technologist, Technical Services Division
Dayton T. Brown, Inc.
jsillari@dtb.com<">mailto:jsillari@dtb.com>
dtbinfopros.com
631 742 3477 (mobile)
650 735 5864 (direct)
Pacific (GMT -08:00)

Is the element that begins the group of pages set to start on a recto page? I don't know anything about Styler, but in FOSI you need to start with a recto before it will end with a blank verso.

If I understand correctly, you're having the same problem we've always had. For example, a CHAPTER always starts with a recto, and if something within the CHAPTER such as a foldout image needs a recto page when the preceding text ends in the middle of a recto, then a 'blank' verso is generated. However, if the last page of the CHAPTER ends on a recto, and it's the last CHAPTER of the book, there will be no automatically generated 'blank' verso. Any CHAPTER other than the last will generate such a verso, if needed, but not the last CHAPTER.

We "solved" this by adding a 'dummy.page' pageset, which had a single recto page containing "Remove This Page" in large, blue font. It can be called by the occur=last CHAPTER <e-i-c> in a placement=after <usetext>, which will then trigger the automatic verso. Down side is, you have to edit the resulting PDF to remove that page.

Only solution we ever found that would work in PE.

Steve Thompson
+1(316)977-0515

In reference to your statement about the Chapter having a foldout graphic called out in the middle of a recto page: I guess you can't float graphics in Styler like you can in FOSI?

We don't use Styler, so I can't speak to that. Sorry. I should have said up-front that we exclusively use FOSI. And don't get me started on the idiosyncrasies of the FOSI Editor. ;-D

Steve Thompson
+1(316)977-0515

Steve:

Thanks, I'll try the dummy-page approach.

I don't know if this can be done with Styler. However, using FOSI and ACL, I
believe a blank page can be output after the last chapter when it ends on a
recto page. It requires the document to be formatted twice, but it is an
automated process, and it seems better to me than editing the PDF file.

1. Launch formatting from an ACL script.

2. When formatting is complete, use the formatcompletehook to get the value of
the last page number.

3. Use ACL to determine if the last page number is odd. If so, set an ACL
variable to indicate "odd."

4. Use ACL to force a reformatting of the document, during which the FOSI tests
if the ACL variable indicates "odd." If so, the FOSI forces a new page at the
end of the last chapter using usetext source=\ \ placemnt=after with subchars
containing a textbrk that forces a new page. (This test fails the first time the
document is formatted because the ACL variable has no value then.)

Note that in my testing of the FOSI part of this, the added blank space causes
the blankpg model to be used, not the versopg model. In other words, the
formatter knows the page is actually blank.

Here is example FOSI code:

<e-i-c gi="chapter" occur="last">
<charlist inherit="1" charsubsetref="block">
<usetext <br="/>source="<odd-or-even.psu>,</odd-or-even.psu>" placemnt="after"></usetext>
</charlist>
</e-i-c>

<e-i-c gi="odd-or-even.psu">
<charlist inherit="1"></charlist>
<att>
<specval attname="lastpagenbr" attloc="system-var" attval="odd">
<charsubset>
<usetext source="\" \&quot;=">
<subchars>
<textbrk startpg="next">
</subchars>
</usetext>
</charsubset>
</att>
</e-i-c>

Hope this helps! BTW: If this works for anyone, please let me know and I'll
include it in the book.

Good luck!
Suzanne


Top Tags