]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
fixes error that is displayed in new acrobat reader
authorKeiron Liddle <keiron@apache.org>
Thu, 9 Aug 2001 13:29:31 +0000 (13:29 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 9 Aug 2001 13:29:31 +0000 (13:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194399 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/svg/PDFGraphics2D.java

index 530e25fc579703fd097b5527ad3c93ccbedda383..e60c749aa275c0bd7d07a1038a088d2fb39650f7 100644 (file)
@@ -747,7 +747,6 @@ public class PDFGraphics2D extends AbstractGraphics2D {
      */
     public void drawString(String s, float x, float y) {
         // System.out.println("drawString(String)");
-        currentStream.write("BT\n");
 
         Shape imclip = getClip();
         writeClip(imclip);
@@ -756,6 +755,8 @@ public class PDFGraphics2D extends AbstractGraphics2D {
         c = getBackground();
         applyColor(c, false);
 
+        currentStream.write("BT\n");
+
         Font gFont = getFont();
         String name = gFont.getName();
         if (name.equals("sanserif")) {