Hi, Why does \immediate\pdfliteral code end up as typeset text? \pdfcompresslevel0 \starttext \immediate\pdfliteral{\letterpercent [start]} \pdfliteral{\letterpercent (start)} test \pdfliteral{\letterpercent (stop)} \immediate\pdfliteral{\letterpercent [stop]} \stoptext if this is intended behaviour, it should be documented as such and 'frozen'. Also, the fact that a \pdfliteral ends up on a new line in the output should become a frozen (intended) and documented feature (unless we introduce \pdfcomment). [in pdf everything between % and endofline is comment!] Also, technically one may put text before the %PDF, but afaik we don't have a way of doing that Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE/POD/CTS Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On 2004-02-13 22:16:20 +0100, Hans Hagen wrote:
Also, technically one may put text before the %PDF, but afaik we don't have a way of doing that
Thou shall not do this; but most pdf consuming applications search for the %PDF in the first k of the file. Best regards Martin -- Martin Schröder, ms@artcom-gmbh.de ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany Voice +49 421 20419-44 / Fax +49 421 20419-10 http://www.artcom-gmbh.de
At 19:39 14/02/2004, you wrote:
On 2004-02-13 22:16:20 +0100, Hans Hagen wrote:
Also, technically one may put text before the %PDF, but afaik we don't have a way of doing that
Thou shall not do this; but most pdf consuming applications search for the %PDF in the first k of the file.
i know. but i ran into a file that had a complete perl script (>1k) prefixed and thereby was both a program and a document, so i wondered -) (btw, i went though the >1150 page 1.5 spec ... we need to discuss a few things at the dante meeting) H ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE/POD/CTS Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On 2004-02-13 22:16:20 +0100, Hans Hagen wrote:
Why does \immediate\pdfliteral code end up as typeset text?
\pdfcompresslevel0
\starttext
\immediate\pdfliteral{\letterpercent [start]} \pdfliteral{\letterpercent (start)} test \pdfliteral{\letterpercent (stop)} \immediate\pdfliteral{\letterpercent [stop]}
\stoptext
if this is intended behaviour, it should be documented as such and 'frozen'. Also, the fact that a \pdfliteral ends up on a new line in the output should become a frozen (intended) and documented feature (unless we introduce \pdfcomment). [in pdf everything between % and endofline is comment!]
Have we come to a conclusion on this? Best regards Martin -- Martin Schröder, ms@artcom-gmbh.de ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany Voice +49 421 20419-44 / Fax +49 421 20419-10 http://www.artcom-gmbh.de
At 15:34 12/03/2004, Martin Schröder wrote:
On 2004-02-13 22:16:20 +0100, Hans Hagen wrote:
Why does \immediate\pdfliteral code end up as typeset text?
\pdfcompresslevel0
\starttext
\immediate\pdfliteral{\letterpercent [start]} \pdfliteral{\letterpercent (start)} test \pdfliteral{\letterpercent (stop)} \immediate\pdfliteral{\letterpercent [stop]}
\stoptext
if this is intended behaviour, it should be documented as such and 'frozen'. Also, the fact that a \pdfliteral ends up on a new line in the output should become a frozen (intended) and documented feature (unless we introduce \pdfcomment). [in pdf everything between % and endofline is comment!]
Have we come to a conclusion on this?
the best thing is to explictly document this in the source so that it does not accidentaly gets changed Hans
participants (2)
-
Hans Hagen
-
Martin Schröder