xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jared Davis" <jar...@davisprogramming.com>
Subject RE: Newbie: Svg -> PDF Text producing Huge Files
Date Wed, 06 Apr 2005 01:54:12 GMT
Would it be possible/safe to do something like the following?

Interface CreateSubContext {
  BridgeContext createSubContext();
}
////////////
Class BridgeContext .... Implements CreateSubContext 
{...
  Public BridgeContext createSubContext() {
       BridgeContext subCtx = new BridgeContext(getUserAgent(), 
                                                getDocumentLoader());
       subCtx.setGVTBuilder(getGVTBuilder());
       subCtx.setTextPainter(getTextPainter()); 
       return subCtx;
  }
}
//////////
         if (eng != null) {
             subCtx = (BridgeContext)eng.getCSSContext();
         } else {
             if (ctx instanceof CreateSubContext) {
                subCtx = (CreateSubContext)ctx.createSubContext();
             } else {
                subCtx = new BridgeContext(ctx.getUserAgent(), 
                                           ctx.getDocumentLoader());
                subCtx.setGVTBuilder(ctx.getGVTBuilder());
             }
             subCtx.setDocument(imgDocument);
             subCtx.initializeDocument(imgDocument);
         }
//////////





---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message