Indeed, the problem is screenshot because i have 3 kind of images: Figures, Equations and Tables (my tables are generated from TeX because there i have the control about their layout and look and feel).
I prefer gif but it doesn't work, i tried whit jpg but it generated a HUGE .rtf file (about 300 Mb), actually now i'm testing png files, but you have to convert your image to the correct size for you .pdf file. Thank's for your help. ----- Original Message ----- From: "Hussein Shafie" <[email protected]> To: "Jorge Vargas G" <edivargas at hotmail.com> Cc: <xmleditor-support at xmlmind.com> Sent: Tuesday, September 02, 2003 10:19 AM Subject: Re: [XXE] graphic tag > Jorge Vargas G wrote: > > Your answer agrees with my theory, i'm using a trick: To generate my .pdf > > and .rtf files run an script that change "/>" by "></--MANUAL_CHANGE-->". > > When the process had finished then this comment is changed like original > > was. > > > > I tried to see a command line to fixed but it's not obvious. > > I've installed the DSSSL toolset (openjade, jadetex, opensp, the style > sheets, the catalogs, the DTDs, etc) for formatting XML DocBook > documents on my SuSE Linux 8.2 machine. > > I managed to format the Power User's Guide, a DocBook XML document, > using this attached script. I just had to convert all screenshots from > GIF to PNG and then to modify the Power User's Guide source files > accordingly. > > --- > #!/bin/sh > > if [ $# != 1 ]; then > echo "usage: docbtopdf xml_file" > exit 1 > fi > if [ ! -f $1 ]; then > echo "usage: docbtopdf xml_file" > exit 1 > fi > > base_name=`basename $1 .xml` > dir_name=`dirname $1` > > tex_file=$dir_name/$base_name.tex > aux_file=$dir_name/$base_name.aux > log_file=$dir_name/$base_name.log > out_file=$dir_name/$base_name.out > > # CATALOG.iso_ent = *SGML* ISO entities are needed by DSSSL. > > SGML_CATALOG_FILES=/usr/share/sgml/CATALOG.iso_ent:/usr/share/sgml/CATALOG.d b42xml:/usr/share/sgml/CATALOG.db41xml:/usr/share/sgml/CATALOG.openjade:/usr /share/sgml/CATALOG.docbkdsl > export SGML_CATALOG_FILES > > openjade \ > -V "%section-autolabel%" \ > -V "%chapter-autolabel%" \ > -t tex \ > -d /usr/share/sgml/docbook/dsssl-stylesheets-1.77/print/docbook.dsl \ > $1 > > pdfjadetex $tex_file > > # Another time for TOC, etc > pdfjadetex $tex_file > > rm -f $tex_file $aux_file $log_file $out_file > --- > > It works fine for XML because I used CATALOG.db41xml which starts with > > --- > OVERRIDE YES > DTDDECL "-//OASIS//DTD DocBook XML V4.1.2//EN" > /usr/share/sgml/opensp/xml.dcl > --- > > I think that it is xml.dcl which learns to the SGML parser how to parse XML. > > The ouput of the DSSSL toolset is pretty decent (much better than with > FOP). The only problem I didn't solved is that screenshots are much too > large in the generated PDF. > ---------------------------------------------------------------------------- ---- > #!/bin/sh > > if [ $# != 1 ]; then > echo "usage: docbtopdf xml_file" > exit 1 > fi > if [ ! -f $1 ]; then > echo "usage: docbtopdf xml_file" > exit 1 > fi > > base_name=`basename $1 .xml` > dir_name=`dirname $1` > > tex_file=$dir_name/$base_name.tex > aux_file=$dir_name/$base_name.aux > log_file=$dir_name/$base_name.log > out_file=$dir_name/$base_name.out > > # CATALOG.iso_ent = *SGML* ISO entities are needed by DSSSL. > > SGML_CATALOG_FILES=/usr/share/sgml/CATALOG.iso_ent:/usr/share/sgml/CATALOG.d b42xml:/usr/share/sgml/CATALOG.db41xml:/usr/share/sgml/CATALOG.openjade:/usr /share/sgml/CATALOG.docbkdsl > export SGML_CATALOG_FILES > > openjade \ > -V "%section-autolabel%" \ > -V "%chapter-autolabel%" \ > -t tex \ > -d /usr/share/sgml/docbook/dsssl-stylesheets-1.77/print/docbook.dsl \ > $1 > > pdfjadetex $tex_file > > # Another time for TOC, etc > pdfjadetex $tex_file > > rm -f $tex_file $aux_file $log_file $out_file >

