RE: How to make directives look better? Customizing/defining elements and formatting...

2006-10-19 Thread Kai Mutz
I think your problem is that the table below is defined to have 1 column but
has two. Try this:

table frame=box rules=all
  captionFTPPASVaddr/caption
  col align=center/
  col align=center/
  thead
tr align=center
  thDirective/th

  thFTPPASVaddr/th
/tr
  /thead

  tbody
tr
  tdDescription/td

  tdThis directive allows you to specify a different
IP
  address to be sent on replies to codePASV/code
requests.
  You will find this useful when the Covalent Enterprise
FTP
  Server is behind a firewall./td
/tr
..

  /tbody
/table


In docbook documents I would define tables like this:

table
  title

  /title
  tgroup
colspec colname=col1 /
colspec colname=col2 /
thead
  row
entry colname=col1
  ...
/entry
entry colname=col2
   ...
/entry
  /row
/thead
tbody
  row
entry colname=col1
  ...
/entry
entry colname=col2
   
/entry
  /row
/tbody
  /tgroup
/table

For customizing the docbook DTD see:
http://www.docbook.org/tdg/en/html/ch05.html
Bu you have to customize the docbook stylesheets as well if you add an
directivesynopsis element.

Kai

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Behalf Of Dan Carwin
 Sent: Thursday, October 19, 2006 1:29 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: How to make directives look better? Customizing/defining
 elements and formatting...


 Thanks again Jay,

 I'm not currently using anything custom, just the basic set of
 pre-defined DocBook elements available in the DocBook editor I'm using.
 Because I am just using these basic tags, my doc looks basic and not
 polished.  When I looked at the Apache docs I saw many element tags in
 use like directivesynopsis which are not available to me and I
 wondered where they came from and how I could make use of them to make
 my doc more readable (and convert to PDF better as well.)  I have not
 written any custom transforms yet.

 Here's what I use to define a directive:

 Example of my directive definition using basic elements:
 
 table frame=box rules=all
   captionFTPPASVaddr/caption

   col align=center span=1 /

   thead
 tr align=center
   thDirective/th

   thFTPPASVaddr/th
 /tr
   /thead

   tbody
 tr
   thDescription/th

   tdThis directive allows you to specify a different
 IP
   address to be sent on replies to codePASV/code
 requests.
   You will find this useful when the Covalent Enterprise
 FTP
   Server is behind a firewall./td
 /tr

 tr
   thSyntax/th

   tdcodeFTPPASVaddr IP address/code/td
 /tr

 tr
   thExample/th

   tdcodeFTPPASVaddr 64.84.21.111/code/td
 /tr

 tr
   thContext/th

   tdServer Config, Virtual Host/td
 /tr

 tr
   thNote/th

   tdThis directive is *not* inherited from the global
   configuration file./td
 /tr
   /tbody
 /table


 Here's what an ASF directive definition looks like:
 ===
 directivesynopsis
 nameBS2000Account/name
 descriptionDefine the non-privileged account on BS2000
 machines/description
 syntaxBS2000Account varaccount/var/syntax
 contextlistcontextserver config/context/contextlist
 modulelistmoduleperchild/modulemoduleprefork/module/modulelis
 t
 compatibilityOnly available for BS2000 machines/compatibility

 usage
 pThe directiveBS2000Account/directive directive is available
 for
 BS2000 hosts only. It must be used to define the account number for
 the non-privileged apache server user (which was configured using
 the
 directive module=mpm_commonUser/directive directive). This is
 required by the BS2000 POSIX subsystem (to change the underlying
 BS2000
 task environment by performing a sub-LOGON) to prevent CGI scripts
 from accessing resources of the privileged account which started the
 server, usually codeSYSROOT/code./p

 notetitleNote/title
   pOnly one codeBS2000Account/code directive can be used./p
 /note
 /usage
 seealsoa href=../platform/ebcdic.htmlApache EBCDIC
 port/a/seealso
 /directivesynopsis


 fyi my first link 

RE: large file size for PDF

2006-10-17 Thread Kai Mutz
Perhaps this will help:
http://marc.theaimsgroup.com/?l=fop-userm=114700968631356w=2



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Chris Markiewicz
Sent: Tuesday, October 17, 2006 2:46 PM
To: fop-users@xmlgraphics.apache.org
Subject: large file size for PDF


Hello.  I am generating PDFs using FOP for a client - and he is starting to
complain about file size.  It's a fairly simple PDF - two pages, mostly
text, a handful of small images, and a few fonts.  Doc size is around 600k.
(Handmade is about 1/10th that size.)  Anything I can do about this?  I
searched the archives but didn't find anything too useful.  I'm looking into
iText, but it seems that this might just be an issue with dynamically
generated PDFs in general?  I've also researched commercial products to
shrink the PDFs - any experience with those?

Thanks
Chris



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]