[pdftex] create stream object from more than one source
Heiko Oberdiek
oberdiek at uni-freiburg.de
Fri Feb 17 16:48:39 CET 2006
On Thu, Feb 16, 2006 at 03:03:37PM +0100, Alexander Grahn wrote:
> Hi List,
>
> I would like to create a PDF stream object from more than one source
> (e. g. string + file). With pdfmarks this can be achieved this way:
>
> [ /_objdef {myStreamObj} /type/stream /OBJ pdfmark
> [ {myStreamObj} (Hello World!) /PUT pdfmark
> [ {myStreamObj} (file.txt) (r) file /PUT pdfmark
>
> Is this possible with pdfTeX too? And If so, how?
Since pdfTeX 1.30.0:
\def\filedump#1{%
\pdfunescapehex{%
\pdffiledump length \pdffilesize{#1}{#1}%
}%
}
\immediate\pdfobj stream {%
Hello World!^^J%
Second Line.^^J%
\filedump{file.txt}%
}
For very large files you have probably to configure a larger
main memory for pdfTeX.
Yours sincerely
Heiko <oberdiek at uni-freiburg.de>
--
More information about the pdftex
mailing list