3 Replies Latest reply: Jan 12, 2012 7:23 AM by lrosenth RSS

    Fill and stroke a rectangle

    albert_123 Community Member

      Hello.

      When I write the following text, adobe reader displays a red rectangle with a black border.

       

      10 w

      100 100 200 150 re

      1 0 0 rg   %red fill

      0 0 0 RG   %black stroke


      but when i use operators f and S the red rectangle is displayed without the border.

       

      10 w

      100 100 200 150 re

      1 0 0 rg  %red fill

      f

      0 0 0 RG  %black stroke

      S


       

      From a pdf reader perspective why in the second example the border is not displayed?

      Isn't  f+S=B ?

       

      Thank You.