Postscript - forcing a text search -


okay, "know" postscript, makes lot more sense now.

i've found if change colour though affects backgrounds in other areas, know sc, sc, cs , cs procedures:

/cs { /pdffillxform exch def dup /pdffillcs exch def setcolorspace } def

/cs { /pdfstrokexform exch def dup /pdfstrokecs exch def setcolorspace } def

/sc { pdflastfill not { pdffillcs setcolorspace } if dup /pdffill exch def aload pop pdffillxform setcolor /pdflastfill true def /pdflaststroke false def } def

/sc { pdflaststroke not { pdfstrokecs setcolorspace } if dup /pdfstroke exch def aload pop pdfstrokexform setcolor /pdflaststroke true def /pdflastfill false def } def

but when re-colour parts of it, seems affect background elsewhere! task change font black way (there's white reason ... don't why).

things this:

 -0.925088 tjm q /devicegray {} cs [1] sc q [10 0 0 10 0 0] cm [1 0 0 1 0 0] tm 0 0 td [1 0 0 1 286.875 503.428] tm 0 0 td /f11_0 11.9551 tf 

it's 1 want change, want 0.

any ideas not sure now

source document pdf, changed though pdftops

thanks

additional:

 /tj {   fcol   1 index stringwidth pdftextmat idtransform pop   sub 1 index length dup 0 ne { div } { pop pop 0 } ifelse   pdfwordspacing pdfhorizscaling mul 0 pdftextmat dtransform 32   4 3 roll pdfcharspacing pdfhorizscaling mul add 0   pdftextmat dtransform   6 5 roll tj1 } def 

this renders characters

(n) 7.471938 tj

if can set colour in procedure, pop colour, i'm set!

how might this?

----------------to people of future---------

      /tj {         /devicegray {} cs         [0] sc       fcol       1 index stringwidth pdftextmat idtransform pop       sub 1 index length dup 0 ne { div } { pop pop 0 } ifelse       pdfwordspacing pdfhorizscaling mul 0 pdftextmat dtransform 32       4 3 roll pdfcharspacing pdfhorizscaling mul add 0       pdftextmat dtransform       6 5 roll tj1     } def  

that's fix, put device grey part @ bottom, sets black every time tj procedure used (like.... every letter!) , doesn't (seem) affect else.

my white text problem solved! http://www.adobe.com/products/postscript/pdfs/plrm.pdf

worth read! postscript's specification!


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -