Re: [NTG-pdftex] images in formats
On Wed, Jun 27, 2007 at 07:13:36PM +0200, Hans Hagen wrote:
Thanh Han The wrote:
dumping an image in pdf mode is rather difficult to get right. If in dvi mode an image is "stored" by a reference to an external file, then I am afraid the speed gain is not that much. There is for sure some comfort by having a dumped file reference in the format, but again that can be also achieved for pdf mode using some macros IMHO.
to me it looks like a rather useless option to include an image in a format, just as we don't embed type 1 fonts in the format either so let's not waste energy on it
My vote is also to disable \pdfrefximage and the likes in init mode.
depends a bit what 'the likes' is, i can imagine that one wants to measure the dimensions of a graphic or so and store them, but indeed the ref to an imag ecan be disabled
I had that in mind too, that's way I voted to disable \pdfrefximage instead of \pdfximage. The likes here are \pdfrefobj, \pdfrefxform and perhaps those that can cause pdftex to write anything to the output. fwiw, pdftex has support for reading image dimension that can be used in dvi mode (added as requested by ChoF, who uses pdftex mainly in dvi mode and use dvipdfmx to create pdf).
also, those who generate a format should know what they're doing/dealing with
indeed Thanh
On Wed, Jun 27, 2007 at 08:15:09PM +0200, Thanh Han The wrote:
fwiw, pdftex has support for reading image dimension that can be used in dvi mode (added as requested by ChoF, who uses pdftex mainly in dvi mode and use dvipdfmx to create pdf).
What do you mean with "reading image dimension in dvi mode"?
pdfTeX 1.40.3:
! pdfTeX error (\pdfximage): not allowed in DVI mode (\pdfoutput <= 0).
Or are you referring to the package `bmpsize'?
Yours sincerely
Heiko
Thanh Han The writes:
My vote is also to disable \pdfrefximage and the likes in init mode.
It seems that I miss the point. I'm actually using \pdfximage and \pdfrefximage with pdftex -ini in a script and it works perfectly. I don't use it to dump a format file, pdftex -ini does all I need. The reason I use pdftex -ini is that currently all I need from a TeX distribution is pdftex, pdftex.pool, and texmf.cnf. This allows to ship the script with a tiny TeX distribution. If \pdfrefximage is removed from init mode I have to provide a format file which actually does nothing. Something like: pdftex -ini '\relax\dump' And I have to provide and maintain this format file and it is loaded each time I run the program though it is good for nothing. If \pdfximage/\pdfrefximage cannot be used in format files, it is better not to remove them from init mode but delay error handling until \dump is processed. IMO it's not a good idea to remove something only because it doen't work in certain situations. It works fine for me. When I tried to use pdftex -ini for this purpose a few years ago I got segmentation faults. And I'm very glad that it works now. I also think that even much more can be done with luatex -ini than with pdftex -ini. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-4592165 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha@web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ----------------------------------------------------------------------------
participants (3)
-
Heiko Oberdiek
-
Reinhard Kotucha
-
Thanh Han The