Пример #1
0
        protected override Native.PDFObjectRef DoOutputToPDF(PDFRenderContext context, PDFWriter writer)
        {
            Scryber.Drawing.PDFPoint oldOffset = context.Offset;

            if (this.Region.PositionMode == Drawing.PositionMode.Absolute)
            {
                context.Offset = Scryber.Drawing.PDFPoint.Empty;
            }
            Native.PDFObjectRef oref = this.Region.OutputToPDF(context, writer);

            context.Offset = oldOffset;
            return(oref);
        }
 /// <summary>
 /// Overrides the default implementation to record that we are inside a stream
 /// (we don't encrypt data when we are inside a stream, we encrypt the whole stream at the end).
 /// </summary>
 /// <param name="onobject"></param>
 /// <param name="filters"></param>
 public override void BeginStream(Native.PDFObjectRef onobject, IStreamFilter[] filters)
 {
     AssertEncrypterStream.InsideStream = true;
     base.BeginStream(onobject, filters);
 }