I have a problem which can be solved one of two ways:
Typeset a given chunk of TeX in an "infinitely wide" space, then scale the result so that its width is the width of the page.
Typeset a given chunk of TeX in an "infinitely wide" space, then set the page size to the width of the result.
Can anybody suggest how to do this with pdflatex? Unfortunately I can't use other TeXes like XeTeX, etc.