in reply to Re^6: How to print a text document to RTF document
in thread How to print a text document to RTF document

Did you define 0

'colors' => [ [0,0,0], # 0-black

Replies are listed 'Best First'.
Re^8: How to print a text document to RTF document
by mdavies23 (Acolyte) on Jul 11, 2017 at 16:31 UTC

    This isnt making sense to me... this is coming out black background and white lettering on one computer and on the other its exactly what i wanted.. Any idea why?

    $rtf->prolog( 'title' => "Color Test", 'colors' => [ undef, [0,0,0], [255,0,0], [0,255,0], [0,0,255], [255,128,0], [255,255,0], ], ); #PRINT ERRORS IN RED $rtf->printf( \'{\fs20\lang1036\noproof\cf2\chcbpa +t1 %s} \par ', "$_\n"); }

      For MsWord it should work with highlightN

      $rtf->printf( \'{\fs20\lang1036\noproof\cf2\highlight1 %s} \par ', "$_\n");
      
      poj

        I need the margins to be as little as possible and I tried this out and nothing happened

        \fs20\lang1036\noproof\cf6\highlight1\margl400\margr0\

        THANK YOU SO MUCH!!!!!