Obrazky v PDFTeXu

Jiri Osoba osoba at jablotron.cz
Wed Aug 12 11:50:50 CEST 1998


On 12 Aug 98 at 10:36, Tomas Kouba wrote:

> On Monday, July 27, 1998 8:20 PM, Petr Sojka
> [SMTP:sojka at informatics.muni.cz] wrote:
> > Pouzijte \pdfimage  na soubor s extenzi .pdf. Musite ale mit
> > novou verzi pdftexu, ktera jiz umi obrazky ve formatu pdf.
>
> Muj nejak ne. Mam pdfTeX pod DOSem (DJGPP) verzi o6. Pmoci

ale umi, jen je na ne trochu haklivej :-)

> ghostscriptu (ps2pdf.bat) zkonvertuju obrazek z eps do pdf. Na tento
> soubor pustim pdflatex
>
> \documentclass{article}
> \begin{document}
>
> Pred obrazkem
>
> \pdfimage image.pdf
>
> za obrazkem
>
> \end{document}
>
> tohle napise na obrazovku
>
> Document Class: article 1998/05/05 v1.3y Standard LaTeX document
> class
> (C:\TeX\share\texmf/tex/latex/base/size10.clo)) (POKUS.aux) [1]
> Overfull \vbox (254.96999pt too high) has occurred while \output is
> active
> [2
> <./image.pdfError (556): Unexpected end of file in flate stream
> >] [3] (POKUS.aux) )
>
> V logu nic neni. Vysledny pdf soubor je chybny. Kde delam chybu?

Hmm, ja poustim GS s nasledujicimi parametry:
-sDEVICE=pdfwrite -dCompatibilityLevel=1.1 -dNOPAUSE
-sOutputFile=bla.pdf bla.eps -c showpage quit

> Zkusil jsem to pres ghostview vytisknout do pdf a nastavil jsem si
> rozmery stranky podle boundig boxu (Acrobat Reader to tak i zobrazi)
> a to na obrazovku napise
>
> Document Class: article 1998/05/05 v1.3y Standard LaTeX document
> class
> (C:\TeX\share\texmf/tex/latex/base/size10.clo)) (POKUS.aux)Error (0):
> PDF file i
> s damaged - attempting to reconstruct xref table...
> Error: Couldn't find trailer dictionary
> Error: Couldn't read xref table
>
> pdfTeX error (ext1): invalid image dimension.
> l.6 \pdfimage image.pdf

PDF nemuzete jen tak editovat, to neni PostScript, ale spis binarni
soubor.

Na konverzi EPS->PDF jsem napsal "jednoduchy programek" v BorlandC.
Bude-li zajem, mohu jej poskytnout (C i COM). Predpokladam, ze by sel
upravit i pro jine platformy.

Jiri.






More information about the csTeX mailing list