![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
On Thu, Jul 24, 2008 at 9:43 PM, Peter Münster
On Thu, Jul 24 2008, Wolfgang Schuster wrote:
Enabling people to view the pdf preview version (limited, containing excerpts) before acquiring the full version.
In this case the solution offered in the thread are no solution for your, it's too easy for the customers to make the hidden content visible.
Shouldn't it be very easy with MKIV, to replace the content to hide with whatever you want? Examples: - the replacement are only the corresponding line-skips
%\disablemode[hiding] \enablemode[hiding] \unprotect \def\starthiding {\dostartbuffer[hiddencontent][starthiding][stophiding]} \def\stophiding {\bgroup \setbox\scratchbox\vbox{\getbuffer[hiddencontent]}% \getnoflines{\dimexpr\ht\scratchbox+\dp\scratchbox\relax}% \dorecurse{\number\noflines}{\blank[\v!force,\v!line]}% \egroup} \protect \startnotmode[hiding] \let\starthiding\relax \let\stophiding \relax \stopnotmode %\showgrid \starttext \dorecurse{2}{\input knuth\par} \starthiding \input tufte \stophiding \dorecurse{2}{\input ward\par} \starthiding \input zapf \stophiding \input knuth \stoptext
- the replacement are random letters printed in white
Cheers, Peter
Regards, Wolfgang