[docbook-apps] win32 app converting docbook to PDF

2007-09-16 Thread Shawn Giese
Hello, 
As a technical writer using docbook some of my clients complained that it
was nice to have the format in xml but that they were unsure of the
usability of the xml without me to make it happen.  They didn't want to
contact me for any little change and if I was unavailable they were at a
loss of what to do with it.

So, I put together a real simple program for windows that runs the xsl
stylesheets and FOP to export their PDF document.  It includes a java
runtime (jre1.4.2) to run the apache FOP (0.94) software and the docbook xsl
stylesheets (1.72.0).

Anyways, if anyone wanted to try it out feel free, it is a free application
and I would not be able to make docbook text without the great community
support.  There are some great commercial applications out there but I
figured someone new to docbook might like to try it.  There are some sample
docbook files that I was using when testing it.  If anyone else thinks it
could be useful I could roll up a linux and macosx version too.

PS, I do have to figure out how to update the main window if you are running
a large job.  For example, running a 160page book with a whole lot of
screenshots through it will take about 5 minutes and... well.. there is no
pretty bar saying it is working hard.  Smaller documents can be run in
seconds.  I am using Realbasic to write it which has xsl transformations
built in.

Here are some limitations to keep in mind (aside from it being a work in
progress :) 
* modular documents are supported when listed as entities
* relative file references must use file://
* a root book element must have an id if the page links are going to work.
* currently XML files should be put in their own directory in the Njin
folder
* docbook 5 is currently not supported

Aside from any bug fixes I wanted to add the new FOP support for PDF
metadata.  I was impressed that I could now include Title, Author and
Keywords using fo:declarations.  I do not think the docbook stylesheets
supports that itself though.

The link is http://software.sirkevi.com/download.php?view.12

Sincerely,
Shawn Giese





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



Re: DOCBOOK-APPS: FOP: No ImageReader when using PDF as vector format

2003-03-13 Thread Shawn
Hi,

I had the same problem and ended up adding image support for FOP.

 The Jimi image library, which is by default used for processing images
in PNG and other formats, was removed from the distribution for
licensing reasons. So...:

Either

a) obtain Jimi from http://java.sun.com/products/jimi/ and
Extract the file JimiProClasses.zip from the archive you've
downloaded, rename it to jimi-1.0.jar and move it to FOP's lib
directory.

OR

b) obtain JAI from
http://java.sun.com/products/java-media/jai/downloads/download.html and
follow the installation instructions there.

(much faster, but not available for all platforms)


On Wed, 2003-03-12 at 00:28, Joachim Ziegler wrote:
 Hello,
 
 Bob Stayton writes in Using the XSLT Sheets that
 FOP can handle PDF as a vector format:
 
 Table 16.6. FO processor supported graphics formats
 FO Processor Bitmap formats Vector formats
 FOP PNG JPEG SVG PDF
 
 
 But I get the following error from FOP 0.20.5rc2
 
 [ERROR] Error while creating area : No ImageReader for this type of 
 image (file:/KM/usr/ziegler/LEDA/Tutorial/pdf/Pictures/ArrayOfChar.pdf)
 
 
 My DocBook source is the following:
 
mediaobject
  imageobject  role=html
imagedata  align=center format=PNG 
 fileref=Pictures/ArrayOfChar.png/
/imageobject
 
  imageobject  role=fo
imagedata  align=center format=PDF 
 fileref=Pictures/ArrayOfChar.pdf/
  /imageobject
/mediaobject
 
 
 Can someone please help me? I've already browsed through the mailinglist 
 archive and the bug reports of FOP, but I haven't found anything.
 
 
 I'm using java version 1.3.1, DocBook Stylesheets 1.60.1
 
 
 Greetings,
 Joachim
 
 
-- 
Shawn [EMAIL PROTECTED]



DOCBOOK-APPS: multiple graphics in a mediaobject

2003-03-08 Thread Shawn
Hello,

I consulted Robert Stayton's Example 16.1. Multiple graphics in a
mediaobject and tried:

mediaobject  id=conceptual_diagram_database  
  imageobject  role=html
imagedata  format=PNG 
fileref=images/figures/Customer_list.png/
  /imageobject
  imageobject
imagedata role=fo format=PDF 
fileref=images/figures/Customer_list.pdf/
  /imageobject
/mediaobject

But I get the following error:

Attribute format with value PDF must have a value from the list BMP
CGM-CHAR CGM-BINARY CGM-CLEAR DITROFF DVI EPS EQN FAX GIF GIF87a GIF89a
JPG JPEG IGES PCX PIC PNG PS SGML TBL TEX TIFF WMF WPG SVG linespecific
. [62]

How can I get multilpe output formats with images?

If I try and PNG format, nothing appears (using either a PNG or PDF
formatted graphic)

Considerately,
 

-- 
Shawn [EMAIL PROTECTED]



DOCBOOK-APPS: multiple graphics in a mediaobject

2003-03-08 Thread Shawn
Hello,

I consulted Robert Stayton's Example 16.1. Multiple graphics in a
mediaobject and tried:

mediaobject  id=conceptual_diagram_database  
  imageobject  role=html
imagedata  format=PNG 
fileref=images/figures/Customer_list.png/
  /imageobject
  imageobject
imagedata role=fo format=PDF 
fileref=images/figures/Customer_list.pdf/
  /imageobject
/mediaobject

But I get the following error:

Attribute format with value PDF must have a value from the list BMP
CGM-CHAR CGM-BINARY CGM-CLEAR DITROFF DVI EPS EQN FAX GIF GIF87a GIF89a
JPG JPEG IGES PCX PIC PNG PS SGML TBL TEX TIFF WMF WPG SVG linespecific
. [62]

How can I get multilpe output formats with images?

If I try and PNG format, nothing appears (using either a PNG or PDF
formatted graphic)

Considerately,
 

-- 
Shawn [EMAIL PROTECTED]

PS  apologies if this is posted twice



DOCBOOK-APPS: link in pdf

2003-01-28 Thread shawn
I ahve something like the following but the likk doens't appear in the
pdf (via fop)

  screen
ulink
url=http://jdbforms.sourceforge.net;citetitlehttp://jdbforms.sourceforge.net/citetitle/ulink

If that's for html only, is there a way to get a link in a pdf there?

TIA

-- 
shawn [EMAIL PROTECTED]




Re: DOCBOOK-APPS: OpenOffice and DocBook

2003-01-20 Thread shawn
http://xml.openoffice.org/xmerge/docbook/index.html

On Tue, 2003-01-21 at 11:05, Steve Howe wrote:
 Hello Bob,
 
 Monday, January 20, 2003, 9:45:29 PM, you wrote:
 
 BS DocBook is already possible in the current release 1.0.1, albeit not
 BS 'out of the box.' You must install add-on components.
 Please, where are them ? Could you please point out some link ?
 Thank you.
 
 - 
 Best regards,
  Steve Howe   mailto:[EMAIL PROTECTED]
-- 
shawn [EMAIL PROTECTED]




DOCBOOK-APPS: ant and website ?

2002-12-01 Thread Shawn
I am happily using ant to build my html (thanks to dpawson
http://www.dpawson.co.uk/docbook/ant.html ) but don't understand it's
relationship to website.

When trying to build a website (to see what it's like and how it's different
from chunking my html output), I learned that the website pages need an ID
such as webpage id=test1 lang=de.I'm kind of new to this all, so
it seems to me like website pages are not docbook pages anymore.

My questions are :

1)  Is website significantly better than the html produced through reg
docbook?

2)  Is it possible to build a website site from docbook xml pages by
processing them with xsl (to add the webpage id for instance)?

I need to produce pdf files too, so I have to stay with and author in
docbook.  I'm just doing a users manual though so maybe I don't need what a
website would have to offer.  I just saw the create layout and create
website tasks in the ant build file and wondered if I should be using them,
why they were there, and if they didn't already build a website from regular
docbook xml.

Shawn




DOCBOOK-APPS: building with ant

2002-11-29 Thread Shawn
I'm trying to build with Ant and get

java.lang.NoClassDefFoundError: com/icl/saxon/StyleSheet

but I do have the Saxxon.jar in my classpath.

I probably don't have my catalog set up properly though.  Does anyone know
if an incorrectly set up catalog would give me that error or do I really
have classpath issues?

Also, in the article on ant at http://www.dpawson.co.uk/docbook/ant.html,

It suggests using
pathelement path=../ !-- for catalogManager.properties --

I'm green and don't know where .. is (under the current directory?) so I
put mine in a catalogs directory  pathelement
path=${UsersGuide.Home}/catalogs/

Next, when building a docbook.cat for sdocbook, do I just add the things in
the distribution?  sdocbookref-custom and sdocbook-custom would be left out
wouldn't they?  There aren't any ISO entity sets either.  Does that mean
none in the docbook.cat?

Finally, the CatalogManager.properties file has:

catalog-class-name=com.sun.resolver.Resolver

Mine is an org.apache.xml.resolver.Resolver
I assume I need to change this to reflect the apache origin as opposed to
being from Sun

Anyfeed back would be most appreciated.

Shawn




DOCBOOK-APPS: simplified DocBk and XSL

2002-11-15 Thread Shawn



If I use a simplifed version of DocBook ( such as DocBk XML V3.1.5.1.), 
will I still be able to use the stylesheets at docbook.sourceforge.net?

We're moving the userGuide for an open source 
project from .doc to DocBook xml, and it seems like a simplied version might 
suffice for our purposes.

If I knew it were a subset, I would assume they 
would work but since it's a 'simplified' version, I would really like to know 
before doing the conversion.

Considerately,

Shawn