Discussion:
Conversion from SGML to .pdf
(too old to reply)
Shiny
2005-04-19 10:15:18 UTC
Permalink
Hi,

I would like to write a document in SGML (I use DocBook) and then
convert it to html and pdf format. Although the conversion to html
works perfectly, I have trouble with the images when converting to
pdf. The converted pdf document doesnt align and resize the pictures,
thereby causing the images to be aligned totally to the right and
causing half the image to be cut off. I have tried placing the images
in tables,specifying the size and also to resize the image externally
etc., but somehow nothing seems to work. What am I doing wrong?

Will be grateful for any help.Thanks a bunch!

Regds,
Shiny
Peter N. M. Hansteen
2005-04-19 10:50:56 UTC
Permalink
Post by Shiny
I would like to write a document in SGML (I use DocBook) and then
convert it to html and pdf format. Although the conversion to html
works perfectly, I have trouble with the images when converting to
pdf. The converted pdf document doesnt align and resize the pictures,
thereby causing the images to be aligned totally to the right and
causing half the image to be cut off. I have tried placing the images
in tables,specifying the size and also to resize the image externally
etc., but somehow nothing seems to work. What am I doing wrong?
There are several ways to go about creating PDF from DocBook, some
apparently less functional than others. Which tools are you using? For
the DocBook SGML docs I maintain, OpenJade with Norman Walsh' DSSSL
style sheets plus a tiny customization layer respects sizing and
alignment attributes. The typical Makefile target looks something like
this (three times tex to make sure cross references are resolved):

-- [ snip ] --
pdf:
openjade -i print -t tex -V tex-backend -o proposal.tex -d forprint.dsl $(ARTICLESOURCE)
pdfjadetex proposal.tex
pdfjadetex proposal.tex
pdfjadetex proposal.tex

-- [ unsnip ] --
--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"
Shiny
2005-04-26 11:07:38 UTC
Permalink
Great! Thanks a lot, Peter!!
Post by Peter N. M. Hansteen
Post by Shiny
I would like to write a document in SGML (I use DocBook) and then
convert it to html and pdf format. Although the conversion to html
works perfectly, I have trouble with the images when converting to
pdf. The converted pdf document doesnt align and resize the pictures,
thereby causing the images to be aligned totally to the right and
causing half the image to be cut off. I have tried placing the images
in tables,specifying the size and also to resize the image externally
etc., but somehow nothing seems to work. What am I doing wrong?
There are several ways to go about creating PDF from DocBook, some
apparently less functional than others. Which tools are you using? For
the DocBook SGML docs I maintain, OpenJade with Norman Walsh' DSSSL
style sheets plus a tiny customization layer respects sizing and
alignment attributes. The typical Makefile target looks something like
-- [ snip ] --
openjade -i print -t tex -V tex-backend -o proposal.tex -d forprint.dsl $(ARTICLESOURCE)
pdfjadetex proposal.tex
pdfjadetex proposal.tex
pdfjadetex proposal.tex
-- [ unsnip ] --
Loading...