Package: latex2html
Version: 2008-debian1-5
Severity: normal

Hi,

The -geometry and -margins options work well for me on a single page
PostScript file. But if I try them with a multipage postscript file the
resulting images jump all over the place in the final image. It's as if
some origin variable is not reset to 0,0 between each page or something.
If I just use -multipage without the -geometry and -margins options it
works well.

command line looks like:

pstoimg -aaliastext -antialias -depth 24 -scale 2 \
    -geometry 563x369 -margins 22,255 -multipage $IMAGE.ps

for testing you can create a sample multipage postscript file simply
by `cat`ing a few (or the same) .ps file together into another file:
  cat file.ps file.ps file.ps > file3.ps


workaround: use `pnmcut` from netpbm tools to do it manually after
pstoimg without -geometry and -margins:
# crop off the empty space in the images using NetPBM tools:
mkdir -p crop
for IMG in *.png ; do
  pngtopnm "$IMG" | \
     pnmcut -width 1156 -height 778 -left 34 -top 487 | \
     pnmtopng > "crop/$IMG"
done
cd crop/



thanks,
Hamish


-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/6 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages latex2html depends on:
ii  ghostscript-x             8.71~dfsg2-9   The GPL Ghostscript PostScript/PDF
ii  netpbm                    2:10.0-12.2+b1 Graphics conversion tools between 
ii  perl                      5.10.1-17      Larry Wall's Practical Extraction 
ii  perl-doc                  5.10.1-17      Perl documentation
ii  texlive-binaries [texlive 2009-8         Binaries for TeX Live
ii  texlive-fonts-recommended 2009-11        TeX Live: Recommended fonts
ii  texlive-latex-extra       2009-10        TeX Live: LaTeX supplementary pack
ii  texlive-latex-recommended 2009-11        TeX Live: LaTeX recommended packag

latex2html recommends no packages.

latex2html suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to